Xiaomi light automation stopped working

Hi all,

After upgrading to v88, my automations stopped working.
Below my automation code (and yes I have check my entities).

- alias: Toggle Xiaomi light
  initial_state: "on"
  trigger:
    platform: event
    event_type: click
    event_data:
      entity_id: binary_sensor.switch_331d0001224dbc
      click_type: single
  action:
    service: light.toggle
    entity_id: light.yeelight_rgb_92ce008cc295

Any ideas whats wrong with the code and suggestions how to fix it?

Hi, try change event_type: click to event_type: xiaomi_aqara.click
(If binary_sensor connected via Xiaomi Gateway)

1 Like

That did the trick. Thanks a lot!