Ambient Weather api stopped working

I bounced the HA server and Ambient Weather data is coming in now:

I have been having intermittent issues since it started working on Monday (ish). It self recovers but it will be out for a few hours at a time randomly. Not a helpful comment, but just noting it’s intermittent.

Same experience here.

I was tried but was unable to correctly configure a scrape sensor to pull data directly from the local ObserverIP HTML file for current observations (Live Data page). Has anyone else had any success?

It’s randomly sporadic. In testing with the RESTful API I found that there were sometimes SSL errors. I contacted Ambient Weather support about that. They appear to be on api.ambientweather.net only and not on dash2.ambientweather.net, so may or may not be related to our problem. If they are related to our problem, than it’s possible ambient_station is responding well to the errors. If, on the other hand, it’s not caused by server-side errors, than we have more work to do.

When ambient-station hangs, the last messages from ambient-station is a websocket connection attempt. I put some diagnostic messages in two places. What I’ve learned so far is that the connection completed with no errors, and something else dropped the ball after that.

The messages I added are:

“begin/end instantiating ambient weather socket” to bracket the instantiation of the Websocket object in aioambient::Client

“begin ambient websocket connect” and “ambient websocket connect completed with no errors” to bracket the call to connect() in ambient_station::__init__py method _attempt_connect()

Log output for an unsuccessful start:

2020-08-06 00:27:26 INFO (MainThread) [homeassistant.setup] Setting up ambient_station
2020-08-06 00:27:26 INFO (MainThread) [homeassistant.setup] Setup of domain ambient_station took 0.1 seconds
2020-08-06 00:27:27 INFO (MainThread) [aioambient.client] begin instantiating ambient weather socket
2020-08-06 00:27:27 INFO (MainThread) [aioambient.client] end instantiating ambient weather socket
2020-08-06 00:27:27 INFO (MainThread) [custom_components.ambient_station] start attempting ambient websocket
2020-08-06 00:27:27 INFO (MainThread) [engineio.client] Attempting WebSocket connection to wss://rt.ambientweather.net/socket.io/?api=1&applicationKey=358fd207157941af90c4f46e00abedda2ffa6e0f6c8349ca85414eaa6ac559ee&transport=websocket&EIO=3
2020-08-06 00:27:28 INFO (MainThread) [custom_components.ambient_station] done attempting ambient websocket

Then nothing after that forever (or until next server restart).

Here’s what a successful start looks like:

2020-08-06 00:29:15 INFO (MainThread) [homeassistant.setup] Setting up ambient_station
2020-08-06 00:29:15 INFO (MainThread) [homeassistant.setup] Setup of domain ambient_station took 0.2 seconds
2020-08-06 00:29:16 INFO (MainThread) [aioambient.client] start ambient weather socket
2020-08-06 00:29:16 INFO (MainThread) [aioambient.client] end ambient weather socket
2020-08-06 00:29:16 INFO (MainThread) [custom_components.ambient_station] begin ambient websocket connect
2020-08-06 00:29:16 INFO (MainThread) [engineio.client] Attempting WebSocket connection to wss://rt.ambientweather.net/socket.io/?api=1&applicationKey=358fd207157941af90c4f46e00abedda2ffa6e0f6c8349ca85414eaa6ac559ee&transport=websocket&EIO=3
2020-08-06 00:29:16 INFO (MainThread) [custom_components.ambient_station] ambient websocket connect completed with no errors
2020-08-06 00:29:16 INFO (MainThread) [aioambient.websocket] Watchdog triggered – sleeping for 900 seconds
2020-08-06 00:29:16 INFO (MainThread) [custom_components.ambient_station] Connected to websocket
2020-08-06 00:29:16 INFO (MainThread) [aioambient.websocket] Watchdog triggered – sleeping for 900 seconds
2020-08-06 00:29:16 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.ambient_station
2020-08-06 00:29:17 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.ambient_station
2020-08-06 00:29:41 INFO (MainThread) [aioambient.websocket] Watchdog triggered – sleeping for 900 seconds

Hello everyone.
I’m having two issues at the moment. First Sporadically ambient weather sensors stop reporting new data to hassio for a period of time (From 30min to 17h) and they kick back on again. Other times is goes to the websocket issue on the logs and never reports new data again at least not again for 32h until I did a host reboot and everything stating reporting back on again but keeps randomly stoping from time to time. I have plenty of automations link to ambient weather sensors and its a pain having to reboot host so many times. Please let me know if there anything I could do to help with this issue. Thank you

There is another thread dealing with this issue. The API url in the python config is referring to the old dash2 api. Some manual workarounds have solved this, but the official fix should be included in the 114 update. Read the conversation beginning with the reply below, ending up with a beta install of HA to apply the fix for now until 114 releases next week.

24hTemp

As you can see, the weather data reports now without breaks. You may need a couple of restarts. Not sure what causes the delay after the beta install, but users report differing results in the update of data after the beta install.

2 Likes

I have it from @owise1 at Ambient Weather support that dash2.ambientweather.net or rt.ambientweather.net are the correct URLs to use for now. Both point to the same server. The api.ambientweather.net server has a sporadic SSL certificate problem that is being resolved with the cloud host.

2 Likes

I am not sure if this applies to more than my self, but my “Abient problem” appears to have been caused but the Internet Printing Protocol (IPP). My home assistant installation had discovered my laser printer and ask to add the IPP integration, but that integration was flooding my network looking for the printer which is turned off much of the time. Removing the IPP integration has resulted in flawless connections to the Ambient Weather Network.

1 Like

After some tweaks by @owise1 at Ambient Weather, the dash2.ambientweather.net server has been working flawlessly for five days now. I don’t know if the api.abientweather.net server got its SSL problem fixed yet.

Integration was working for me until yesterday, it has since stopped working properly. Anyone else with the same issue?

It reports some stats, but they are all wrong. I have tried restarting HA and restarting virtual machine, but no change.

Internet outage has disrupted service from Ambient. Should be up for you now.

Are they down again?

I’m up right now.

Mine was down for about a day. Working again.

FYI all, if you didn’t see the announcement from Ambient, reboot your consoles (pull the batteries too) before October. They’ve moved to new servers and will be shutting down the old ones. Rebooting will ensure they attach to the new ones now. You can read the full announcement at their site.

2 Likes

Down again. Anyone else?

Update:
Went into Integrations and used Reload on the Component. Now working again.

Aaaaaand… down again. Reload not working this time. Guess I’ll be getting an Ecowitt and forgo the cloud API, tired of these outages.

Working again, magic. Still ordered an Ecowitt.

Mine is down again too.

Does this integration still work? I am new to Home Assistant and this was one of the big reasons I was switching from another platform. I have my own weather station and have created the APP Key and API Key but get an invalid API Key when I try to set up the integration. Any insights would be helpful.

I got the Ecowitt which sucks up the signal locally. No more reliance on the API that is constantly going down. There’s a nice easy integration available for it and it’s not too costly. I highly recommend it.