You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for your excellent work on the huawei_solar integration! It has been incredibly useful in my Home Assistant setup. I’ve encountered some warnings in my logs, and I wanted to bring them to your attention so the integration can remain compatible with future Home Assistant versions.
Here are the warnings:
The integration is using a deprecated constant, POWER_VOLT_AMPERE_REACTIVE. It should be replaced with UnitOfReactivePower.VOLT_AMPERE_REACTIVE.
I am also seeing multiple warnings about mismatches between state_class and device_class in various sensors.
There are also warnings about invalid units of measurement:
2024-12-09 04:21:19.489 WARNING (ImportExecutor_0) [homeassistant.const] POWER_VOLT_AMPERE_REACTIVE was used from huawei_solar, this is a deprecated constant which will be removed in HA Core 2025.9. Use UnitOfReactivePower.VOLT_AMPERE_REACTIVE instead, please report it to the author of the 'huawei_solar' custom integration
2024-12-09 04:21:24.950 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.battery_1_rated_charge_power (<class 'custom_components.huawei_solar.sensor.HuaweiSolarSensorEntity'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/wlcrs/huawei_solar/issues
2024-12-09 04:21:24.950 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.battery_1_rated_discharge_power (<class 'custom_components.huawei_solar.sensor.HuaweiSolarSensorEntity'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/wlcrs/huawei_solar/issues
2024-12-09 04:21:24.951 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.battery_1_decharge_journaliere (<class 'custom_components.huawei_solar.sensor.HuaweiSolarSensorEntity'>) is using state class 'total_increasing' which is impossible considering device class ('energy_storage') it is using; expected None or one of 'measurement'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/wlcrs/huawei_solar/issues
2024-12-09 04:21:24.951 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.battery_1_charge_totale (<class 'custom_components.huawei_solar.sensor.HuaweiSolarSensorEntity'>) is using state class 'total' which is impossible considering device class ('energy_storage') it is using; expected None or one of 'measurement'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/wlcrs/huawei_solar/issues
2024-12-09 04:21:24.952 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.battery_1_decharge_totale (<class 'custom_components.huawei_solar.sensor.HuaweiSolarSensorEntity'>) is using state class 'total' which is impossible considering device class ('energy_storage') it is using; expected None or one of 'measurement'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/wlcrs/huawei_solar/issues
2024-12-09 04:21:24.952 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.battery_1_puissance_de_charge_decharge (<class 'custom_components.huawei_solar.sensor.HuaweiSolarSensorEntity'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/wlcrs/huawei_solar/issues
2024-12-09 04:21:48.261 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.battery_1_rated_charge_power (<class 'custom_components.huawei_solar.sensor.HuaweiSolarSensorEntity'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['TWh', 'kcal', 'Mcal', 'GWh', 'MJ', 'cal', 'kJ', 'kWh', 'Gcal', 'MWh', 'J', 'Wh', 'GJ']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/wlcrs/huawei_solar/issues
2024-12-09 04:21:48.261 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.battery_1_rated_discharge_power (<class 'custom_components.huawei_solar.sensor.HuaweiSolarSensorEntity'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['TWh', 'kcal', 'Mcal', 'GWh', 'MJ', 'cal', 'kJ', 'kWh', 'Gcal', 'MWh', 'J', 'Wh', 'GJ']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/wlcrs/huawei_solar/issues
2024-12-09 04:21:48.262 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.battery_1_puissance_de_charge_decharge (<class 'custom_components.huawei_solar.sensor.HuaweiSolarSensorEntity'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['TWh', 'kcal', 'Mcal', 'GWh', 'MJ', 'cal', 'kJ', 'kWh', 'Gcal', 'MWh', 'J', 'Wh', 'GJ']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/wlcrs/huawei_solar/issues
2024-12-09 04:32:50.764 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to listdir with args ('/config/deps/lib/python3.13/site-packages',) inside the event loop by custom integration 'huawei_solar' at custom_components/huawei_solar/diagnostics.py, line 30: "pymodbus_version": version("pymodbus"), (offender: /usr/local/lib/python3.13/site-packages/setuptools/_vendor/importlib_metadata/__init__.py, line 727: return os.listdir(self.root or '.')), please create a bug report at https://github.com/wlcrs/huawei_solar/issues
Please confirm the following:
I'm running the latest release of Home Assistant.
I'm running the latest release of this integration.
I did not find an existing issue describing this problem.
I did upload the diagnostics-file that I could retrieve from the 'Devices & Services Page'
I did upload the relevant debug logs (via 'Enable Debug Logging'-feature or by manually configuring HA logging)
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days
Describe the issue
First of all, thank you for your excellent work on the huawei_solar integration! It has been incredibly useful in my Home Assistant setup. I’ve encountered some warnings in my logs, and I wanted to bring them to your attention so the integration can remain compatible with future Home Assistant versions.
Here are the warnings:
The integration is using a deprecated constant, POWER_VOLT_AMPERE_REACTIVE. It should be replaced with UnitOfReactivePower.VOLT_AMPERE_REACTIVE.
I am also seeing multiple warnings about mismatches between state_class and device_class in various sensors.
There are also warnings about invalid units of measurement:
Describe your Huawei Solar Setup
Inverter Type: SUN2000-6KTL-L1
Inverter Firmware version: V200R001C00SPC142
sDongle present: Yes
sDongle Type: sDongleA-05 ( Ethernet) )
sDongle Connectivitiy: / Ethernet /
sDongle Firmware: V100R001C00SPC133
Power meter present: single phase
Optimizers Present: Yes
Battery: LUNA2000-SO 15kWh
Battery Firmware version: V100R002C00SPC624
Huawei Solar integration version: 1.4.1
How do you connect to the inverter?
Via the SDongle, wired connection
Upload your Diagnostics File
Drag & Drop your Diagnostics
config_entry-huawei_solar-01JCNKVXZ6QH2J8VY4XSQWAYGD.json
File here.
Upload your relevant debug logs
Please confirm the following:
The text was updated successfully, but these errors were encountered: