albertogeniola / meross-homeassistant

Custom component that leverages the Meross IoT library to integrate with Homeassistant
MIT License
729 stars 83 forks source link

mss620 device: unit of measurement for signal strength is '%', should be 'dB / dBm' #427

Closed Ham60elu closed 1 year ago

Ham60elu commented 1 year ago

my 3 sensors throw a warning in home assistant log regarding the unit of measurement for the signal strength.

the devices are mss620, version 3.0.0 from Meross Firmware: 3.1.7

Here the info from the log:

Logger: homeassistant.components.sensor Source: components/sensor/init.py:674 Integration: Sensor (documentation, issues) First occurred: 07:02:56 (3 occurrences) Last logged: 07:03:48

Entity sensor.smart_switch_2011306959360790835448e1e93d9b76_signal_strength (<class 'custom_components.meross_lan.sensor.MLSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dB', 'dBm']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author. Entity sensor.smart_switch_21012254639157290d4148e1e9482468_signal_strength (<class 'custom_components.meross_lan.sensor.MLSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dB', 'dBm']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author. Entity sensor.smart_switch_20112402842683290d2048e1e93d3278_signal_strength (<class 'custom_components.meross_lan.sensor.MLSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dB', 'dBm']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Ham60elu commented 1 year ago

fixed. thank you :-) https://github.com/krahabb/meross_lan/issues/239