Environment Canada integration - 2021.11 onwards

Thanks for all the replies; I’ve updated the initial post with installation instructions that should cover the issues encountered.

Thanks for your work on this!
It’s terribly smokey here today and I’d love to see the AQHI sensor re-added. How quickly we start to rely on some of these simple things to control our homes! Had to manually adjust my air-exchanger… :blush:

I suggest creating a bug. Make sure that it is tagged with the Environment Canada integration. No guarantees but I’ll see if we can get it into a patch release. If not I will try to get into next monthly release. @michaeldavie and I will be notified when you create the bug report.

** Pull requests are R E A L L Y slow at the moment. No idea why. Patches are usually faster, so fingers crossed.

In the meantime I could probably whip up a custom component for just the AQHI sensor.

Thanks for the great work guys. I was getting 2 or 3 auto discovers, as I still had the manual config file going. Went through the update process at the beginning of this thread and rebooted, good to go!

Though I still have an air quality health index sensor, i’m not sure where this is coming from or if its just a place holder in the new version for when it eventually works…

1 Like

Hi, thanks for your work on this integration! Since the big update my radar is broken… I’ve followed @drewHA doc here: Support for Environment Canada platforms - #301 by drewHA

But I always have two new discovered entities, my guess is both camera snow and rain… So this has stopped working… Is there anyway to make this work again or what would be the best way to do it now ?

Thanks, have a great day!

I’ll keep this response simple for now since there is some investigation/discussion on radar support with Environment Canada. The integration is querying their “database” too often. I would suspect calls are being rate limited. The path forward is being looked at and I don’t know when, if ever, this will be stable. As we learn more we can update this thread.

So given that there is only one camera now, and not a snow / rain camera, i had to modify my approach. That is to say abandon it for now - so my conditional card now points to the same entity. But as was just pointed out, this may be resulting in 2 calls, so I would suggest perhaps just using one normal picture card instead for the time being.

I just switched over last night and its showing me the snow radar, which I’m assuming is due to it being November, even thought we have rain in the forecast. Looking forward to see where this goes in the long term, its super cool to have on the dashboards!

Did you remove the camera section from your configuration.yaml? After I did that and restarted I only had one camera…

1 Like

There’s a pull request that adds a select entity to be able to select rain or snow. Been waiting for a few weeks for that PR to be approved.

1 Like

I received some more information from Environment Canada and it seems unlikely that HA is the cause of the surge in traffic. However, it is certain that the same backend library was involved as the requests. I let them know how the integration interacts with their API, so hopefully any rate limiting they implement will be in excess of that. I’ll keep you posted.

1 Like

No I didn’t, but I will tomorow! To be honest I wasn’t sure how to handle the problem, thanks for the heads up

I’m not sure what Environment Canada has done on their side, but when I restarted my server just now I couldn’t get it to load until I had disabled the radar camera. Discussions are still ongoing.

That sounds odd that the integration won’t start when radar is not connecting. I will take a look in the next day or so. In the mean time sounds like the path forward is going to be at a minimum disabling radar until this gets worked out. It could mean removing radar altogether :frowning:

Can’t say for sure if it’s radar causing the issue however I’ve noticed Environment Canada takes a long time to load (30 sec to a couple of minutes) when HA is restarted

Question: today in the Ottawa area we have a Specisl Weather Statement in effect, but the statement text is not available.

Is it supposed to be?

I restarted today and the radar camera is back up and running. No news from Environment Canada today.

That’s longer than I would expect, but it does typically take about 30 seconds to build the radar image. The delay is on the Environment Canada end, as the data is fetched dynamically from their GIS server.

I would like it to be, but I don’t currently have a way to get that data that doesn’t involve web scraping, which HA does not allow.

Hello, thanks for all the work and guides to implement this new integration.
So I removed all the old entries in several files and Config.
I then rebooted HA then added the integration again. I see 30 entities, but … the camera has a white picture. It must be snowing the whole day :wink: But I would like to see the satelite/camera image as well.

I use the ON/s0000549 camera. You have any idea/direction where I can find the cause of this all. Thank you and keep up the good work!

Ha! This happened to me too during testing. I used the same joke!

It seems to be something with the install. What platform are you running on? It only happened to me in my development environment which is a Mac.

The camera requires lat/lon coordinates, while the station ID can be used for the weather and sensor. I’m not sure what the camera is using when a station ID is specified, but that’s likely the issue.

@fellow Canadians, any idea on how to implement a “snow shoveling needed in the driveway” notification triggered using data from this integration? i.e. if it snowed more than say 5 cm during the last 12 or 24h, notify in the evening that the morning after shoveling is going to be needed. Is there a practical way to do something like this