Ikea Tradfri remote control in Home Assistant with zigbee2mqtt
In this short video I am showing how to integrate the Ikea Tradfri remote control into Home Assistant using zigbee2mqtt and some example automations to show you what can be controlled with the remote.
The Ikea Tradfri remote control has 5 buttons and you can perform 13 actions using them in Home Assistant. The four outwards buttons can each have 3 different actions assigned by using click, hold and release. The middle one can only be used to toggle.
You can use these actions in automations to make lights come on/off, dim them, change light temperature or like I did, run a scene at the press of a button. I control all my Christmas lights from this remote.
The available actions are:
brightness_up_click
brightness_down_click
brightness_up_hold
brightness_up_release
brightness_down_hold
brightness_down_release
arrow_right_click
arrow_left_click
arrow_right_hold
arrow_right_release
arrow_left_hold
arrow_left_release
toggle
Example automation to turn on a switch using one of the buttons:
alias: Tradfri turn ON aquarium lights with left click
description: ''
trigger:
- entity_id: sensor.tradfri_remote_action
platform: state
to: arrow_left_click
condition: []
action:
- data:
entity_id: switch.aquarium_lights_switch
service: switch.turn_on
You can create a similar automation to turn off the light using the "arrow_right_click".
If you want to add an automation to dim up/down the lights, you could use the following:
Brightness up button:
entity_id: sensor.controller_action
to: brightness_up_click
action:
data_template:
entity_id: light.living_room_light
brightness: ""
service: light.turn_on
Brightness down button:
entity_id: sensor.controller_action
to: brightness_down_click
action:
data_template:
entity_id: light.living_room_light
brightness: ""
service: light.turn_on
Thank you for watching, if you have any questions, please leave them below and I'll try to answer them. And if I missed something, I would be happy to learn any new tricks.
