Update hue-dimmer-blueprint.yaml
This commit is contained in:
@@ -11,21 +11,18 @@ blueprint:
|
||||
selector:
|
||||
action:
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: "{{ var_button1 }}"
|
||||
attribute: event_type
|
||||
to:
|
||||
- short_release
|
||||
- long_press
|
||||
- repeat
|
||||
- event_type: state_changed
|
||||
event_data:
|
||||
entity_id: "{{ var_button_ch1 }}"
|
||||
trigger: event
|
||||
id: button1_short
|
||||
conditions: []
|
||||
actions:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ trigger.entity_id == "event.bedroom_switch_desk_button_1" and
|
||||
trigger.to_state.attributes.event_type == "short_release"}}
|
||||
{{ trigger.id == "button1_short"}}
|
||||
sequence: !input button1_short_press
|
||||
mode: single
|
||||
trigger_variables:
|
||||
|
||||
Reference in New Issue
Block a user