diff --git a/hue-dimmer-blueprint.yaml b/hue-dimmer-blueprint.yaml index 8130158..d6b4163 100644 --- a/hue-dimmer-blueprint.yaml +++ b/hue-dimmer-blueprint.yaml @@ -11,10 +11,12 @@ blueprint: selector: action: triggers: - - event_type: state_changed - event_data: - entity_id: "{{ var_button_ch1 }}" - trigger: event + - trigger: state + entity_id: + - "{{ var_button1 }}" + attribute: event_type + to: + - short_release id: button1_short conditions: [] actions: @@ -27,5 +29,4 @@ actions: mode: single trigger_variables: var_switch: !input switch - var_button1: >- - {{ device_entities("166b8ce10384bb24003d21720b4e6478")[1] }} \ No newline at end of file + var_button1: "{{ device_entities(switch)[1] }}" \ No newline at end of file