Xiaomi switch not working

I’ve received some Xiaomi goodies (body sensor, door/window sensor, and a switch (button)).

I’ve added the sensors via the Android Mi Home app. That went fine. They all work great in the app. However, the button/switch does not work in HASS! It is shown, but no single click is being registered. When I open the Android app I do see a log with button presses.

What’s going on here?

Also, when I click alot on the switch a Chinese lady starts to say something, lol.

Edit: woops works!

Did you find a solution or did it just work after a few hours? Running into the same bug. Single and double clicks are not recognized by Home Assistant, but in the App log.

Thanks

Are you using the buttons state to grab the clicks? (Platform: State) That wont work, you need to use the click platform!

 platform: event
event_type: click
event_data:
  entity_id: binary_sensor.switch_158d000xxxxxc2
  click_type: long_click_press

Yes I was using the state instead of the click platform. I read the docs, but didn’t saw this detail.

Thank you for the quick answer.