I want change this. When I need to test some script that are activate only on day or night. I can switch the values in global_data and then everything is reverse from day to night and vs.
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave,Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes wrote: Thursday 06 June 2019 12:40
Is it possible to have a timer that get his value from a helper of value stored in global_data?
Not directly because domoticz.helpers is not there yet when time is evaluated. Indirect you can get true or false but that will still not enable you to switch around day- and nighttime. Quickest working option I can think of is (in <domoticz dir>/dzVents.runtime/Time.lua) switch lines