tijsverkoyen / HomeAssistant-FusionSolar

Integrate FusionSolar into your Home Assistant.
MIT License
133 stars 25 forks source link

Attribute not in coordinator data #179

Open argovaerts opened 3 days ago

argovaerts commented 3 days ago

Describe the bug Data only loads exactly one time per day for the last few days. Tried already the following:

  1. Restart HA
  2. Disabled and enabled device
  3. Disabled and enabled hub
  4. Removed and re-added hub, first with same Kiosk URL, later with a new one

Debug information Answer the questions below before submitting a new issue.

Screenshot and logs

Logger: custom_components.fusion_solar.fusion_solar.energy_sensor
Source: custom_components/fusion_solar/fusion_solar/energy_sensor.py:67
integration: FusionSolar (documentation, issues)
First occurred: 06:25:04 (404 occurrences)
Last logged: 17:25:04

Attribute dailyEnergy not in coordinator data
Attribute monthEnergy not in coordinator data
Attribute yearEnergy not in coordinator data
Attribute cumulativeEnergy not in coordinator data
Logger: custom_components.fusion_solar.fusion_solar.kiosk.kiosk_api
Source: custom_components/fusion_solar/fusion_solar/kiosk/kiosk_api.py:46
integration: FusionSolar (documentation, issues)
First occurred: 06:25:03 (141 occurrences)
Last logged: 17:45:04

Retrieving the data failed. Raw response: {"data":"neteco.pvms.systemSetting.notExist","success":false,"failCode":0}

Screenshot from 2024-06-29 18-17-01

argovaerts commented 2 days ago

(Possible) Duplicate

tijsverkoyen commented 1 day ago

The error is: Retrieving the data failed. Raw response: {"data":"neteco.pvms.systemSetting.notExist","success":false,"failCode":0}

I would suspect that your Kiosk URL is not valid anymore. Have you checked that the Kiosk page is still working? And if so would you be able to share the url please?

argovaerts commented 1 day ago

Kiosk URL seems to be working fine, taking into account #178 . To me, these issues feel to be related.

Nabys commented 12 hours ago

I think I have the same issue, although part of it also is similar to the behaviour of 178.

I refreshed the kiosk url just in case, and removed and re-added the integration with the new url.

The values in HA do not update, but as the author of 178 says, if you go to the kiosk url page and click ok, it'll refresh in HA, as a brand new data point: eg the previous data point is gone.

The data on the kiosk seems to be correct though, it shows today's usage as normal.

I don't know how to find the logs otherwise I'd add them, sorry

tijsverkoyen commented 12 hours ago

@Nabys your issue is probably #178. Which seems/is different then @argovaerts

Nabys commented 12 hours ago

@Nabys your issue is probably #178. Which seems/is different then @argovaerts

Thanks, I wasn't sure as my kiosk does seem to update normally unlike the other people in 178.