Last active
May 7, 2024 21:02
-
-
Save prashnts/6fa86338c1e07a840631b630a828cd5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Enki Remote over Z2M | |
description: Blueprint for Enki RGB Remote over Z2M | |
domain: automation | |
input: | |
remote: | |
name: Remote | |
description: The action entity of your Enki Remote | |
selector: | |
entity: | |
domain: sensor | |
multiple: false | |
button_left: | |
name: Left button | |
description: Action to run on `left` button press | |
default: [] | |
selector: | |
action: {} | |
button_right: | |
name: right button | |
description: Action to run on `right` button press | |
default: [] | |
selector: | |
action: {} | |
button_up: | |
name: up button | |
description: Action to run on `up` button press | |
default: [] | |
selector: | |
action: {} | |
button_down: | |
name: down button | |
description: Action to run on `down` button press | |
default: [] | |
selector: | |
action: {} | |
button_brightness_up: | |
name: brightness up button | |
description: Action to run on `brightness up` button press | |
default: [] | |
selector: | |
action: {} | |
button_brightness_down: | |
name: brightness down button | |
description: Action to run on `brightness down` button press | |
default: [] | |
selector: | |
action: {} | |
button_scene_1: | |
name: scene 1 button | |
description: Action to run on `scene 1` button press | |
default: [] | |
selector: | |
action: {} | |
button_scene_2: | |
name: scene 2 button | |
description: Action to run on `scene 2` button press | |
default: [] | |
selector: | |
action: {} | |
button_scene_3: | |
name: scene 3 button | |
description: Action to run on `scene 3` button press | |
default: [] | |
selector: | |
action: {} | |
button_scene_4: | |
name: scene 4 button | |
description: Action to run on `scene 4` button press | |
default: [] | |
selector: | |
action: {} | |
button_on: | |
name: on button | |
description: Action to run on `on` button press | |
default: [] | |
selector: | |
action: {} | |
button_off: | |
name: off button | |
description: Action to run on `off` button press | |
default: [] | |
selector: | |
action: {} | |
source_url: https://gist.github.com/prashnts/6fa86338c1e07a840631b630a828cd5a/raw/1106d2ce09860d6d0e02d92c70242971e7fb3c55/ha_bp_lexman_enki_remote.yaml | |
trigger: | |
- platform: state | |
entity_id: !input remote | |
attribute: action | |
condition: [] | |
action: | |
- variables: | |
command: "{{ trigger.to_state.state }}" | |
- choose: | |
- conditions: | |
- "{{ command == 'color_hue_step_down' }}" | |
sequence: !input button_left | |
- conditions: | |
- "{{ command == 'color_hue_step_up' }}" | |
sequence: !input button_right | |
- conditions: | |
- "{{ command == 'color_saturation_step_up' }}" | |
sequence: !input button_up | |
- conditions: | |
- "{{ command == 'color_saturation_step_down' }}" | |
sequence: !input button_down | |
- conditions: | |
- "{{ command == 'brightness_step_up' }}" | |
sequence: !input button_brightness_up | |
- conditions: | |
- "{{ command == 'brightness_step_down' }}" | |
sequence: !input button_brightness_down | |
- conditions: | |
- "{{ command == 'scene_1' }}" | |
sequence: !input button_scene_1 | |
- conditions: | |
- "{{ command == 'scene_2' }}" | |
sequence: !input button_scene_2 | |
- conditions: | |
- "{{ command == 'scene_3' }}" | |
sequence: !input button_scene_3 | |
- conditions: | |
- "{{ command == 'scene_4' }}" | |
sequence: !input button_scene_4 | |
- conditions: | |
- "{{ command == 'on' }}" | |
sequence: !input button_on | |
- conditions: | |
- "{{ command == 'off' }}" | |
sequence: !input button_off | |
mode: restart | |
max_exceeded: silent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment