Dim up/down thru a remote control
Posted: Sunday 05 March 2017 11:36
Hi.
I have a NodON Wall Switch Cozy White controlling a couple of lamps connected to Aeon Labs Micro Smart Dimmer. The switch has four buttons, and each button have 4 different states (pressed, held down, released and pressed twice). The 'pressed' state is quite forward and easy to configure. Pressing the up button turns on the light, and the down button turns it of. Quite easy.
Now to the problem. When holding down the up button (triggering held down) a script is started to start dim up the light, and holding the down button should dim the light down (also triggering held down). The problem is that when i release the button, the script doesn't know that the 'released' trigger i activated. It actually triggers a new event with "released" trigger, starting all scripts one more time. The script handling the dimming part won't know that 'released' trigger is activated, so there's no way to stop the dimming up or down.
As far as i know, all the parameters sent to the script initially is pretty static, and won't reflect any changes made while the script is running.
If there any way to use the buttons to dim a lamp up and down by holding it, and stop dimming when released?
-- Mike
I have a NodON Wall Switch Cozy White controlling a couple of lamps connected to Aeon Labs Micro Smart Dimmer. The switch has four buttons, and each button have 4 different states (pressed, held down, released and pressed twice). The 'pressed' state is quite forward and easy to configure. Pressing the up button turns on the light, and the down button turns it of. Quite easy.
Now to the problem. When holding down the up button (triggering held down) a script is started to start dim up the light, and holding the down button should dim the light down (also triggering held down). The problem is that when i release the button, the script doesn't know that the 'released' trigger i activated. It actually triggers a new event with "released" trigger, starting all scripts one more time. The script handling the dimming part won't know that 'released' trigger is activated, so there's no way to stop the dimming up or down.
As far as i know, all the parameters sent to the script initially is pretty static, and won't reflect any changes made while the script is running.
If there any way to use the buttons to dim a lamp up and down by holding it, and stop dimming when released?
-- Mike