Github Gist: philips_hue_tap_dial_switch_zigbee2mqtt_actions_blueprint · GitHub
Importing
Click the badge to import this Blueprint: (needs Home Assistant Core 2021.3 or higher)
Or import this Blueprint by using the Gist URL.
Main features
Use one of the 4 buttons on the dial switch, or the rotating dial to run self-defined actions.
The blueprint supports all the events that Zigbee2MQTT detects.
For instance:
- Single press, press release, hold and hold release for all 4 buttons.
- Dial rotations for both directions, either a small step, a slow turn or a fast turn.
Since the actions are fully self configurable, you could control any amount of entities you like in any way you like.
Prerequisites
You need to use Zigbee2MQTT for this blueprint.
Example automation YAML for controlling a light and its brightness:
(This example only uses one of the 4 buttons)
automation:
- id: 'hue_tap_dial_switch_bedroom_bed_actions'
alias: Hue tap dial switch bedroom bed actions
use_blueprint:
path: freakshock88/philips_hue_tap_dial_switch_zigbee2mqtt_actions_blueprint.yaml
input:
button_sensor: sensor.bedroom_bed_tap_dial_switch_action
remote_button_1_single_press:
- type: toggle
device_id: 864040e72b901146e5a8abf57a5fd3d8
entity_id: light.bedroom_ceiling_lights
domain: light
remote_dial_rotate_left_step:
- service: light.turn_on
data:
entity_id: light.bedroom_ceiling_lights
brightness_step_pct: -5
remote_dial_rotate_left_slow:
- service: light.turn_on
data:
entity_id: light.bedroom_ceiling_lights
brightness_step_pct: -10
remote_dial_rotate_left_fast:
- service: light.turn_on
data:
entity_id: light.bedroom_ceiling_lights
brightness_step_pct: -20
remote_dial_rotate_right_step:
- service: light.turn_on
data:
entity_id: light.bedroom_ceiling_lights
brightness_step_pct: 5
remote_dial_rotate_right_slow:
- service: light.turn_on
data:
entity_id: light.bedroom_ceiling_lights
brightness_step_pct: 10
remote_dial_rotate_right_fast:
- service: light.turn_on
data:
entity_id: light.bedroom_ceiling_lights
brightness_step_pct: 20
Changelog
- 2022-09-16: Initial version
I have not tested this blueprint extensively yet, but I have confirmed all actions work.
If you have any issues or questions, please let me know