Created
March 9, 2025 11:59
-
-
Save reefab/72ab34b7741ca44664a5eaa37acd3eba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Hue Tap Button Actions | |
description: | | |
This blueprint triggers a user-specified action when a button on a Hue Tap is pressed. | |
domain: automation | |
input: | |
hue_tap: | |
name: Hue Tap | |
description: "The Hue Tap that triggers actions" | |
selector: | |
device: {} | |
button_1_action: | |
name: First Button Action | |
description: "The action to execute when the first button is pressed." | |
default: [] | |
selector: | |
action: {} | |
button_2_action: | |
name: Second Button Action | |
description: "The action to execute when the second button is pressed." | |
default: [] | |
selector: | |
action: {} | |
button_3_action: | |
name: Third Button Action | |
description: "The action to execute when the third button is pressed." | |
default: [] | |
selector: | |
action: {} | |
button_4_action: | |
name: Fourth Button Action | |
description: "The action to execute when the fourth button is pressed." | |
default: [] | |
selector: | |
action: {} | |
mode: queued | |
trigger: | |
- platform: device | |
device_id: !input hue_tap | |
domain: mqtt | |
type: action | |
subtype: press_1 | |
- platform: device | |
device_id: !input hue_tap | |
domain: mqtt | |
type: action | |
subtype: press_2 | |
- platform: device | |
device_id: !input hue_tap | |
domain: mqtt | |
type: action | |
subtype: press_3 | |
- platform: device | |
device_id: !input hue_tap | |
domain: mqtt | |
type: action | |
subtype: press_4 | |
condition: [] | |
action: | |
- choose: | |
- conditions: "{{ trigger.payload == 'press_1' }}" | |
sequence: !input button_1_action | |
- conditions: "{{ trigger.payload == 'press_2' }}" | |
sequence: !input button_2_action | |
- conditions: "{{ trigger.payload == 'press_3' }}" | |
sequence: !input button_3_action | |
- conditions: "{{ trigger.payload == 'press_4' }}" | |
sequence: !input button_4_action |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment