From 390ebc301014e427a8bf8f0a8834989d264ef412 Mon Sep 17 00:00:00 2001 From: zjamnik Date: Wed, 27 May 2026 11:56:08 +0000 Subject: [PATCH] Add hue-dimmer-blueprint.yaml initial automation for blueprint --- hue-dimmer-blueprint.yaml | 111 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 hue-dimmer-blueprint.yaml diff --git a/hue-dimmer-blueprint.yaml b/hue-dimmer-blueprint.yaml new file mode 100644 index 0000000..64a2b6a --- /dev/null +++ b/hue-dimmer-blueprint.yaml @@ -0,0 +1,111 @@ +alias: Hue dimmer template +description: "" +triggers: + - trigger: state + entity_id: + - event.bedroom_switch_desk_button_1 + attribute: event_type + to: + - short_release + - long_press + - repeat + - trigger: state + entity_id: + - event.bedroom_switch_desk_button_2 + attribute: event_type + to: + - short_release + - long_press + - repeat + - trigger: state + entity_id: + - event.bedroom_switch_desk_button_3 + attribute: event_type + to: + - short_release + - long_press + - repeat + - trigger: state + entity_id: + - event.bedroom_switch_desk_button_4 + 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: [] + - 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