Skip to content

Instantly share code, notes, and snippets.

@jacek-lewandowski
Last active February 21, 2026 08:40
Show Gist options
  • Select an option

  • Save jacek-lewandowski/1460004f3e66335ff5fb429d1a988ad8 to your computer and use it in GitHub Desktop.

Select an option

Save jacek-lewandowski/1460004f3e66335ff5fb429d1a988ad8 to your computer and use it in GitHub Desktop.
Tradfri E1743 blueprint
blueprint:
name: IKEA Tradfri E1743 Shortcut Button - Relaxed (ZHA)
description: Control actions using IKEA Tradfri On/Off switch via ZHA.
domain: automation
input:
remote:
name: IKEA device
description: Select the E1743 remote.
selector:
device:
integration: zha
manufacturer: IKEA of Sweden
# Removed the strict model filter to catch unk_model or alternate names
button_on_short:
name: On Button - Short Press
default: []
selector:
action: {}
button_off_short:
name: Off Button - Short Press
default: []
selector:
action: {}
button_on_long:
name: On Button - Long Press (Hold)
default: []
selector:
action: {}
button_off_long:
name: Off Button - Long Press (Hold)
default: []
selector:
action: {}
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
action:
- variables:
# Extracting the event data into variables for easier conditions
command: "{{ trigger.event.data.command }}"
cluster_id: "{{ trigger.event.data.cluster_id }}"
endpoint_id: "{{ trigger.event.data.endpoint_id }}"
- choose:
# Short Press ON
- conditions:
- condition: template
value_template: "{{ command == 'on' }}"
sequence: !input button_on_short
# Short Press OFF
- conditions:
- condition: template
value_template: "{{ command == 'off' }}"
sequence: !input button_off_short
# Long Press ON (Move with On/Off)
- conditions:
- condition: template
value_template: "{{ command == 'move_with_on_off' }}"
sequence: !input button_on_long
# Long Press OFF (Move)
- conditions:
- condition: template
value_template: "{{ command == 'move' }}"
sequence: !input button_off_long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment