Has anyone been able to get the old IKEA Tradfri rotating dimmer to work in Homeassistant? There’s a picture of it below, it rotates to adjust a light’s brightness and has no buttons on it. I believe it’s discontinued now.
I’ve written partial automation that triggers when the remote is rotated, however, there isn’t a clear pattern to how the Zigbee remote creates events for on and off / decrease and increase. So far I’ve only been able to get the automation to turn on a light and increase brightness, but not the other way round.
- id: f301e6997b3e4fc5a37b31b8a543aec6
alias: "[ROOM]IKEA Tradfri dimmer discontinued"
description: "Controls light via IKEA tradfri dimmer"
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: "77fce6a3af931b34a579b72702266004"
action:
- variables:
command: '{{ trigger.event.data.command }}'
cluster_id: '{{ trigger.event.data.cluster_id }}'
endpoint_id: '{{ trigger.event.data.endpoint_id }}'
args: '{{ trigger.event.data.args }}'
- choose:
- conditions:
- '{{ command == ''move_to_level_with_on_off'' }}'
- '{{ cluster_id == 8 }}'
- '{{ endpoint_id == 1 }}'
- '{{ args == [255, 1] }}'
sequence:
- repeat:
count: 10
sequence:
- service: light.turn_on
target:
entity_id: light.living_room_desk_lamp
data:
brightness_step_pct: 10
transition: 1
- delay: 1
- conditions:
- '{{ command == ''move_to_level_with_on_off'' }}'
- '{{ cluster_id == 8 }}'
- '{{ endpoint_id == 1 }}'
- '{{ args == [0, 1] }}'
sequence:
- repeat:
count: 10
sequence:
- service: light.turn_on
target:
entity_id: light.living_room_desk_lamp
data:
brightness_step_pct: -10
transition: 1
- delay: 1