letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.28k stars 2.21k forks source link

On system#boot gets disregarded #5146

Open TommoT1 opened 2 hours ago

TommoT1 commented 2 hours ago

I just loaded the latest action build (ESP_Easy_mega_20241019_normal_ESP8266_4M1M.bin.gz) to a node and noticed that all stuff in the section

on system#boot do
 gpio,12,1
 another command
endon

seems to be disregarded....

tonhuisman commented 2 hours ago

Do you have any logging (best via serial) to show what's happening?

TommoT1 commented 2 hours ago

Not yet, I'm not at home, just flashed a wifiplug from Sonos via OTA and noticed that ist does'nt switch on anymore when pluged in like it did before. Switched back to 20240822 and normal ops again.

TD-er commented 33 minutes ago

I just tested on a Sonoff POW r1. Had build from August running on it, tried to make sure the system#boot event was working and then updated to ESP_Easy_mega_20241007_hard_SONOFF_POW_4M1M It is still working.

Used rules:

On System#Boot Do
  if [relais1#state]=0
    gpio,12,1
  else
    gpio,12,0
  endif
  Let,1,123
Endon

on Button1#state do
  if %eventvalue1%=0
    gpio,12,1
  else
    gpio,12,0
  endif
endon

I also set a value to a variable, so I can be sure the event was triggered as can be seen on the system variables page.