Aqara binary switch stoped working after 0.81.6

Hi,
Maybe I’m not posting it on the right place…

I recently upgade via the docker pull homeassistant/home-assistant, and the switch from xiaomi aqara, known as binary_sensor.switch, stopped working.
It doesnt recognize double click or long press. I’m using for these automations:

  • alias:Turn on lights pressing switch
    trigger:
    platform: event
    event_type: click
    event_data:
    entity_id: binary_sensor.switch_158d0001f35b33
    click_type: single
    action:

    • service: light.turn_on
      entity_id: light.salon
    • service: light.turn_on
      entity_id: light.dormitorio
      id: 8718ddd12d1147ffae7c890014cd314c
  • alias: Dim on long press
    trigger:
    platform: event
    event_type: click
    event_data:
    entity_id: binary_sensor.switch_158d0001f35b33
    click_type: long_click_press
    action:

    • service: light.turn_on
      entity_id: light.room
      data_template:
      brightness: “{% set suggested = states.light.room.attributes.brightness|int
      \ - 61 %} {% if suggested > 25 %} {{ suggested }} {% else %} 144 {% endif
      \ %} \n”
      id: 8e06c51f478c4f4ea861d75c0123b69d

Everything is working if I get back to 0.81.6

I’ve seen other people having the same problem, not seen a solution so far unfortunately.

Hi there,

I had the same problem, you need to change the event ‘click’ to the following

motion: xiaomi_aqara.motion
click: xiaomi_aqara.click
cube_action: xiaomi_aqara.cube_action

2 Likes

I had the same issue, this fixed it! Thanks!