[Solved] Hue selector switch automaticly resets to level 0
Posted: Monday 23 November 2020 20:24
Hello,
I have domoticz 2020.2 running in combination with zigbee2mqtt.
In dzevents I'm creating a simple script to control a group of lamp with a HUE switch (https://www.zigbee2mqtt.io/devices/324131092621.html) via zigbee2mqtt
However every time the you press a button on the Hue switch, the selector swith automaticly resets to level 0.
So each time 2 events are generated (the button you pressed + level 0 = off-press
For example, when you press the on button, the state of the selector switch changes to "on-press" and imeditatlly after is goes to state 0 "off-press"
So the script part of "off-press" is triggered always, and the lights go off after each trigger.
Can I change the behavior of the selector switch, so it does not automaticly resets to level 0?
The selector switch has the following levels:
-- off-press
-- off-press-double
-- off-press-triple
-- off-hold
-- off-hold-release
-- down-press
-- down-press-double
-- down-press-triple
-- down-hold
-- down-hold-release
-- up-press
-- up-press-double
-- up-press-triple
-- up-hold
-- up-hold-release
-- on-press
-- on-press-double
-- on-press-triple
-- on-hold
-- on-hold-release
I have domoticz 2020.2 running in combination with zigbee2mqtt.
In dzevents I'm creating a simple script to control a group of lamp with a HUE switch (https://www.zigbee2mqtt.io/devices/324131092621.html) via zigbee2mqtt
However every time the you press a button on the Hue switch, the selector swith automaticly resets to level 0.
So each time 2 events are generated (the button you pressed + level 0 = off-press
For example, when you press the on button, the state of the selector switch changes to "on-press" and imeditatlly after is goes to state 0 "off-press"
So the script part of "off-press" is triggered always, and the lights go off after each trigger.
Can I change the behavior of the selector switch, so it does not automaticly resets to level 0?
The selector switch has the following levels:
-- off-press
-- off-press-double
-- off-press-triple
-- off-hold
-- off-hold-release
-- down-press
-- down-press-double
-- down-press-triple
-- down-hold
-- down-hold-release
-- up-press
-- up-press-double
-- up-press-triple
-- up-hold
-- up-hold-release
-- on-press
-- on-press-double
-- on-press-triple
-- on-hold
-- on-hold-release