Automation for Yeelight is not working

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?

Check the log

added info

Check this. You’ve received an answer to this question before.

For a light you should use light.toggle not switch.toggle because… it’s a light and not a switch :wink: