Check out this blueprint to simulate the IKEA TRADFRI Remote (5 button version) through ZHA events.
Holding down the power button will reset the light to normal. Holding down the other buttons cycles through the same function and stops on release.
Button
Action
Power
Toggle the light
Dim-Up
Increase brightness
Dim-Down
Decrease brightness
Right
Next Preset
Left
Previous Preset
Get started
Create the Helper
Create an input_select (or Dropdown) Helper with your predefined settings. You can copy/paste the yaml values from Developer Tools > Services. You’ll need to convert the values to a yaml style dictionary, like this:
Click the badge to import this Blueprint: (needs Home Assistant Core 2021.3 or higher)
Or import this Blueprint by using the Gist URL: https://github.com/niro1987/homeassistant-config/blob/main/blueprints/automation/niro1987/zha_ikea_tradfri_5button_remote_custompreset.yaml
Awesome work! This is now my go-to for the Tradfri remotes. I’m using it in 4 places around the house.
I’m new to HA so I’m pouring over your blueprint just as a learning exercise. Any thoughts as to how I’d make the “Left Button” always go to the first item in the helper list? It’d be useful to me if that always went to the “white light” and the right arrows cycled through the list. Playing with input_select.select_first, but it’s not working.