Open RRhodesVFX opened 2 years ago
Additional information:
# Weather Alerts
- platform: weatheralerts
state: GA
zone: 53
county: 77
It appears that everything goes into the Alert attribute, and no other attributes are available to view/call within HA.
{{states['sensor.weatheralerts'].attributes}}
gives the following result:
{'alerts': [{'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'}], 'integration': 'weatheralerts', 'state': 'GA', 'zone': 'GAZ053,GAC077', 'unit_of_measurement': 'Alerts', 'icon': 'mdi:alert-octagram', 'friendly_name': 'Weather Alerts'}
{{state_attr('sensor.weatheralerts', 'alerts')}}
returns everything within the above [brackets]
{{state_attr('sensor.weatheralerts', 'NWSheadline')}}
returns None
EDIT: The issue here, is I'm using a Meteo Alarm Card but it can't pick up any info beyond there is a yellow alert.
This is standard behavior, one work around is to apply the following which works exceptionally well, unfortunately, I currently don't have any alerts, so I am unable to show you what it looks like.
Version of the custom_component
V0.1.5 Describe the bug A clear and concise description of what the bug is.
Attributes are not properly set. Alert comes in, but it is one large block of text and isn't parsed into usable attributes.
Log