diff --git a/blueprints/mueller-tint-remote-404002.yaml b/blueprints/mueller-tint-remote-404002.yaml index 19a6b0c..d985a2f 100644 --- a/blueprints/mueller-tint-remote-404002.yaml +++ b/blueprints/mueller-tint-remote-404002.yaml @@ -20,6 +20,24 @@ blueprint: default: [] selector: action: + action_cmd_off: + name: (Optional) OFF action + description: Action to run on up button sending _off_ command. + default: [] + selector: + action: + action_cmd_scene_short: + name: (Optional) Short press scene action + description: Action to run on _short_ down button press. + default: [] + selector: + action: + action_cmd_scene_long: + name: (Optional) Long press scene action + description: Action to run on _long_ down button press. + default: [] + selector: + action: mode: restart max_exceeded: silent @@ -28,6 +46,9 @@ variables: # convert input tags to variables, to be used in templates remote: !input "remote" action_cmd_on: !input "action_cmd_on" + action_cmd_off: !input "action_cmd_off" + action_cmd_scene_short: !input "action_cmd_scene_short" + action_cmd_scene_long: !input "action_cmd_scene_long" trigger: - platform: event @@ -45,4 +66,21 @@ action: - choose: - conditions: [] sequence: !input action_cmd_on - \ No newline at end of file + - conditions: '{{ command == "off" }}' + sequence: + # run custom action + - choose: + - conditions: [] + sequence: !input action_cmd_off + - conditions: '{{ command == "recall" }}' + sequence: + # run custom action + - choose: + - conditions: [] + sequence: !input action_cmd_scene_short + - conditions: '{{ command == "store" }}' + sequence: + # run custom action + - choose: + - conditions: [] + sequence: !input action_cmd_scene_long