Forked from damru/ikea-rodret_E2201_ZHA-Z2M_control-anything.yaml
Last active
June 25, 2024 15:49
-
-
Save jackphilippi/c9145f6f3f3a93cf404cf20354bc530d to your computer and use it in GitHub Desktop.
ZHA Blueprint for IKEA RODRET Remote
This file contains 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: IKEA Rodret Remote for ZHA | |
description: > | |
## Control anything with IKEA RODRET Dimmer remote (v1.2) | |
Only for use with [ZHA](https://www.home-assistant.io/integrations/zha/) | |
Available controls: | |
- Press the **on** or **off** buttons | |
- Double press the **on** or **off** buttons (optional) in **Helper - Double press delay** interval. When disabled, there will be no delay for the simple press actions | |
- Press and hold the **on**/**off** buttons. Actions will be executed every **Helper - Hold delay**, but maximum **Helper - Max number of loops** times. | |
source_url: https://gist.github.com/damru/b2c1c780ffb0ddc084952eb89db9573a | |
domain: automation | |
input: | |
remote_device: | |
name: Rodret Remote | |
description: IKEA remote to use. | |
default: "" | |
selector: | |
device: | |
filter: | |
integration: zha | |
manufacturer: IKEA of Sweden | |
model: RODRET Dimmer | |
multiple: false | |
on_press_action: | |
name: "Single Press: [ON]" | |
description: Choose action(s) to run when **on** button is pressed. | |
default: [] | |
selector: | |
action: {} | |
off_press_action: | |
name: "Single Press: [OFF]" | |
description: Choose action(s) to run when **off** button is pressed. | |
default: [] | |
selector: | |
action: {} | |
on_hold_action: | |
name: "Hold: [ON]" | |
description: Choose action(s) to run when **on** button is **pressed and held**. | |
default: [] | |
selector: | |
action: {} | |
off_hold_action: | |
name: "Hold: [OFF]" | |
description: Choose action(s) to run when **off** button is **pressed and held**. | |
default: [] | |
selector: | |
action: {} | |
mode: single | |
max_exceeded: silent | |
trigger: | |
- platform: event | |
event_type: zha_event | |
event_data: | |
device_id: !input remote_device | |
command: "on" | |
cluster_id: 6 | |
endpoint_id: 1 | |
id: press-btn-on | |
- platform: event | |
event_type: zha_event | |
event_data: | |
device_id: !input remote_device | |
command: "off" | |
cluster_id: 6 | |
endpoint_id: 1 | |
id: press-btn-off | |
- platform: event | |
event_type: zha_event | |
event_data: | |
device_id: !input remote_device | |
command: "move_with_on_off" | |
cluster_id: 8 | |
endpoint_id: 1 | |
args: [0, 83] | |
id: hold-btn-on | |
- platform: event | |
event_type: zha_event | |
event_data: | |
device_id: !input remote_device | |
command: "move" | |
cluster_id: 8 | |
endpoint_id: 1 | |
args: [1, 83, 0, 0] | |
id: hold-btn-off | |
# /***********************************\ | |
# Note: The following event is also available, | |
# but is only here for reference; it is not used | |
# in this blueprint: | |
# \***********************************/ | |
- platform: event | |
event_type: zha_event | |
event_data: | |
device_id: !input remote_device | |
endpoint_id: 1 | |
cluster_id: 8 | |
command: stop_with_on_off | |
id: release-zha | |
action: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: press-btn-on | |
sequence: !input on_press_action | |
- conditions: | |
- condition: trigger | |
id: press-btn-off | |
sequence: !input off_press_action | |
- conditions: | |
- condition: trigger | |
id: hold-btn-on | |
sequence: !input on_hold_action | |
- conditions: | |
- condition: trigger | |
id: hold-btn-off | |
sequence: !input off_hold_action |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment