Closed W7RZL closed 1 year ago
Hey there @bachya, mind taking a look at this issue as it has been labeled with an integration (ambient_station
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
ambient_station documentation ambient_station source (message by IssueLinks)
I'm not seeing this—I just upgraded to 2023.3.5 and my Ambient PWS integration loaded fine. Here's a screenshot from a moment ago:
Can you confirm that your weather station console is connected to your network (and transmitting data)?
Thanks for taking a look... my weather station is online and is updating regularly: https://ambientweather.net/dashboard/93bfe873a1e4e396a3210b15c7eafdcb
Anything else I can try to troubleshoot?
The next step would be to enable debug-level logging for both the Ambient integration and the underlying library:
logger:
default: info
logs:
homeassistant.components.ambient_station: debug
aioambient: debug
Then, restart HASS. If the issue occurs again, paste the logs back here and I can investigate further.
Uh, hmmm - now it is working. I've been rebooting, restarting, etc. since the problem started and nothing changed. This morning, after restarting, it works. How very strange...
2023-03-18 09:21:13.376 INFO (MainThread) [aioambient] Attempting WebSocket connection to wss://rt2.ambientweather.net/socket.io/?api=1&applicationKey=...&transport=websocket&EIO=32
2023-03-18 09:21:14.994 INFO (MainThread) [aioambient] WebSocket connection accepted with {'sid': '57l7Y1-x0C9G81JLBCvD', 'upgrades': [], 'pingInterval': 25000, 'pingTimeout': 20000}
2023-03-18 09:21:14.994 INFO (MainThread) [aioambient] Engine.IO connection established
2023-03-18 09:21:15.035 INFO (MainThread) [aioambient] Sending packet PING data None
2023-03-18 09:21:15.035 INFO (MainThread) [aioambient] Received packet MESSAGE data 0
2023-03-18 09:21:15.058 INFO (MainThread) [aioambient] Namespace / is connected
2023-03-18 09:21:15.058 INFO (MainThread) [aioambient] Emitting event "subscribe" [/]
2023-03-18 09:21:15.058 INFO (MainThread) [aioambient] Sending packet MESSAGE data 2["subscribe",{"apiKeys":["..."]}]
2023-03-18 09:21:15.058 INFO (MainThread) [aioambient] Watchdog triggered – sleeping for 900 seconds
2023-03-18 09:21:15.125 INFO (MainThread) [aioambient] Received packet PONG data None
2023-03-18 09:21:15.125 INFO (MainThread) [aioambient] Received packet MESSAGE data 2["subscribed",{"devices":[ ... good data ...],"method":"subscribe"}]
2023-03-18 09:21:15.148 INFO (MainThread) [aioambient] Received event "subscribed" [/]
I removed the debug logging, restarted and all is still good. Thanks for your attention!
Strange! Perhaps some flakiness in their cloud. Glad it's resolved. 👍🏻
The problem
After updating from 2023.2.4 to 2023.3.5, the Ambient Weather integration is failing to load. From the traceback, it looks like a problem establishing a websocket connection.
What version of Home Assistant Core has the issue?
core-2023.3.5
What was the last working version of Home Assistant Core?
core-2023.2.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Ambient Weather
Link to integration documentation on our website
https://www.home-assistant.io/integrations/ambient_station/
Diagnostics information
Stack trace below - I didn't want to upload logs that contain my API keys.
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response