Dim up/down thru a remote control

Moderator: leecollings

Post Reply
zynexiz
Posts: 8
Joined: Tuesday 07 February 2017 13:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: Sweden
Contact:

Dim up/down thru a remote control

Post by zynexiz »

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
Cornholio1234
Posts: 23
Joined: Thursday 03 March 2016 11:01
Target OS: Windows
Domoticz version: V3.4964
Location: Germany
Contact:

Re: Dim up/down thru a remote control

Post by Cornholio1234 »

I've got a NodOn Octan Remote, and I don't know if the behaviour is the same. But check if there is a way to set the remote in a mode controlling your ZWave directly without going over Domoticz / LUA.

I was able to achieve what you are trying to do with a couple of parameter settings and adding the ID of the dimmer directly to the groups for the according buttons.
Windows Server, Aeotec Z-Stick Gen5, V3.4964
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Dim up/down thru a remote control

Post by Egregius »

Just let each press dim x % up/down. The you control the dimmer with multiple presses.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest