I have a new idea, and would like to track the reboots of my ESPs on a daily basis (clear variable right before midnight) in a dummy device due to this rule, which is working very well:
Code: Select all
on System#Boot do
timerSet,1,60 // Set timer 1
endon
on WiFi#Disconnected do
timerSet,1,60 // Set timer 1
endon
on WiFi#Connected do
timerSet,1,0 // Clear timer 1
endon
On Rules#Timer=1 do
Reboot
endOn
Code: Select all
on Clock#Time=All,23:59 do //will run once a day at noon
Let,16,0
endon
On System#Boot do
TaskValueSet 6,1,[var#16]+1 //will this survive a reboot?
endon
Code: Select all
On System#Boot do
Code: Select all
On System#Reboot do
Merci already and kind regards
marstu