The 2-button wireless wall switch does not update the current state after restarting the home assistant

Capture


Hello everyone, now I use Xiaomi Aqara’s 2-way wall switch, everything is fine except for the wrong status update after starting home assistant. Specifically, if my switches are on, after restarting the home assistant the HA will show all of them off, while they are actually turned on. Is there a way to get them up to date correctly? Thanks for your support, I use google translate tool so maybe my language is not really standard.

Please post your configurations for the switches so we can know how you implemented them. They’re in essence a binary_sensor that only turns to on when pressed

Thank you!
My config:
xiaomi_aqara:
gateways:
- mac: 7c:49:eb:19:5e:4d
key: xxxxxxxxx
host: 192.168.1.243
All child device auto show by xiaomi hub getway.

I have the same problem. Please, somebody help.