I currently have a bunch of LIFX bulbs and Wemo dimmers. The bulbs have continuous power, and the dimmers simply act as dummy controls.
I have automations set up to sync the on and off state of the dimmers to the switches. The problem I’m running into is when I have to adjust brightness. I have a YAML automation to detect a state change on a dimmer, and apply the brightness level to all the lights in the automation. It works as expected when I adjust the brightness via home kit. But when I physically adjust the brightness, the automation does not trigger. Is this supported in home assistant? If not, is there some additional resource I can leverage. I’ve attempted node-red and home bridge but found it lacking. It would detect the change, but not fire a an hb event for them.
I’m using the following automation :
alias: Kitchen Main Brightness
description: ''
trigger:
- platform: state
entity_id: light.main_switch
condition: []
action:
- entity_id: light.main_switch
condition: state
state: 'on'
- service: light.turn_on
entity_id:
- light.stove
- light.window_right
- light.window_left
- light.fridge
data:
brightness: '{{ trigger.to_state.attributes.brightness }}'
transition: 1
mode: queued
max: 10
Is there anything else I’m doing wrong here? Is there some sort of interval in which HA polls devices for state changes?