Skip to content

Instantly share code, notes, and snippets.

View pantherale0's full-sized avatar
🏠
Working from home

Jordan Harvey pantherale0

🏠
Working from home
  • Norfolk, United Kingdom
  • 07:10 (UTC +01:00)
View GitHub Profile
@pantherale0
pantherale0 / zigbee2mqtt_hue_dimmer_v2.yaml
Last active March 6, 2025 10:39 — forked from CrazyCoder/zigbee2mqtt_hue_dimmer_v2.yaml
Philips Hue Dimmer switch v2 (Zigbee2MQTT)
blueprint:
name: Philips Hue Dimmer switch v2 (Zigbee2MQTT)
description:
"Tested with Philips Hue Smart Wireless Dimmer Switch V2 (929002398602).
\n\n
To have different actions on short press and on hold (long press), use 'button release' (`*_press_release`) and 'button hold once' (`*_hold_once`) commands,
as 'press' (`*_press`) will always trigger before 'button hold' (`*_hold`).
\n\n
When you hold a button, 'button hold' (`*_hold`) command is repeated roughly once per second. This may not work as desired with actions like toggling light/switch.
If you want an action to run only once when the button hold action is registered, use 'button hold once' (`*_hold_once`). It's better than using 'button hold release'
blueprint:
name: Z2M - Philips Hue Dimmer Switch RWL022
description: Choose what all four buttons will do.
domain: automation
input:
remote:
name: Hue Dimmer switch
description: Hue Dimmer switch to use (Zigbee2mqtt event sensor)
selector:
entity:
#EXTM3U
#EXTINF:-1,BBC One HD
https://vs-hls-push-uk-live.akamaized.net/x=3/i=urn:bbc:pips:service:bbc_one_hd/t=3840/v=pv14/b=5070016/main.m3u8
#EXTINF:-1,BBC One Wales HD
https://vs-hls-pushb-uk-live.akamaized.net/x=3/i=urn:bbc:pips:service:bbc_one_wales_hd/t=3840/v=pv14/b=5070016/main.m3u8
#EXTINF:-1,BBC One Northern Ireland HD
https://vs-hls-pushb-uk-live.akamaized.net/x=3/i=urn:bbc:pips:service:bbc_one_northern_ireland_hd/t=3840/v=pv14/b=5070016/main.m3u8
#EXTINF:-1,BBC One Scotland HD
https://vs-hls-pushb-uk-live.akamaized.net/x=3/i=urn:bbc:pips:service:bbc_one_scotland_hd/t=3840/v=pv14/b=5070016/main.m3u8