custom-components / ble_monitor

BLE monitor for passive BLE sensors
https://community.home-assistant.io/t/passive-ble-monitor-integration/
MIT License
1.85k stars 239 forks source link

[Bug]: Mijia wireless switch XMWXKG01LM button Last press attribute Display incorrect #1327

Closed w961471797 closed 4 months ago

w961471797 commented 4 months ago

What happened?

Whether pressed or not, it is displayed as single press

59d343f84f5d90eccd35133a070c5fd 65796434c5383fb2f5cbcbb1c86acb8

Sensor type

XMWXKG01LM

Relevant log output

No response

Ernst79 commented 4 months ago

This is by design, as the sensor does not send “no press”. BLE monitor will let the state return to no press after 40 seconds, by default, but you can change that in the ble monitor settings. The last press attribute will not return to no press, to allow users to make automations (e.g. if last press attribute is single press for 20 minutes, then do something).

w961471797 commented 4 months ago

Many thanks