# Hue Wall Switch sends on and off status at every toggle

**URL:** https://discourse.nodered.org/t/hue-wall-switch-sends-on-and-off-status-at-every-toggle/55856
**Category:** General
**Created:** [29 December 2021 17:13 UTC](https://discourse.nodered.org/t/hue-wall-switch-sends-on-and-off-status-at-every-toggle/55856 "2021-12-29T17:13:27Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![pi1234](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pi1234](https://discourse.nodered.org/u/pi1234)
#### Post date: [29 December 2021 17:13 UTC](https://discourse.nodered.org/t/hue-wall-switch-sends-on-and-off-status-at-every-toggle/55856/1 "2021-12-29T17:13:27Z")

</div>

Hi,

I am facing a strange problem and I have no idea how to solve this.

If I toogle the Wall Switch Module I got 2 status messages,

"left\_press" and "left\_press\_release", at the same time, every time.

Since I got both messages I have no idea how to work with the Wall Switch 😃

zigbee2mqtt is up2date (complete fresh install yesterday). I am using a CC2652P.

Any idea?

Kind Regards,  
Phil

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c044a3def76a62c628612f60ce8580f98e61cffd.png)

edit: I want to relieve my Philips Hue Bridge. To link my Node-Red with the bridge is not an option for me.

---

<div class="post-metadata">

### Author: ![Falfango](https://avatars.discourse-cdn.com/v4/letter/f/5e9695/32.png) [@Falfango](https://discourse.nodered.org/u/Falfango)
#### Post date: [29 December 2021 18:01 UTC](https://discourse.nodered.org/t/hue-wall-switch-sends-on-and-off-status-at-every-toggle/55856/2 "2021-12-29T18:01:57Z")

</div>

As the message state. You got one message, when you press the button and one, when you release it. So you can make your own "short press" and "long press". For example you can start to dim when you got "left press" and increase every second and stop, when you got the "left press release". If you only need to switch on/off, you can ignore "left press release".

---

<div class="post-metadata">

### Author: ![pi1234](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pi1234](https://discourse.nodered.org/u/pi1234)
#### Post date: [30 December 2021 16:27 UTC](https://discourse.nodered.org/t/hue-wall-switch-sends-on-and-off-status-at-every-toggle/55856/3 "2021-12-30T16:27:16Z")

</div>

Hi @Falfango ,

I get 2 messages wenn I press my light switch (ON) and I got 2 messages when I push the light switch again (OFF).  
I do **not** use a crossover switch. I can not see where there is a 'release' when I just turn my lights on with a default light switch.

Yesterday, I solved it with the Merge Node. But I have to use a 1-second-delay to merge both messages and this results in a power on/off delay at my lights.  
As you told me, I will try to filter out the second message.

Kind Regards,  
Philipp

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [30 December 2021 17:01 UTC](https://discourse.nodered.org/t/hue-wall-switch-sends-on-and-off-status-at-every-toggle/55856/4 "2021-12-30T17:01:53Z")

</div>

> [@pi1234](#):
>
> I get 2 messages wenn I press my light switch (ON)

I think you get one when you press it and one when you release it, not two when you press it.

---

<div class="post-metadata">

### Author: ![pi1234](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pi1234](https://discourse.nodered.org/u/pi1234)
#### Post date: [4 January 2022 08:13 UTC](https://discourse.nodered.org/t/hue-wall-switch-sends-on-and-off-status-at-every-toggle/55856/6 "2022-01-04T08:13:40Z")

</div>

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c044a3def76a62c628612f60ce8580f98e61cffd.png)

I already pasted an image that shows that I got **two** messages at the same time 😄

The problem is that as long as I got two messages I can only use 'toggle' but not On and Off.

---

<div class="post-metadata">

### Author: ![pi1234](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pi1234](https://discourse.nodered.org/u/pi1234)
#### Post date: [4 January 2022 12:38 UTC](https://discourse.nodered.org/t/hue-wall-switch-sends-on-and-off-status-at-every-toggle/55856/7 "2022-01-04T12:38:17Z")

</div>

Does anyone have a Hue Wall Switch and can tell me if his or her wall switch sends two messages too?

> **[Philips 929003017102 control via MQTT | Zigbee2MQTT](https://www.zigbee2mqtt.io/devices/929003017102.html)**
>
> Integrate your Philips 929003017102 via Zigbee2MQTT with whatever smart home infrastructure you are using without the vendors bridge or gateway.

The documentation says the device should expose "device\_mode" but it does not.

That I got two messages could be related to the device mode .... all my problems belong to this simple fact, that the devices sends press and release and once.

---

<div class="post-metadata">

### Author: ![KGS501](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kgs501/32/57923_2.png) [@KGS501](https://discourse.nodered.org/u/KGS501)
#### Post date: [5 March 2022 23:09 UTC](https://discourse.nodered.org/t/hue-wall-switch-sends-on-and-off-status-at-every-toggle/55856/10 "2022-03-05T23:09:38Z")

</div>

Yeah I just bought two new Hue wall switch modules and tried to integrate them into my home assistant network. First I used my **Conbee II** Zigbee coordinator to connect it to my Zigbee2MQTT instance but encountered the same issue:  
I used a rocker switch and got two outputs (pressed and then released) on one single button press.  
So I thought it my be an issue with Zigbee2MQTT and paired it with my hue bridge to use the huemagic addon to get the outputs from the wall switch module into node red. But here I have the same Issue:  
One button press results in a first payload (initial\_press) followed by a second payload (short\_release) although a release is not possible on a rocket switch.

---

<div class="post-metadata">

### Author: ![EmilWesselink](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/emilwesselink/32/65829_2.png) [@EmilWesselink](https://discourse.nodered.org/u/EmilWesselink)
#### Post date: [6 March 2022 22:56 UTC](https://discourse.nodered.org/t/hue-wall-switch-sends-on-and-off-status-at-every-toggle/55856/11 "2022-03-06T22:56:58Z")

</div>

I think it is great that the Hue switch does that. It gives you a lot of options if you get deeper into node-red. For now your solution can be so simple as put a switch node behind and set the condition to contains "\_released" and otherwise. Connect the output to the otherwise node.
