Update hue-dimmer-blueprint.yaml
This commit is contained in:
@@ -14,7 +14,7 @@ blueprint:
|
||||
default:
|
||||
selector:
|
||||
action:
|
||||
button1_short_press:
|
||||
button1_hold:
|
||||
default:
|
||||
selector:
|
||||
action:
|
||||
@@ -32,6 +32,16 @@ actions:
|
||||
value_template: >-
|
||||
{{ trigger.id == "button1" and trigger.event.data.new_state.attributes.event_type == "short_release"}}
|
||||
sequence: !input button1_short_press
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ trigger.id == "button1" and trigger.event.data.new_state.attributes.event_type == "long_press"}}
|
||||
sequence: !input button2_long_press
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ trigger.id == "button1" and trigger.event.data.new_state.attributes.event_type == "repeat"}}
|
||||
sequence: !input button1_hold
|
||||
mode: single
|
||||
trigger_variables:
|
||||
var_switch: !input switch
|
||||
|
||||
Reference in New Issue
Block a user