custom-components / ble_monitor

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

[Bug]: Inkbird IBS-TH sensors unit of meausrement #1218

Open to4ko opened 11 months ago

to4ko commented 11 months ago

What happened?

Some warnings regarding my Inkbird IBS-TH sensors units of measurement

Sensor type

Inkbird IBS-TH

Relevant log output

2023-08-02 21:19:52.120 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ble_rssi_ble_fridge (<class 'custom_components.ble_monitor.sensor.MeasuringSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dBm', 'dB']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-08-02 21:19:52.123 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ble_battery_ble_fridge (<class 'custom_components.ble_monitor.sensor.BatterySensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('battery') it is using; expected one of ['%']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-08-02 21:19:52.123 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ble_humidity_ble_fridge (<class 'custom_components.ble_monitor.sensor.HumiditySensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('humidity') it is using; expected one of ['%']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Ernst79 commented 10 months ago

To Fix:

And it should be fine again.

See also #1223

to4ko commented 10 months ago

nope...it's stil lthe same in log

2023-09-22 17:34:17.051 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ble_battery_ble_fridge (<class 'custom_components.ble_monitor.sensor.BatterySensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('battery') it is using; expected one of ['%']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author. 2023-09-22 17:34:17.052 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ble_humidity_ble_fridge (<class 'custom_components.ble_monitor.sensor.HumiditySensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('humidity') it is using; expected one of ['%']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author. 2023-09-22 17:34:17.052 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ble_rssi_ble_fridge (<class 'custom_components.ble_monitor.sensor.MeasuringSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dBm', 'dB']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

to4ko commented 10 months ago

one device (with issue) image

second device (no issue) image

Ernst79 commented 10 months ago

Try to run it for a while (> 24 hours) with "Restore state on reboot" disabled, and do a restart after that.

to4ko commented 9 months ago

no changes at all - units are still not updated image

to4ko commented 9 months ago

on the second HA instance - both Inkbird sensors do not have UOMs? except temperature ones

Ernst79 commented 6 months ago

Are you still having this issue? If so, try to delete the device from the BLE monitor settings, restart HA and re-add it after that?

to4ko commented 6 months ago

no changes at all. one device is still ok image

and the second is not

image

Ernst79 commented 6 months ago

Can you then try the following. Delete the device from the BLE monitor settings (delete device), restart HA and then run the service Passive BLE Monitor: Cleanup entries. You can find this service in the services menu under developer tools. After that, you can add the device again.

to4ko commented 6 months ago

Can you then try the following. Delete the device from the BLE monitor settings (delete device), restart HA and then run the service Passive BLE Monitor: Cleanup entries. You can find this service in the services menu under developer tools. After that, you can add the device again.

in case of yaml config - remove respective lines from list of devices, reboot HA, clean entities, revert back list of devices?

Ernst79 commented 6 months ago

Yes, that should do the same I think