So for some reason after yeelight firmware upgrade my yeelight stopped being auto discovered (there are some posts around that), which I solved this way:
yeelight:
devices:
192.168.1.80:
name: Yeelight
So now I can manually control the yeelight through HA, and by sensor Aqara button/switch is still there. Problem is, my automation stopped working because as the light is not auto discovered, the entity id is no longer recognized (does not appear on the entities on HA):
- alias: "Controlar Lampada Sala"
trigger:
# Single press bedroom round switch
- platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d0001d62b0d
click_type: single
action:
service: homeassistant.toggle
data:
entity_id: light.yeelight_UNKNOWN_7c49ebb35642
What should I put on the entity id?