From ffb93aac8c138813d7c4d2026ee40aced2f1a58f Mon Sep 17 00:00:00 2001 From: Jan Heise Date: Thu, 16 Jan 2025 22:29:58 +0100 Subject: [PATCH] first incomplete version for 404002 blueprint --- blueprints/mueller-tint-remote-404002.yaml | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 blueprints/mueller-tint-remote-404002.yaml diff --git a/blueprints/mueller-tint-remote-404002.yaml b/blueprints/mueller-tint-remote-404002.yaml new file mode 100644 index 0000000..772d9c8 --- /dev/null +++ b/blueprints/mueller-tint-remote-404002.yaml @@ -0,0 +1,45 @@ +blueprint: + name: Muller Licht Remote 404002 + description: Control lights with a Muller Licht 4 button remote + source_url: https://github.com/EPMatt/awesome-ha-blueprints/blob/main/blueprints/controllers/osram_ac025xx00nj/osram_ac025xx00nj.yaml + domain: automation + homeassistant: + min_version: 2023.5.0 + input: + remote: + name: Remote + description: Muller Licht remote to use + selector: + device: + integration: zha + manufacturer: LDS + model: ZBT-DIMController-D0800 + action_cmd_on: + name: (Optional) ON action + description: Action to run on up button sending _on_ command. + default: [] + selector: + action: + mode: restart + max_exceeded: silent +# Automation schema +variables: + # convert input tags to variables, to be used in templates + remote: !input "remote" + action_cmd_on: !input "action_cmd_on" +trigger: + - platform: event + event_type: zha_event + event_data: + device_id: !input "remote" +action: + - variables: + command: '{{ trigger.event.data.command }}' + - choose: + - conditions: '{{ command == "on" }}' + sequence: + # run custom action + - choose: + - conditions: [] + sequence: !input action_cmd_on + \ No newline at end of file