Ernst79 / bleparser

Parser for passive BLE advertisements
MIT License
29 stars 15 forks source link

Xiaomi button output #1

Closed Ernst79 closed 3 years ago

Ernst79 commented 3 years ago

Payloads with 0X1001 in the Xiaomi parser are used for several types of devices, like buttons, dimmers, switches, etc. The parser now doesn't know the actual device type, so the output it gives is a dictionary with all possible outputs for all devices that use this payload. I propose to change this, such that it only outputs the "measurements" that are valid for the specific device.

Using the device type also allows the kettle state to be added to the switch sensor