Bluetooth-Devices / bthome-ble

Parser for BTHome BLE devices
https://bthome.io/
MIT License
67 stars 12 forks source link

home assistant does not show two voltage (0x0C and 0x4A) in one package #46

Closed slacky1965 closed 1 year ago

slacky1965 commented 1 year ago

Describe the bug home assistant does not show two voltage (0x0C and 0x4A) in one package

To Reproduce Steps to reproduce the behavior: 0x0201061216D2FC4000010B0000004A0D0901330CE90C1909456C6563747269636974795F6D657465725F384638324630

0x0201061216D2FC40 - head 0001 - pkt-id and pid 0B000000 - power id and value (current value 0) 4A0D09 - 4A - voltage id 0.1 (231.7V) 0133 - battery level id (51%) 0CE90C - voltage id 0.001 (3.305V)

Additional context https://www.slacky.ru/images/ha_voltage.jpg

Ernst79 commented 1 year ago

Thanks for reporting. Created a fix in #47