Open dombrowa opened 4 weeks ago
Attempted
Logger: custom_components.sunpower
Source: helpers/update_coordinator.py:354
integration: SunPower ([documentation](https://github.com/krbaker/hass-sunpower), [issues](https://github.com/krbaker/hass-sunpower/issues))
First occurred: 11:45:56 PM (211761 occurrences)
Last logged: 11:50:50 PM
Unexpected error fetching SunPower PVS data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 271, in _async_update_data return await self.update_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/sunpower/init.py", line 348, in async_update_data return await hass.async_add_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/sunpower/init.py", line 287, in sunpower_fetch data = convert_sunpower_data(sunpower_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/sunpower/init.py", line 105, in convert_sunpower_data create_vmeter(data) File "/config/custom_components/sunpower/init.py", line 74, in create_vmeter freq_avg = sum(freq) / len(freq)
ZeroDivisionError: division by zero
```
suggests there is something wrong with the connection.
7. Restarting the Rasp Pi despite having used all commands
```
Start
Stop
Get_Comm
DeviceList
CheckFW
DeviceDetails
GridProfile
GridProfileRefresh
GetCellPurchased
GetDiscoveryProgress
SetCellPurchased
```
successfully
Maybe integration cannot be re-added at night because some components return error?
I readded the integration after sunrise in a new VM -> success I reloaded the integration on the original HASS -> success
Closing issue.
Core 2024.10.4 Supervisor 2024.10.3 Operating System 13.2 Frontend 20241002.4
Two VMS both failed to load integration
Errors
Other
Warning is likely not relevant
curl command to 192.168.0.131 is working fine (e.g. curl http://192.168.0.131/cgi-bin/dl_cgi?Command=GridProfileRefresh)
In a 2nd HASS VM I removed the integration and started to add it again. It finished after >5 min with success but did not find any device