Update hue-dimmer-blueprint.yaml

This commit is contained in:
2026-05-27 14:14:17 +00:00
parent eec0094831
commit da2fcda2e7
+110 -4
View File
@@ -7,27 +7,87 @@ blueprint:
selector: selector:
device: device:
filter: filter:
model: Hue dimmer switch (RWL021) model: Hue dimmer switch
button1_section: button1_section:
name: Button 1 name: Button 1
collapsed: true collapsed: true
input: input:
button1_short_press: button1_short_press:
name: Button 1 short press
default: default:
selector: selector:
action: action:
button2_long_press: button1_long_press:
name: Button 1 long press
default: default:
selector: selector:
action: action:
button1_hold: button1_hold:
name: Button 1 hold
default:
selector:
action:
button2_section:
name: Button 2
collapsed: true
input:
button2_short_press:
name: Button 2 short press
default:
selector:
action:
button2_long_press:
name: Button 2 long press
default:
selector:
action:
button2_hold:
name: Button 2 hold
default:
selector:
action:
button3_section:
name: Button 3
collapsed: true
input:
button3_short_press:
name: Button 3 short press
default:
selector:
action:
button3_long_press:
name: Button 3 long press
default:
selector:
action:
button3_hold:
name: Button 3 hold
default:
selector:
action:
button4_section:
name: Button 4
collapsed: true
input:
button4_short_press:
name: Button 4 short press
default:
selector:
action:
button4_long_press:
name: Button 4 long press
default:
selector:
action:
button4_hold:
name: Button 4 hold
default: default:
selector: selector:
action: action:
triggers: triggers:
- event_type: state_changed - event_type: state_changed
event_data: event_data:
entity_id: "{{ var_button1 }}" entity_id: "{{ var_button3 }}"
trigger: event trigger: event
id: button1 id: button1
conditions: [] conditions: []
@@ -42,12 +102,58 @@ actions:
- condition: template - condition: template
value_template: >- value_template: >-
{{ trigger.id == "button1" and trigger.event.data.new_state.attributes.event_type == "long_press"}} {{ trigger.id == "button1" and trigger.event.data.new_state.attributes.event_type == "long_press"}}
sequence: !input button2_long_press sequence: !input button1_long_press
- conditions: - conditions:
- condition: template - condition: template
value_template: >- value_template: >-
{{ trigger.id == "button1" and trigger.event.data.new_state.attributes.event_type == "repeat"}} {{ trigger.id == "button1" and trigger.event.data.new_state.attributes.event_type == "repeat"}}
sequence: !input button1_hold sequence: !input button1_hold
- conditions:
- condition: template
value_template: >-
{{ trigger.id == "button2" and trigger.event.data.new_state.attributes.event_type == "short_release"}}
sequence: !input button2_short_press
- conditions:
- condition: template
value_template: >-
{{ trigger.id == "button2" and trigger.event.data.new_state.attributes.event_type == "long_press"}}
sequence: !input button2_long_press
- conditions:
- condition: template
value_template: >-
{{ trigger.id == "button2" and trigger.event.data.new_state.attributes.event_type == "repeat"}}
sequence: !input button2_hold
- conditions:
- condition: template
value_template: >-
{{ trigger.id == "button3" and trigger.event.data.new_state.attributes.event_type == "short_release"}}
sequence: !input button3_short_press
- conditions:
- condition: template
value_template: >-
{{ trigger.id == "button3" and trigger.event.data.new_state.attributes.event_type == "long_press"}}
sequence: !input button3_long_press
- conditions:
- condition: template
value_template: >-
{{ trigger.id == "button3" and trigger.event.data.new_state.attributes.event_type == "repeat"}}
sequence: !input button3_hold
- conditions:
- condition: template
value_template: >-
{{ trigger.id == "button4" and trigger.event.data.new_state.attributes.event_type == "short_release"}}
sequence: !input button4_short_press
- conditions:
- condition: template
value_template: >-
{{ trigger.id == "button4" and trigger.event.data.new_state.attributes.event_type == "long_press"}}
sequence: !input button4_long_press
- conditions:
- condition: template
value_template: >-
{{ trigger.id == "button4" and trigger.event.data.new_state.attributes.event_type == "repeat"}}
sequence: !input button4_hold
mode: single mode: single
trigger_variables: trigger_variables:
var_switch: !input switch var_switch: !input switch