Open stohn opened 3 months ago
Pretty much a duplicate of this: https://github.com/home-assistant/core/issues/121829
I have implemented an automation to force a reload of the rest integration to get it going again.
I'm having similar issues, please see here:
I don't know if I should open a new issue here or just hang on one of your issues as it seems to me the root cause must probably is the same.
What do you guys think? @stohn , @tomlut ?
Having the same issue when calling Solax API via REST :(
The problem
I use RESTful sensor to query a (HTTP-BasicAuth protected) REST service from a device in my network and it works nice... until RESTful sensor stops working (it does not show anything in "data fetched"). Sometimes the RESTful sensor works for days, sometimes only for hours. When it stopped working all following requests will always have an empty response.
When HA RESTful sensor is in the "bad state" I verified that the REST service itself is still reachable. I used curl on HA cli and got the data without any problem.
As soon as I restart REST ENTITIES in the HA developer menu, RESTful sensor starts working again... until some time later it starts to have the same problem.
I turned on debug logging:
but there is only very limited debug information in the logs (see below).
My theory so far is that indeed the REST service might have produced an error ONCE, but for some reason the error is not cleared completely inside of RESTful sensor so all subsequent requests fail.
=> Is there anything to try to get more information for how to solve the problem or fix the bug?
Thanks in advance for looking into this and also MANY MANY thanks for this great piece of open source software.
What version of Home Assistant Core has the issue?
core-2024.7.2
What was the last working version of Home Assistant Core?
never
What type of installation are you running?
Home Assistant OS
Integration causing the issue
RESTful sensor
Link to integration documentation on our website
No response
Diagnostics information
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response