Closed jeremiesigrist closed 6 months ago
partially found the problem, the values for price of the exported and applicable tax must be >0
Yes and Power production and power consumption should be positive values. Else the Solar Optimizer cannot estimate properly
I close this issue, please reopen if you think, there is finally a real issue.
Version of the custom_component
last version
Configuration
Describe the bug
When my solar panels generate energy and the household consumption is in the negative range, the internal entity values are not updated correctly, the values of best_objective and total_power entities are unknown. However, the values of power_production and power_production_brut entities seem to be accurate and reflect the actual production. I also have some warning at HA startup on some entities (external and internal to the integration). At the end, the switch and power entity is not triggered.
Warning at HA startup
Logger: homeassistant.components.sensor Source: components/sensor/init.py:528 Integration: Sensor (documentation, issues) First occurred: 10:43:07 (3 occurrences) Last logged: 10:43:07
Entity sensor.total_power (<class 'custom_components.solar_optimizer.sensor.SolarOptimizerSensorEntity'>) is using state class 'total' which is impossible considering device class ('power') 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/jmcollin78/solar_optimizer/issues Entity sensor.power_production (<class 'custom_components.solar_optimizer.sensor.SolarOptimizerSensorEntity'>) is using state class 'total' which is impossible considering device class ('power') 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/jmcollin78/solar_optimizer/issues Entity sensor.power_production_brut (<class 'custom_components.solar_optimizer.sensor.SolarOptimizerSensorEntity'>) is using state class 'total' which is impossible considering device class ('power') 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/jmcollin78/solar_optimizer/issues