Last active
May 6, 2025 14:50
-
-
Save julien731/d09b1a1ae6c07d1371dc5d524433c117 to your computer and use it in GitHub Desktop.
Tradfri E1743 Switch (Z2M v2) – UI Configurable Actions
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: Tradfri E1743 Switch (Z2M v2) – UI Configurable Actions | |
description: > | |
Works with Zigbee2MQTT v2+. Responds to on/off/brightness commands from the | |
IKEA TRADFRI on/off switch. All button actions are configurable via the UI. | |
Mode: restart is required for long press to be stoppable. | |
domain: automation | |
input: | |
source_switch_e1743_action: | |
name: Tradfri E1743 Switch | |
description: The switch-action which triggers this automation. | |
selector: | |
device: | |
entity: | |
integration: mqtt | |
filter: | |
- manufacturer: IKEA | |
model: TRADFRI on/off switch | |
multiple: false | |
on_press_action: | |
name: On Button Pressed | |
description: Action to run when ON is pressed | |
default: [] | |
selector: | |
action: {} | |
off_press_action: | |
name: Off Button Pressed | |
description: Action to run when OFF is pressed | |
default: [] | |
selector: | |
action: {} | |
brightness_up_action: | |
name: Brightness Move Up (Hold) | |
description: Action to run repeatedly while holding ON | |
default: [] | |
selector: | |
action: {} | |
brightness_down_action: | |
name: Brightness Move Down (Hold) | |
description: Action to run repeatedly while holding OFF | |
default: [] | |
selector: | |
action: {} | |
brightness_stop_action: | |
name: Brightness Stop (Release) | |
description: Action to run when brightness movement is stopped | |
default: [] | |
selector: | |
action: {} | |
trigger: | |
- domain: mqtt | |
trigger: device | |
device_id: !input source_switch_e1743_action | |
type: action | |
subtype: "on" | |
id: "on" | |
- domain: mqtt | |
trigger: device | |
device_id: !input source_switch_e1743_action | |
type: action | |
subtype: "off" | |
id: "off" | |
- domain: mqtt | |
trigger: device | |
device_id: !input source_switch_e1743_action | |
type: action | |
subtype: brightness_move_up | |
id: brightness_move_up | |
- domain: mqtt | |
trigger: device | |
device_id: !input source_switch_e1743_action | |
type: action | |
subtype: brightness_move_down | |
id: brightness_move_down | |
- domain: mqtt | |
trigger: device | |
device_id: !input source_switch_e1743_action | |
type: action | |
subtype: brightness_stop | |
id: brightness_stop | |
condition: [] | |
action: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: | |
- "on" | |
sequence: !input on_press_action | |
- conditions: | |
- condition: trigger | |
id: | |
- "off" | |
sequence: !input off_press_action | |
- conditions: | |
- condition: trigger | |
id: | |
- brightness_move_up | |
sequence: | |
- repeat: | |
sequence: !input brightness_up_action | |
count: 50 | |
- conditions: | |
- condition: trigger | |
id: | |
- brightness_move_down | |
sequence: | |
- repeat: | |
sequence: !input brightness_down_action | |
count: 50 | |
- conditions: | |
- condition: trigger | |
id: | |
- brightness_stop | |
sequence: !input brightness_stop_action | |
mode: restart | |
max_exceeded: silent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment