huawei_solar icon indicating copy to clipboard operation
huawei_solar copied to clipboard

[Bug]: Wrong state class in battery_1 and battery_2 sensors

Open heinemannj opened this issue 7 months ago • 0 comments

Describe the issue

Logger: homeassistant.components.sensor Source: components/sensor/init.py:570 integration: Sensor (documentation, issues) First occurred: 07:31:21 (10 occurrences) Last logged: 07:31:21

Entity sensor.battery_1_charge_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', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/wlcrs/huawei_solar/issues

Entity sensor.battery_2_day_discharge (<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

Entity sensor.battery_2_total_charge (<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

Entity sensor.battery_2_total_discharge (<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

Entity sensor.battery_2_charge_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', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/wlcrs/huawei_solar/issues

Describe your Huawei Solar Setup

Inverter Type: Inverter Firmware version: sDongle present: Yes sDongle Type: sDongleA-05 (WiFi / Ethernet) sDongle Connectivitiy: WiFi / Ethernet sDongle Firmware: latest Power meter present: three phase Optimizers Present: No Battery: 1x LUNA2000-SO 10kWh and 1x LUNA2000-SO 5kWh Battery Firmware version: latest Huawei Solar integration version: latest

How do you connect to the inverter?

Via the SDongle, wireless connection

Upload your Diagnostics File

Drag & Drop your Diagnostics File here.

Upload your relevant debug logs

see log details above

Please confirm the following:

  • [X] I'm running the latest release of Home Assistant.
  • [X] I'm running the latest release of this integration.
  • [X] I did not find an existing issue describing this problem.
  • [X] I did upload the diagnostics-file that I could retrieve from the 'Devices & Services Page'
  • [X] I did upload the relevant debug logs (via 'Enable Debug Logging'-feature or by manually configuring HA logging)

heinemannj avatar Jul 03 '24 05:07 heinemannj