diff --git a/hue-dimmer-blueprint.yaml b/hue-dimmer-blueprint.yaml index d6b4163..0ef1876 100644 --- a/hue-dimmer-blueprint.yaml +++ b/hue-dimmer-blueprint.yaml @@ -11,20 +11,18 @@ blueprint: selector: action: triggers: - - trigger: state - entity_id: - - "{{ var_button1 }}" - attribute: event_type - to: - - short_release - id: button1_short + - event_type: state_changed + event_data: + entity_id: "{{ var_button1 }}" + trigger: event + id: button1 conditions: [] actions: - choose: - conditions: - condition: template value_template: >- - {{ trigger.id == "button1_short"}} + {{ trigger.id == "button1" and trigger.event.data.new_state.attributes.event_type == "short_release"}} sequence: !input button1_short_press mode: single trigger_variables: