dev_ilgaz
@ergun-i · Joined December 2025
Backend geliştirici · yazılım
- Topics
- 3
- Replies
- 24
- Points
- 0
Forum Replies Created
Translated from Türkçe by AI ·
A script would work too, but you don’t need to write any code for this, the Rules card does exactly that. We use the same thing on our office floor.In the When section, add a “Time of day” trigger: 07:30, days Monday to Friday. Then in the Then section, add a “Send command” action: instead of selecting devices one by one, select every device in the profile, command relay.set, parameter on: true. A single action goes out to up to 200 devices in the profile, so 45 is comfortably within that.For devices that drop off Wi-Fi: set the command to “persistent by default” in the catalog. Then a command sent to an offline card waits in the queue and is delivered when the card reconnects. If it’s not persistent, a command to an offline device fails immediately. If one device fails, the rule carries on with the others, and you can see which one didn’t receive it in the History.To turn them off in the evening, set up the same thing as a second rule with 19:00 and on: false. Devices that have been switched to manual mode are skipped, so keep that in mind. Details: Rules card: actions.
Script de olur ama bunun için kod yazmana gerek yok, Kurallar kartı tam bunu yapıyor. Biz aynısını ofis katında kullanıyoruz.
Ne zaman kısmına “Günün bir saati” tetikleyicisi ekle, 07:30, günler Pazartesi’den Cuma’ya. Sonra kısmına “Komut gönder” eylemi: cihaz olarak tek tek seçmek yerine profilin her cihazını seç, komut relay.set, parametre on: true. Tek eylem profildeki 200 cihaza kadar gidiyor, 45 rahat.
Wi-Fi’den düşenler için: komutu katalogda “varsayılan olarak kalıcı” yap. O zaman çevrimdışı karta giden komut kuyrukta bekliyor, kart bağlanınca iletiliyor. Kalıcı değilse çevrimdışı cihaza giden komut anında başarısız oluyor. Bir cihaz başarısız olursa kural diğerlerine devam ediyor, Geçmiş’te hangisinin olmadığını görüyorsun.
Akşam kapatmak için aynısını 19:00 ve on: false ile ikinci bir kural olarak kur. Manuel moda alınmış cihazlar atlanır, bunu bil. Ayrıntılar: Kurallar kartı: eylemler.
INA219 bu iş için uygun değil. Modüllerdeki 0,1 Ω şöntle çözünürlük 100 µA civarında, 8 µA’yı sıfır görmesi normal. Masada ölçmek için Nordic PPK2 ya da µCurrent gibi bir şey lazım. Uyanıkken zıplayan değerler de WiFi yayın darbeleri, saniyede bir örnekle onları yakalayamazsın.
Translated from Türkçe by AI ·
Do you apply a filter to the value that is read?
Okunan değere bir filtre uyguluyor musunuz?
Translated from Türkçe by AI ·
It was the BL0937, I was using SEL the wrong way round, I was reading current and voltage swapped, it thought 230 V was 0.8 A 🙂 I calibrated it with a 100 W heater, and it reads 59.2 W on the 60 W bulb plugged into the socket. I don’t plug it in at all while programming now, I set up OTA. Thanks Oğuz.
BL0937 çıktı, SEL’i ters kullanıyormuşum, akım ile gerilimi yer değiştirmiş okuyordum, 230 V’u 0.8 A sanıyordu 🙂 100 W ısıtıcıyla kalibre ettim, prizin üstündeki 60 W ampulde 59.2 W okuyor. Programlarken artık prizi hiç takmıyorum, OTA ayarladım. Teşekkürler Oğuz.
Translated from Türkçe by AI ·
Alright, I was a bit scared 🙂 So far I always measured with it unplugged, I powered the board with a separate 3.3V and checked, the frequency doesn’t change there of course since there’s no load.
Tamam, korktum biraz 🙂 Şimdiye kadar hep fişten çekili ölçtüm, kartı ayrı bir 3.3V ile besleyip baktım, frekans orada değişmiyor tabii yük olmadığı için.
Translated from Türkçe by AI ·
+1 for jitter. We also had a field case where 40 sensors trying to connect at the same time caused some of them to hit address blocking; it was resolved with a random delay.
+1 jitter için. Bizde de bir sahada 40 sensör aynı anda bağlanmaya çalışınca bazıları adres engellemesine takılmıştı, rastgele gecikmeyle düzeldi.
Translated from Türkçe by AI ·
Scan the subnet with nmap -sn, and you’ll find the device with the Raspberry Pi MAC.
nmap -sn ile alt ağı tara, Raspberry Pi MAC’li cihazı bulursun.
Translated from Türkçe by AI ·
Most consumer APs get clogged at 30-50 clients, I think that’s where the problem is. We need an enterprise AP.
Ev tipi AP’lerin çoğu 30-50 istemcide tıkanır, bence sorun orada. Kurumsal bir AP lazım.
Gizem evet, D3 = GPIO0. Furkan’ın dediği sadece reset anı için geçerli: güç verilirken ya da reset sırasında GPIO0 LOW ise kart flash moduna giriyor. Program çalışmaya başladıktan sonra normal bir giriş, kartta zaten pull-up var, buton GND’ye çekiyor. Bizim sahadaki cihazlarda tam olarak bunu yapıyoruz.
const int BTN = 0; // D3 / FLASH
unsigned long downAt = 0;
void setup() {
pinMode(BTN, INPUT_PULLUP);
// ...
}
void loop() {
if (digitalRead(BTN) == LOW) {
if (!downAt) downAt = millis();
if (millis() - downAt > 5000) {
WiFiManager wm;
wm.resetSettings(); // sadece Wi-Fi bilgileri silinir
ESP.restart(); // açılışta portal kendiliğinden açılır
}
} else downAt = 0;
mqtt.loop();
}
Dikkat edilecek iki şey var. Token’ı EEPROM’da ayrı tut ve bu işlemde silme; cihaz Hermetry’de aynı cihaz olarak kalsın, yeni ağa geçince aynı credential’la bağlansın. İkincisi, butona basılıyken elektrik gidip gelirse kart flash moduna açılır, birkaç saniye sonra tekrar reset atmak yeterli. Teknisyene “fişi çekip takarken butona basma” notu bırakın.
Sahada Wi-Fi yayını yapmak olmaz mı? Birkaç dış mekan AP ile.
Her saniye göndermek mesaj kotasını hızlı yer, cihaz başına ayda 2.5 milyonun üstü.
Üçü de doğruymuş 😅 Baud 2400 yapınca E2 gitti, E1 (illegal function) geldi, readInputRegisters’a geçince 229,8 V okudum. Enerji register’ını da ekledim, kwh olarak gidiyor. Çok sağ ol Esra.
SIM7600’ün zaten USB’si var, onu UART’tan değil USB’den bağlayın. Bir sorun eksilir.
Translated from Türkçe by AI ·
Doesn’t Hermetry find the room itself from the tag’s RSSI? I thought the Map card would do something for that.
Hermetry etiketin RSSI’sinden odayı kendisi bulmuyor mu? Map kartı bir şey yapıyordur diye düşünmüştüm.
Translated from Türkçe by AI ·
Did you define the command in the Commands tab of your profile? The dashboard can only send commands from the profile’s catalog, it does not accept raw methods.
Profilin Commands sekmesinde komut tanımladın mı? Pano sadece profilin kataloğundaki komutları gönderebiliyor, ham method kabul etmiyor.

