Hi everyone, I wanted to share a helpful solution I found for integrating the IKEA TRADFRI open/close remote with ZHA in Home Assistant. I’ve been using this setup for a while now, and it’s been working perfectly for controlling various devices around my home. If you’re struggling with getting this remote to work with specific actions, this might be exactly what you need!
The solution involves creating a blueprint based on a post I found in the community. The blueprint allows you to define custom actions for different button presses and holds. For example, you can set the open button press to turn on a light, the close button press to turn it off, and long presses to adjust brightness or trigger scenes. It’s incredibly flexible and can be adapted to suit almost any use case.
Here’s the blueprint I’ve been using:
markdown
name: ZHA - IKEA wireless open/close remote
description: Control anything using IKEA wireless open/close remote
domain: automation
input:
remote:
name: Remote
description: IKEA wireless open/close remote to use
selector:
device:
integration: zha
model: “TRADFRI open/close remote”
button_open_short:
name: Open button press
description: Action to run on press of Open button
default:
selector:
action: {}
button_close_short:
name: Close button press
description: Action to run on press of Close button
default:
selector:
action: {}
button_open_long:
name: Open button hold
description: Action to run on long press of Open button
default:
selector:
action: {}
button_close_long:
name: Close button hold
description: Action to run on long press of Close button
default:
selector:
action: {}
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
action:
-
variables:
command: ‘{{ trigger.event.data.command }}’
cluster_id: ‘{{ trigger.event.data.cluster_id }}’
endpoint_id: ‘{{ trigger.event.data.endpoint_id }}’
args: ‘{{ trigger.event.data.args }}’ -
choose:
-
conditions:
- ‘{{ command == ‘‘up_open’’ }}’
sequence: !input button_open_short
- ‘{{ command == ‘‘up_open’’ }}’
-
conditions:
- ‘{{ command == ‘‘down_close’’ }}’
sequence: !input button_close_short
- ‘{{ command == ‘‘down_close’’ }}’
-
conditions:
- ‘{{ command == ‘‘stop_opening’’ }}’
sequence: !input button_open_long
- ‘{{ command == ‘‘stop_opening’’ }}’
-
conditions:
- ‘{{ command == ‘‘stop_closing’’ }}’
sequence: !input button_close_long
- ‘{{ command == ‘‘stop_closing’’ }}’
-
To get started, simply add this blueprint to your automations in Home Assistant. You can customize the actions for each button press to suit your needs. I’ve found this to be a fantastic way to repurpose old IKEA remotes for new smart home functions.
If you have any questions or need help setting this up, feel free to ask! I’m happy to assist. Also, if you’ve found other creative uses for this remote, I’d love to hear about them in the comments below. Let’s keep the community knowledge flowing!
Happy automating! ![]()