briis / weatherflow_forecast

Home Assistant integration for WeatherFlow Forecast
MIT License
65 stars 6 forks source link

"Failed setup, will retry" with "Updated failed: 'time'" #99

Open eric opened 6 months ago

eric commented 6 months ago

Describe the bug

I recently have an error for my integration saying "Failed setup, will retry" with a mouse-over showing "Updated failed: 'time'".

In the logs it only says:

2024-03-25 18:00:14.008 DEBUG (MainThread) [custom_components.weatherflow_forecast] Finished fetching weatherflow_forecast data in 0.332 seconds (success: False)
2024-03-25 18:00:54.756 DEBUG (MainThread) [custom_components.weatherflow_forecast] Finished fetching weatherflow_forecast data in 0.319 seconds (success: False)
2024-03-25 18:02:15.173 DEBUG (MainThread) [custom_components.weatherflow_forecast] Finished fetching weatherflow_forecast data in 0.353 seconds (success: False)

I have enabled debug logging and it doesn't appear to make a difference.

To Reproduce Steps to reproduce the behavior:

  1. Go to the installed WeatherFlow Forecast integration
  2. See "Needs Attention" for the installed integration
briis commented 6 months ago

I cannot reproduce this right now. It can happen, when the Weatherflow Servers are not sending data, or you Internet temporary is down.

eric commented 6 months ago

Interesting. Would it be possible to improve the error message to make it more clear?

briis commented 6 months ago

Sure. I just need to capture the exact error that comes in from the API Request, so that I can raise the issue when it happens. I have already a few of them there, but obviously not them all.

blindguynar commented 5 months ago

Just saw this for the very first time tonight. Same as OP.

Screenshot 2024-04-16 at 9 43 16 PM

Error in log file Screenshot 2024-04-16 at 9 47 47 PM

i don't see the API RC and i don't think the integration supports diagnostics so i can't provide that.

It started functioning again a short time later. I did get an email that my weather station was off-line, but it actually was not and never lost connection to wifi or internet. I think the weatherflow servers were off-line..

lazerdave commented 4 months ago

Same issue today. Started after a host system shutdown by my UPS.

lazerdave commented 4 months ago

Additional information:

It appears the API has either changed or is malfunctioning.

Getting raw data for all my stations by my token ID works at https://swd.weatherflow.com/swd/rest/stations?token=[your_access_token]

However, trying to access an individual station at https://swd.weatherflow.com/swd/rest/observations/station/[your_station_id]?token=[your_access_token] returns

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>Payara Server 6.2023.2 #badassfish - Error report</title>
    <style type="text/css">
        <!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}HR {color : #525D76;}
        -->
    </style>
</head>

<body>
    <h1>HTTP Status 404 - Not Found</h1>
    <hr />
    <p><b>type</b> Status report</p>
    <p><b>message</b>Not Found</p>
    <p><b>description</b>The requested resource is not available.</p>
    <hr />
    <h3>Payara Server 6.2023.2 #badassfish</h3>
</body>

</html>

I've opened a ticket with Tempest Support.

briis commented 4 months ago

The above URL's both work fine for me with my Token and Station ID. Are you sure you have set your Station to Public Access? That is required for this to work.