device: WeMoc D1 mini
I created a simple test:
A controller - Home Assistant (OpenHAB) MQTT - pointing to a broker running on a PiZerow on my locol network
Device 1 - a Generic - Dummy Device set with four values: boot1, boot2, boot3 and boot4(unused)
Ruleset 1 is the following:
Code: Select all
// ruleset 1 - system events timing
on System#boot do //runs on cold boot, reset or wake from sleep
TaskValueSet,1,1,%unixtime%
endon
on WiFi#Connected do
TaskValueSet,1,2,%unixtime%
endon
on MQTT#Connected do
TaskValueSet,1,3,%unixtime%
endon