Bluetooth-Devices / bthome-ble

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

How to correctly transmit 220 volts? #39

Closed slacky1965 closed 1 year ago

slacky1965 commented 1 year ago

Hello.

'voltage' has a size of 2 bytes. This is 0xffff or 65535. Factor - 0.001. So only 65V.

Ernst79 commented 1 year ago

You can't. I can add another object id with 2 bytes, factor 0.1, so you can go up to 6553.5 V. Is that OK for you?

slacky1965 commented 1 year ago

Yes. Thanks.

Ernst79 commented 1 year ago

Added in 2.5.0. PR for HA is submitted https://github.com/home-assistant/core/pull/85670

slacky1965 commented 1 year ago

Hello.

voltage 0x0c working voltage 0x4a does not work

Ernst79 commented 1 year ago

Where does it not work? In Home Assistant? It is added two weeks ago, so it should become available in the February release (HA has a monthly release schedule.

slacky1965 commented 1 year ago

if there is 0x0c sensor in the package, then HA sees it. if there is 0x4a sensor in the package, then HA does not see it

Ernst79 commented 1 year ago

Yes, I understand, but what version of HA do you have?

slacky1965 commented 1 year ago

Home Assistant 2023.1.7 Supervisor 2022.12.1 Operating System 9.4 Frontend 20230110.0 - latest

Ernst79 commented 1 year ago

As I mentioned, HA is released only once a month. So the changes I made two weeks ago in HA will be available in February, 2023.2. So, you have to wait one more week.

slacky1965 commented 1 year ago

Ok. Thank you!