Force Dim
Posted: Friday 03 May 2019 13:11
I am ripping my hair out.
I had a perfect dzvents script that would turn down a light to a dimmed value dependent on the time of day if it was set to a value higher than that. However I managed to delete all my devices and events (don't ask) and I can not re-write the code. Can someone tell me what is the variable that stores the value of the set dim level. For example domoticz.devices('Loft Bedroom').setValue >.
I want to have the script run if the dim setting is higher than 50 at night when the device is turned on.
I had a perfect dzvents script that would turn down a light to a dimmed value dependent on the time of day if it was set to a value higher than that. However I managed to delete all my devices and events (don't ask) and I can not re-write the code. Can someone tell me what is the variable that stores the value of the set dim level. For example domoticz.devices('Loft Bedroom').setValue >.
I want to have the script run if the dim setting is higher than 50 at night when the device is turned on.