Update hue-dimmer-blueprint.yaml

This commit is contained in:
2026-05-27 12:46:59 +00:00
parent 75b1722fa7
commit 7c86971f1a
-134
View File
@@ -10,50 +10,6 @@ blueprint:
default: default:
selector: selector:
action: action:
button1_long_press:
default:
selector:
action:
button1_repeat:
default:
selector:
action:
button2_short_press:
default:
selector:
action:
button2_long_press:
default:
selector:
action:
button2_repeat:
default:
selector:
action:
button3_short_press:
default:
selector:
action:
button3_long_press:
default:
selector:
action:
button3_repeat:
default:
selector:
action:
button4_short_press:
default:
selector:
action:
button4_long_press:
default:
selector:
action:
button4_repeat:
default:
selector:
action:
triggers: triggers:
- trigger: state - trigger: state
entity_id: var_button1 entity_id: var_button1
@@ -62,27 +18,6 @@ triggers:
- short_release - short_release
- long_press - long_press
- repeat - repeat
- trigger: state
entity_id: var_button1
attribute: event_type
to:
- short_release
- long_press
- repeat
- trigger: state
entity_id: var_button1
attribute: event_type
to:
- short_release
- long_press
- repeat
- trigger: state
entity_id: var_button1
attribute: event_type
to:
- short_release
- long_press
- repeat
conditions: [] conditions: []
actions: actions:
- choose: - choose:
@@ -92,78 +27,9 @@ actions:
{{ trigger.entity_id == "event.bedroom_switch_desk_button_1" and {{ trigger.entity_id == "event.bedroom_switch_desk_button_1" and
trigger.to_state.attributes.event_type == "short_release"}} trigger.to_state.attributes.event_type == "short_release"}}
sequence: [!input button1_short_press] sequence: [!input button1_short_press]
- conditions:
- condition: template
value_template: >-
{{ trigger.entity_id == "event.bedroom_switch_desk_button_1" and
trigger.to_state.attributes.event_type == "long_press"}}
sequence: []
- conditions:
- condition: template
value_template: >-
{{ trigger.entity_id == "event.bedroom_switch_desk_button_1" and
trigger.to_state.attributes.event_type == "repeat"}}
sequence: []
- conditions:
- condition: template
value_template: >-
{{ trigger.entity_id == "event.bedroom_switch_desk_button_2" and
trigger.to_state.attributes.event_type == "short_release"}}
sequence: []
- conditions:
- condition: template
value_template: >-
{{ trigger.entity_id == "event.bedroom_switch_desk_button_2" and
trigger.to_state.attributes.event_type == "long_press"}}
sequence: []
- conditions:
- condition: template
value_template: >-
{{ trigger.entity_id == "event.bedroom_switch_desk_button_2" and
trigger.to_state.attributes.event_type == "repeat"}}
sequence: []
- conditions:
- condition: template
value_template: >-
{{ trigger.entity_id == "event.bedroom_switch_desk_button_3" and
trigger.to_state.attributes.event_type == "short_release"}}
sequence: []
- conditions:
- condition: template
value_template: >-
{{ trigger.entity_id == "event.bedroom_switch_desk_button_3" and
trigger.to_state.attributes.event_type == "long_press"}}
sequence: []
- conditions:
- condition: template
value_template: >-
{{ trigger.entity_id == "event.bedroom_switch_desk_button_3" and
trigger.to_state.attributes.event_type == "repeat"}}
sequence: []
- conditions:
- condition: template
value_template: >-
{{ trigger.entity_id == "event.bedroom_switch_desk_button_4" and
trigger.to_state.attributes.event_type == "short_release"}}
sequence: []
- conditions:
- condition: template
value_template: >-
{{ trigger.entity_id == "event.bedroom_switch_desk_button_4" and
trigger.to_state.attributes.event_type == "long_press"}}
sequence: []
- conditions:
- condition: template
value_template: >-
{{ trigger.entity_id == "event.bedroom_switch_desk_button_4" and
trigger.to_state.attributes.event_type == "repeat"}}
sequence: []
mode: single mode: single
trigger_variables: trigger_variables:
var_switch: !input switch var_switch: !input switch
var_button1: >- var_button1: >-
{% set button1_name = device_name(var_switch) + "_button_1" %} {% set button1_name = device_name(var_switch) + "_button_1" %}
{{ button1_name }} {{ button1_name }}
var_button2: ad
var_button3: ad
var_button4: ad