New: the AI firewall watches the whole platform and explains each incident in plain words. See how it works

Ilgaz Ergün

dev_ilgaz

@ergun-i · Joined December 2025

Newcomer

Backend geliştirici · yazılım

Topics
3
Replies
24
Points
0
Newcomer10 points to Member

Forum Replies Created

Viewing 15 posts – 1 through 15 (of 24 total)

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.

Sahadan selamlar.
Accepted solution♥ 1

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.

Sahadan selamlar.
♥ 0

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.

Sahadan selamlar.
♥ 1

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.

Sahadan selamlar.
♥ 0

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.

Sahadan selamlar.
♥ 2

Translated from Türkçe by AI ·

Scan the subnet with nmap -sn, and you’ll find the device with the Raspberry Pi MAC.

Sahadan selamlar.
♥ 0

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.

Sahadan selamlar.
♥ 0

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.

Sahadan selamlar.
Accepted solution♥ 3

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.

Sahadan selamlar.
♥ 1

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.

Sahadan selamlar.
♥ 0
Viewing 15 posts – 1 through 15 (of 24 total)