Hello, I noticed Environment_Canada weather has stopped working yesterday after performing an update yesterday. (I think it was the HA 2023.10.1 update)
Current system info:
Home Assistant 2023.10.1
Supervisor 2023.10.0
Operating System 10.5
Frontend 20231005.0 - latest
I tried removing it and re-adding it back to integration, but failed to do so.
Steps taken:
removed and re-added Environment_Canada integration (tried to)
add Province Code/Site Name (Lat and Long were auto populated.)
returns [Unexpected error]
cannot proceed further
Your help is appreciated.
Edit: Did some testing and found that it’s an issue with my area. Other areas seem to be fine. Not sure if Environment_Canada removed my area… (ON/s0000585)
Hi, I tried multiple locations for Ontario, none of them worked and it kept giving the same error message “!Unexpected error”. We are supposed to input either station ID or longitude & latitude but it does not work either or both. Issue seems something different, Environment Canada integration does not work with existing installations and new installation.
If anyone else observed something different please do share! Thank You.
I am running 2023.7.1, 2023.7.3 and 2023.10.1; three different installations. 2023.7.x both were working but now showing status sensor status as “Unavailable” whereas 2023.10.1 is a fresh installation and was unable to add Environment Canada integration.
I upgraded 2023.10.1 to 2023.10.3 and it worked. All the weather sensors are getting updates. Thanks for pointing to issue#101533, they fixed it in version 2023.10.2. Your link really helped in fixing the issue that has been going on for almost a month. Thanks again.
Hi, is there any way to access the hourly forecast information? The integration page describes an hourly sensor (Current conditions and hourly forecast, disabled by default), but I can’t find any way to enable this in the integration. However, I can see the hourly data is displayed in the weather card. Thank you.
Hi, There will be a change in early 2024 to get the forecasts. Weather.xxxx entities will no longer provide forecasts automatically, you must request them. Here’s how I do it.
Tried to extract the hourly weather forecast with your code above @ValMarDav. I could not make it work. I believe there is a difference in the data contained depending on the weather station I use (Sherbrooke).
Here is what I believe is the entity from Environment Canada that contains the best forecast information.
Hi, What I published 6 days ago, no longer works because they have again changed the response of the service in the publication of core 2023.12. Now the result contains the name of the Weather entity because you can specify several in the same query. So to read the forecasts, you must specify which weather entity you want to read from. Here is the new way to create the template.
I don’t mind polling the data manually/externally and create a sensor but just want to check if someone figured out a way to achieve this before reinventing the wheel.
I don’t think this is built in. I did notice that there was an RSS feed link provide by environment Canada on the bottom of the warning (not shown in your picture). I am not sure if the HA RSS feed reader would create a sensor for this. I will try at my next opportunity.
The integration used to pull the full alert data from the ECCC website using HTML scraping, since it’s not included in the XML data. However, HA took a hard stance against HTML scraping so I had to remove this functionality. I haven’t looked at this in a while, so if anyone has any suggestions I’m all ears!
I appreciate that scraping is no longer a part of the integration, but scraping is still an available option with HA. I am aware that EC could change their website at any time and thus break this scraping…But do you have any details on how we could scrape the website ourselves based on the Scrape integration that exists? No warranty is expected or implied by anything you can provide.
I cannot figure out how to turn on hourly forecasts again, I just had a SD card die and I am rebuilding. Hourly forecasts, were those lost when scraping was banned?
Is it possible to put the full version of Environment Canada addon into HACS with all it’s webscraping glory?
@michaeldavie, I may have mentioned this before but would it be possible to have the summary added to an attribute so that it is not truncated by the 255 character limit?