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 hs_color
settings. You can copy/paste the hs_color
value from the Developer Tools > States.
For example, on the States tab you see hs_color: 38.222, 52.941
, then you can add (38.222, 52.941)
as an option to the helper. You can add a comment (i.e. name of the preset) like this (38.222, 52.941) # default
to help you remember what the values mean.
An example Dropdown Helper:
Import the Blueprint
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_preset.yaml