Hi there!
With some research in this Forum I made it, that my Tradfri Remote controls two Philips Hue Lights, which are linked to my Hue Base. It’s possible to use the main Button as toggle and the two dim buttons for dimming. My used automation code looks like:
- id: Wolken toggle tradfri
alias: Wolken toggle tradfri
trigger:
platform: event
event_type: deconz_event
event_data:
id: tradfri_wolken
event: 1002
action:
service: light.toggle
entity_id:
- light.hue_color_candle_2
- light.hue_color_candle_1
- id: Tradfri Dimmer Wolken
alias: Tradfri Dimmer Wolken
trigger:
- platform: event
event_type: deconz_event
event_data:
id: tradfri_wolken
action:
- service: light.turn_on
entity_id:
- light.hue_color_candle_1
- light.hue_color_candle_2
data_template:
brightness_step_pct: >
{% if trigger.event.data.event == 2002 %}
+10
{% elif trigger.event.data.event == 3002 %}
-10
{% endif %}
and this works like a charm.
But how can I use the two “Hue-Buttons” to cycle through colors? Any idea?
I’m running HASS on a RaspberryPi 4.