The Hue Tap and Wireless Dimmer Switches are pretty awesome out of the box but did you know you can use it to trigger automations to do just about anything?

I currently use it in my living room and master bedroom to turn on/off automatic lights. I have the normal Hue setup to control the lights but have the hold events for the on/off buttons unprogrammed in the Hue app so I can intercept them in Node-RED. Instead of doing this you could have it control a second light by using the hold events for the on/off buttons. These are just ideas and things I have done, you can literally do anything you want.

Which remote should I buy?

It honestly depends...

The Wireless Dimmer Switch has four events per button whereas the Hue Tap only has the click event per button. The plus about the Hue Tap is that it's completely powered by the force of you pressing the button so you never have to deal with batteries (but this also means it is costly at 2.5x the price of the Wireless Dimmer Switch).

So you really just have to take in account what you want to accomplish before selecting a remote.

Getting Started

To get started install the node-red-contrib-huemagic library from the palette manager in Node-RED. Once it is installed configure your Hue hub inside the library so Node-RED can communicate with it. Make sure you have a Hue Tap or Wireless Dimmer Switch configured on your Hue hub so Node-RED can find it.

Once you copy the flows below you will need to setup which Switch/Tap you are using by double clicking the input node.

The Example Flow

Hue Wireless Dimmer Switch Flow

Here is a basic flow to get you an idea of all the different events you can intercept with the Wireless Dimmer Switch:

[{"id":"c8dedd00.1d5bd","type":"comment","z":"ff717302.0c688","name":"Hue Dimmer Switch Example Flow","info":"","x":1980,"y":3680,"wires":[]},{"id":"67c830e3.016f4","type":"hue-switch","z":"ff717302.0c688","name":"Living room switch","bridge":"","sensorid":"6","x":1810,"y":3820,"wires":[["4d721a85.c7f674"]]},{"id":"4d721a85.c7f674","type":"switch","z":"ff717302.0c688","name":"button switch","property":"payload.name","propertyType":"msg","rules":[{"t":"eq","v":"On","vt":"str"},{"t":"eq","v":"Off","vt":"str"},{"t":"eq","v":"Dim Up","vt":"str"},{"t":"eq","v":"Dim Down","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":2010,"y":3820,"wires":[["cbb699c2.4d9738"],["24ca3500.340b3c"],["6650fb79.7cec34"],["e79bb14a.1b238"]]},{"id":"cbb699c2.4d9738","type":"switch","z":"ff717302.0c688","name":"push type","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"pressed","vt":"str"},{"t":"eq","v":"holded","vt":"str"},{"t":"eq","v":"short released","vt":"str"},{"t":"eq","v":"long released","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":2200,"y":3740,"wires":[[],[],[],[]]},{"id":"24ca3500.340b3c","type":"switch","z":"ff717302.0c688","name":"push type","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"pressed","vt":"str"},{"t":"eq","v":"holded","vt":"str"},{"t":"eq","v":"short released","vt":"str"},{"t":"eq","v":"long released","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":2200,"y":3800,"wires":[[],[],[],[]]},{"id":"6650fb79.7cec34","type":"switch","z":"ff717302.0c688","name":"push type","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"pressed","vt":"str"},{"t":"eq","v":"holded","vt":"str"},{"t":"eq","v":"short released","vt":"str"},{"t":"eq","v":"long released","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":2200,"y":3860,"wires":[[],[],[],[]]},{"id":"e79bb14a.1b238","type":"switch","z":"ff717302.0c688","name":"push type","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"pressed","vt":"str"},{"t":"eq","v":"holded","vt":"str"},{"t":"eq","v":"short released","vt":"str"},{"t":"eq","v":"long released","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":2200,"y":3920,"wires":[[],[],[],[]]},{"id":"d2b1d65b.cbe438","type":"hue-bridge","z":"","name":"Home Hue Bridge","bridge":"","key":"","interval":"2000"}]

As you can see there is four buttons (On, Dim Up, Dim Down, Off) that each have four different event types (pressed, holded, short released, long released).

Click here to learn more about the data returned from the Hue Switch node.

Hue Tap

Here is a basic flow to get you an idea of all the different events you can intercept with the Hue Tap:

[{"id":"689ca03d.1e28","type":"hue-tap","z":"ff717302.0c688","name":"","bridge":"","sensorid":"","x":1880,"y":4100,"wires":[["e426b181.9aba8"]]},{"id":"e426b181.9aba8","type":"switch","z":"ff717302.0c688","name":"button switch","property":"payload.button","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"}],"checkall":"true","repair":false,"outputs":4,"x":2030,"y":4100,"wires":[[],[],[],[]]},{"id":"3c3c8e78.24b2a2","type":"comment","z":"ff717302.0c688","name":"Hue Dimmer Switch Example Flow","info":"","x":1960,"y":4040,"wires":[]},{"id":"d2b1d65b.cbe438","type":"hue-bridge","z":"","name":"Home Hue Bridge","bridge":"","key":"","interval":"2000"}]

As I mentioned earlier the Hue Tap only supports click events so you don't get nearly as many options. It still works great though.

Click here to learn more about the data returned from the Hue Tap node.

Conclusion

As you can see the options are endless for these remotes now. This definitely make the Wireless Dimmer Switch worth the money but I am still debating if the $50 price tag on the Hue Tap is worth it. That is quite a lot of money for a device I just frankly wouldn't use enough to justify it. To each there own though, you may find the Tap is a better fit for you.

If you liked this article please consider leaving feedback. I love to hear back from my readers.