MrBartusek / MeteoalarmCard

Meteoalarm, Météo-France and DWD severe weather warnings card for Home Assistant Lovelace UI ⛈️
MIT License
134 stars 49 forks source link

Error: Unknown Env canada alert type: Special Air Quality Statement (isFrench=false) #169

Closed cholywell closed 1 year ago

cholywell commented 1 year ago

Describe the bug

Air Quality alert causing error displaying card with Environment Canada integration.

Steps to reproduce

Link to weather alert: https://www.weather.gc.ca/warnings/report_e.html?sk9=

Don't know if this helps or not but the ATOM alert feed from the website:

<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-ca">
<script/>
<!-- 
This is a data file that is meant to be read by RSS readers or aggregators.
See https://www.canada.ca/en/environment-climate-change/services/weather-general-tools-resources/ways-to-access-forecasts.html to learn more about our RSS service.
 -->
<title>City of Regina - Weather Alert - Environment Canada</title>
<link rel="related" href="https://weather.gc.ca/warnings/report_e.html?sk9" type="text/html"/>
<link rel="self" href="https://weather.gc.ca/rss/battleboard/sk9_e.xml" type="application/atom+xml"/>
<link rel="alternate" href="https://meteo.gc.ca/rss/battleboard/sk9_f.xml" type="application/atom+xml"/>
<author>
<name>Environment Canada</name>
<uri>https://weather.gc.ca</uri>
</author>
<updated>2023-05-17T03:39:57Z</updated>
<id>tag:weather.gc.ca,2013-04-16:20230517033957</id>
<logo>https://weather.gc.ca/template/gcweb/v5.0.1/assets/wmms-alt.png</logo>
<icon>https://weather.gc.ca/template/gcweb/v5.0.1/assets/favicon.ico</icon>
<rights>Copyright 2023, Environment Canada</rights>
<entry>
<title>SPECIAL AIR QUALITY STATEMENT, City of Regina</title>
<link type="text/html" href="https://weather.gc.ca/warnings/report_e.html?sk9"/>
<updated>2023-05-17T03:27:49Z</updated>
<published>2023-05-17T03:27:49Z</published>
<category term="Alerts"/>
<summary type="html">Issued: 9:27 p.m. CST Tuesday 16 May 2023</summary>
<id>tag:weather.gc.ca,2013-04-16:sk9_w1:20230517032749</id>
</entry>
</feed>

Screenshots

error

Card version

v2.4.3

Integration type

Meteoalarm

Installation type

Home Assistant Community Store (HACS)

Card Configuration

type: custom:meteoalarm-card
entities:
  - entity: sensor.regina_warnings
  - entity: sensor.regina_watches
  - entity: sensor.regina_statements
integration: env_canada

Integration Configuration

Integration setup in gui not yaml.

MrBartusek commented 1 year ago

Is it a new alert that they've introduced? i've never seen this one

cholywell commented 1 year ago

It's common to get air quality alerts in the summer during "wild fire season". It's in effect for much of western Canada right now. Maybe they are just categorized different now?

https://weather.gc.ca/index_e.html?layers=alert,