18.01.2023, 11:54
The dimmer status arrives after several seconds when changing the value. As mentioned before: For this to work the dimmer must have a status output active and should report the status as soon as possible (some dimmers have an option to report status when only after a transition).
For testing purposes you can also increase the ignore time for the dimmer by changing delta from 1 to 10 seconds. But this may lead to the script missing status updates that should be taken into account so see if you can change the dimmer settings.
For testing purposes you can also increase the ignore time for the dimmer by changing delta from 1 to 10 seconds. But this may lead to the script missing status updates that should be taken into account so see if you can change the dimmer settings.
Code:
if delta >= 0 and delta <= 10 then