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

NWS Yellow Alert - High Fire Conditions not visible in alarm card #125

Closed drpeppershaker closed 1 year ago

drpeppershaker commented 1 year ago

Describe the bug

When there is a yellow alert of high fire conditions reported by weatheralerts, the Meteoalarm card only shows 'Yellow Alert' and no additional information.

The expected result would be a yellow card with the description of the alert/warning.

Using weatheralerts integration

# Weather Alerts
  - platform: weatheralerts
    state: GA
    zone: 53
    county: 77

Additional Info: {{state_attr('sensor.weatheralerts', 'alerts')}} returns the following:

[{'area': 'Forsyth; Hall; Banks; Jackson; Madison; Paulding; Cobb; North Fulton; Gwinnett; Barrow; Clarke; Oconee; Oglethorpe; Wilkes; Carroll; Douglas; South Fulton; DeKalb; Rockdale; Walton; Newton; Morgan; Greene; Taliaferro; Heard; Coweta; Fayette; Clayton; Spalding; Henry; Butts; Jasper; Putnam; Hancock; Warren; Troup; Meriwether; Pike; Upson; Lamar; Monroe; Jones; Baldwin; Washington; Glascock; Jefferson; Harris; Talbot; Taylor; Crawford; Bibb; Twiggs; Wilkinson; Johnson; Emanuel; Muscogee; Chattahoochee; Marion; Schley; Macon; Peach; Houston; Bleckley; Laurens; Treutlen; Stewart; Webster; Sumter; Dooly; Crisp; Pulaski; Wilcox; Dodge; Telfair; Wheeler; Montgomery; Toombs', 'certainty': 'Observed', 'description': 'Relative Humidities of 25 percent or less can be expected for 4\nor more hours this afternoon and early evening. Winds will be\nsouthwest at 5 to 10 MPH. With dry fuels, high fire danger\nconditions can be expected.\n\nPlease refer to your local burn permitting authorities whether\nyou may burn outdoors. If you do burn outside, use extreme\ncaution.', 'ends': None, 'event': 'Special Weather Statement', 'instruction': None, 'response': 'Execute', 'sent': '2022-10-15T11:08:00-04:00', 'severity': 'Moderate', 'title': 'Special Weather Statement issued October 15 at 11:08AM EDT', 'urgency': 'Expected', 'NWSheadline': ['HIGH FIRE DANGER CONDITIONS THIS AFTERNOON AND EARLY EVENING FOR PORTIONS OF NORTH GEORGIA AND MUCH OF CENTRAL GEORGIA DUE TO LOW RELATIVE HUMIDITIES AND DRY FUELS'], 'hailSize': 'null', 'windGust': 'null', 'waterspoutDetection': 'null', 'effective': '2022-10-15T11:08:00-04:00', 'expires': '2022-10-15T20:00:00-04:00', 'endsExpires': '2022-10-15T20:00:00-04:00', 'onset': '2022-10-15T11:08:00-04:00', 'status': 'Actual', 'messageType': 'Alert', 'category': 'Met', 'sender': 'w-nws.webmaster@noaa.gov', 'senderName': 'NWS Peachtree City GA', 'id': 'urn:oid:2.49.0.1.840.0.c842dc6a55018f5d087f462be41bd42cad0347d1.001.1', 'zoneid': 'GAZ053,GAC077'}]

Steps to reproduce

  1. Use the weather alerts custom integration with the following info:

  2. wait for a yellow high fire conditions alert

  3. see that it is not working as expected.

Screenshots

Screen Shot 2022-10-15 at 3 29 49 PM

Card version

v2.2.0

Integration type

weatheralerts

Installation type

Home Assistant Community Store (HACS)

Card Configuration

type: custom:meteoalarm-card
entity: binary_sensor.remote_ui
integration: weatheralerts
entities:
  - entity: sensor.weatheralerts
override_headline: false
hide_when_no_warning: false

Integration Configuration

# Weather Alerts
  - platform: weatheralerts
    state: GA
    zone: 53
    county: 77
MrBartusek commented 1 year ago

You can see in entity atributes that event type is Special Weather Statement and not high fire condition. That's why it doesn't have any icon