blueprint: name: Hue dimmer automation via hue integration description: Hue dimmer automation via hue integration domain: automation input: switch: selector: device: button1_short_press: selector: action: button1_long_press: selector: action: button1_repeat: selector: action: button2_short_press: selector: action: button2_long_press: selector: action: button2_repeat: selector: action: button3_short_press: selector: action: button3_long_press: selector: action: button3_repeat: selector: action: button4_short_press: selector: action: button4_long_press: selector: action: button4_repeat: selector: action: triggers: - trigger: state entity_id: var_button1 attribute: event_type to: - short_release - long_press - repeat - trigger: state entity_id: - !input button2 attribute: event_type to: - short_release - long_press - repeat - trigger: state entity_id: - !input button3 attribute: event_type to: - short_release - long_press - repeat - trigger: state entity_id: - !input button4 attribute: event_type to: - short_release - long_press - repeat conditions: [] actions: - choose: - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_1" and trigger.to_state.attributes.event_type == "short_release"}} sequence: [!input button1_short_press] - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_1" and trigger.to_state.attributes.event_type == "long_press"}} sequence: [] - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_1" and trigger.to_state.attributes.event_type == "repeat"}} sequence: [] - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_2" and trigger.to_state.attributes.event_type == "short_release"}} sequence: [] - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_2" and trigger.to_state.attributes.event_type == "long_press"}} sequence: [] - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_2" and trigger.to_state.attributes.event_type == "repeat"}} sequence: [] - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_3" and trigger.to_state.attributes.event_type == "short_release"}} sequence: [] - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_3" and trigger.to_state.attributes.event_type == "long_press"}} sequence: [] - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_3" and trigger.to_state.attributes.event_type == "repeat"}} sequence: [] - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_4" and trigger.to_state.attributes.event_type == "short_release"}} sequence: [] - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_4" and trigger.to_state.attributes.event_type == "long_press"}} sequence: [] - conditions: - condition: template value_template: >- {{ trigger.entity_id == "event.bedroom_switch_desk_button_4" and trigger.to_state.attributes.event_type == "repeat"}} sequence: [] mode: single trigger_variables: var_switch: !input switch var_button1: {{ switch + "_button_1" }} var_button1: {{ switch + "_button_2" }} var_button1: {{ switch + "_button_3" }} var_button1: {{ switch + "_button_4" }}