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