Closed starsoccer closed 10 months ago
Can you update your mqtt-homeassistant gem to 0.1.6 (gem install mqtt-homeassistant
), restart the bridge, and try again? It will then start publishing with a device class of enum
, but I'm not sure if I also have to remove the state class of measurement
(the docs are unclear).
Can you update your mqtt-homeassistant gem to 0.1.6 (
gem install mqtt-homeassistant
), restart the bridge, and try again? It will then start publishing with a device class ofenum
, but I'm not sure if I also have to remove the state class ofmeasurement
(the docs are unclear).
It looks like that solved the issue. Just noting for others make sure you reboot after installing or atleast restart the service as I didnt at first
A bit unrelated but any plans to enable discussions on this project? Just would be useful for some questions I have that arent issues per se
Discussions are enabled, just nobody has made any yet.
While I still believe this is solved there seems to be a warning being generated on start,
2023-10-19 10:20:41.789 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.waterfurnace_heat_pump_current_heating_cooling_mode (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('enum') it is using; expected None; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2023-10-19 10:20:41.886 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.waterfurnace_heat_pump_current_heating_cooling_mode_2 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('enum') it is using; expected None; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
See below error. Not sure whats causing this exactly but it seems to be filling my logs