So I have a yeelight RGB:
Toggle works fine, but i have an aqara button which is not working with the code below on automations.yaml:
- alias: 'ligar - devia funcionar'
trigger:
platform: event
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.switch_158d0001d62b0d
click_type: single
action:
service: switch.toggle
entity_id: light.yeelight_UNKNOWN_7c49ebb35642
I’ve restarted HA and i have no errors in the log.
Any ideas?