diff --git a/hue-dimmer-blueprint.yaml b/hue-dimmer-blueprint.yaml index f5c7c4f..26449ed 100644 --- a/hue-dimmer-blueprint.yaml +++ b/hue-dimmer-blueprint.yaml @@ -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