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
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