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.
|Power||Toggle the light|
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:
Click the badge to import this Blueprint: (needs Home Assistant Core 2021.3 or higher)
Or import this Blueprint by using the Gist URL: