Forked from damru/ikea-rodret_E2201_ZHA-Z2M_control-light.yaml
Last active
February 6, 2025 11:10
-
-
Save Grateful-J/8969489d69500e16e01d774c0ba75358 to your computer and use it in GitHub Desktop.
IKEA RODRET Dimmer Remote (E2201) - Z2M - Control Light
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: IKEA Rodret Dimmer (Zigbee2MQTT) | |
description: "## IKEA RODRET Dimmer remote (v1.2) | |
For use with Zigbee2MQTT (cf [MQTT](https://www.home-assistant.io/integrations/mqtt) | |
+ [Z2M addon](https://www.zigbee2mqtt.io/guide/installation/03_ha_addon.html)). | |
Available controls: | |
- Click the **on** or **off** buttons | |
- Click and hold the **on**/**off** buttons (optional) | |
- Double click the **on** or **off** buttons (optional) | |
- Triple click the **on** or **off** buttons (optional) | |
" | |
source_url: https://gist.github.com/trilorian/ee957a682ab6a3765e8fbb19502e9bfb | |
domain: automation | |
input: | |
remote_name: | |
name: Remote Name | |
description: The name of the controller (e.g. IKEA Rodret). | |
default: "" | |
base_topic: | |
name: Base mqtt topic | |
description: The topic configured in [Z2M addon](https://www.zigbee2mqtt.io/guide/usage/mqtt_topics_and_messages.html). | |
default: zigbee2mqtt | |
on_click_action: | |
name: On - Single click action | |
description: Choose action(s) to run when **on** button is clicked. | |
default: [] | |
selector: | |
action: {} | |
off_click_action: | |
name: Off - Single click action | |
description: Choose action(s) to run when **off** button is clicked. | |
default: [] | |
selector: | |
action: {} | |
on_hold_action: | |
name: On - Hold action (Optional) | |
description: Choose action(s) to run when **on** button is held. | |
default: [] | |
selector: | |
action: {} | |
off_hold_action: | |
name: Off - Hold action (Optional) | |
description: Choose action(s) to run when **off** button is held. | |
default: [] | |
selector: | |
action: {} | |
on_double_click_action: | |
name: On - Double click action (Optional) | |
description: Choose action(s) to run when **on** button is double clicked. | |
default: [] | |
selector: | |
action: {} | |
off_double_click_action: | |
name: Off - Double click action (Optional) | |
description: Choose action(s) to run when **off** button is double clicked. | |
default: [] | |
selector: | |
action: {} | |
on_triple_click_action: | |
name: On - Triple click action (Optional) | |
description: Choose action(s) to run when **on** button is triple clicked. | |
default: [] | |
selector: | |
action: {} | |
off_triple_click_action: | |
name: Off - Triple click action (Optional) | |
description: Choose action(s) to run when **off** button is triple clicked. | |
default: [] | |
selector: | |
action: {} | |
helper_multi_click_delay: | |
name: Helper - Multi click delay | |
description: Max delay between the button clicks for the multi-click events. | |
default: 250 | |
selector: | |
number: | |
unit_of_measurement: milliseconds | |
min: 100.0 | |
max: 5000.0 | |
step: 10.0 | |
mode: slider | |
helper_hold_delay: | |
name: Helper - Hold delay | |
description: Delay between the execution of the hold actions. | |
default: 250 | |
selector: | |
number: | |
unit_of_measurement: milliseconds | |
min: 100.0 | |
max: 5000.0 | |
step: 10.0 | |
mode: slider | |
helper_max_loops: | |
name: Helper - Max number of loops | |
description: Maximum number of loops when holding down a button. | |
default: 20 | |
selector: | |
number: | |
min: 1.0 | |
max: 1000.0 | |
step: 1.0 | |
mode: slider | |
mode: single | |
max_exceeded: silent | |
trigger_variables: | |
z2m_base_topic: !input base_topic | |
z2m_controller: !input remote_name | |
trigger: | |
- platform: mqtt | |
topic: "{{ z2m_base_topic ~ '/' ~ z2m_controller ~ '/action' }}" | |
payload: "on" | |
id: click-on | |
- platform: mqtt | |
topic: "{{ z2m_base_topic ~ '/' ~ z2m_controller ~ '/action' }}" | |
payload: "off" | |
id: click-off | |
- platform: mqtt | |
topic: "{{ z2m_base_topic ~ '/' ~ z2m_controller ~ '/action' }}" | |
payload: "brightness_move_up" | |
id: hold-on | |
- platform: mqtt | |
topic: "{{ z2m_base_topic ~ '/' ~ z2m_controller ~ '/action' }}" | |
payload: "brightness_move_down" | |
id: hold-off | |
- platform: mqtt | |
topic: "{{ z2m_base_topic ~ '/' ~ z2m_controller ~ '/action' }}" | |
payload: "brightness_stop" | |
id: release | |
- platform: mqtt | |
topic: "{{ z2m_base_topic ~ '/' ~ z2m_controller ~ '/action' }}" | |
payload: "brightness_step_up" | |
id: double-click-on | |
- platform: mqtt | |
topic: "{{ z2m_base_topic ~ '/' ~ z2m_controller ~ '/action' }}" | |
payload: "brightness_step_down" | |
id: double-click-off | |
- platform: mqtt | |
topic: "{{ z2m_base_topic ~ '/' ~ z2m_controller ~ '/action' }}" | |
payload: "toggle" | |
id: triple-click-on-off | |
action: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: click-on | |
sequence: !input on_click_action | |
- conditions: | |
- condition: trigger | |
id: click-off | |
sequence: !input off_click_action | |
- conditions: | |
- condition: trigger | |
id: hold-on | |
sequence: !input on_hold_action | |
- conditions: | |
- condition: trigger | |
id: hold-off | |
sequence: !input off_hold_action | |
- conditions: | |
- condition: trigger | |
id: double-click-on | |
sequence: !input on_double_click_action | |
- conditions: | |
- condition: trigger | |
id: double-click-off | |
sequence: !input off_double_click_action | |
- conditions: | |
- condition: trigger | |
id: triple-click-on-off | |
sequence: !input on_triple_click_action | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment