enjoying the script a lot. Would it be possible to use user variable change as a trigger?
Like the "official" blocky (lua?) has it
https://www.domoticz.com/wiki/Events
would be very useful do "de-couple" activity using user variables.3. Event Type. Controls what events events will cause Domoticz to execute the script. Drop down values:
5.User Variable - Will run when User Variables are updated
F.ek.s isSleepingTime and isAnyoneInLivingroom (which it self could be controlled by different sensors, like pir, or ping of Tv/playstation etc.)
and if some of those changes, actions would be performed /lua would be triggered.
Or perhaps this could be achieved with "dzVents Global variables"?