Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible mismatched units #120

Open
Paraphraser opened this issue Aug 31, 2024 · 0 comments
Open

Possible mismatched units #120

Paraphraser opened this issue Aug 31, 2024 · 0 comments

Comments

@Paraphraser
Copy link

While writing a response to issue 117, I stumbled across the following:

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:731
integration: Sensor (documentation, issues)
First occurred: August 30, 2024 at 11:35:55 PM (10 occurrences)
Last logged: August 30, 2024 at 11:35:56 PM

Entity sensor.gosungrow_virtual_9999999_p83013 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'Wh/㎡' which is not a valid unit for the device class ('irradiance') it is using; expected one of ['BTU/(h⋅ft²)', 'W/m²']; 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
Entity sensor.gosungrow_virtual_9999999_p83202 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'kWp' which is not a valid unit for the device class ('power') it is using; expected one of ['W', 'kW']; 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
Entity sensor.gosungrow_virtual_9999999_p83012 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W/㎡' which is not a valid unit for the device class ('irradiance') it is using; expected one of ['BTU/(h⋅ft²)', 'W/m²']; 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
Entity sensor.gosungrow_getpsdetail_9999999_p83012 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W/㎡' which is not a valid unit for the device class ('irradiance') it is using; expected one of ['BTU/(h⋅ft²)', 'W/m²']; 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
Entity sensor.gosungrow_getpsdetail_9999999_p83013 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'Wh/㎡' which is not a valid unit for the device class ('irradiance') it is using; expected one of ['BTU/(h⋅ft²)', 'W/m²']; 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

I don't recall ever before visiting:

Settings » System » Logs

so I have no idea whether these apparent unit mismatches are the result of recent changes to Home Assistant or have always been there. I also don't know whether these messages are attributable to GoSungrow using "incorrect units", or HA having "incorrect expectations" as to what the correct units should be. It just seems to me the existence of these mismatches should be documented so they can be addressed if/when time allows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant