connorgallopo / leslies-pool

HomeAssistant Custom Integration for Leslies Pool water test results
MIT License
3 stars 0 forks source link

Component failed to fetch #30

Open ShakataGaNai opened 3 months ago

ShakataGaNai commented 3 months ago

Another day another issue, unfortunately this one I don't have an easy fix for. I came back to the dashboard today to find everything "Unavailable". image

Data for sensors stops at 21:48 (Pacific) image

I found this single line in the home-assistant.log:

2024-06-27 21:48:13.627 ERROR (MainThread) [custom_components.leslies_pool.sensor] Error fetching leslies_pool data: Error fetching data: Expecting value: line 9 column 1 (char 8)

From the UI this is the slightly more detailed log version, but not really any more useful:

This error originated from a custom integration.

Logger: custom_components.leslies_pool.sensor
Source: helpers/update_coordinator.py:344
integration: Leslie's Pool Water Tests (documentation, issues)
First occurred: June 27, 2024 at 9:48:13 PM (1 occurrences)
Last logged: June 27, 2024 at 9:48:13 PM

Error fetching leslies_pool data: Error fetching data: Expecting value: line 9 column 1 (char 8)

There is nothing else in my logs for +/- 3mn and those other log entries are issues with other integrations that I'm aware of. I did restart home assistant and the data came back. If it errors out again I'll let you know. My "make developers cry" level of python suggestion: When in doubt, more try/except!

ShakataGaNai commented 3 months ago

This seems to be happening every day or so.

This error originated from a custom integration.

Logger: custom_components.leslies_pool.sensor
Source: helpers/update_coordinator.py:344
integration: Leslie's Pool Water Tests (documentation, issues)
First occurred: July 1, 2024 at 3:06:05 PM (1 occurrences)
Last logged: July 1, 2024 at 3:06:05 PM

Error fetching leslies_pool data: Error fetching data: Expecting value: line 9 column 1 (char 8)

If you've got some suggestions as to how I can get more data out of this to help debug, I'd be glad to do so.

connorgallopo commented 3 months ago

Hmm i can spin up a VM and just add a ton of logging - See if i can replicate on my end but if i cant ill let you know or make some additional debugging flags

sierralx commented 2 months ago

Same here, happening every day.