Fire Danger Rating

For anyone interested… I’m using the geo-location as well as this on a Lovelace card and it looks like this:

My package is here:

# Download the fire-danger icons from my github https://github.com/DavidFW1960/home-assistant/tree/master/www/icons/firedanger
# and save them under /www/icons/firedanger/ in your configuration folder.

homeassistant:
  customize:
    sensor.fire_danger_in_greater_sydney_region:
      hidden: true

geo_location:
  - platform: nsw_rural_fire_service_feed
    entity_namespace: 'nsw_fire_service_feed'
    radius: 100
    categories:
      - 'Emergency Warning'
      - 'Watch and Act'
      - 'Advice'
      - 'Not Applicable'

sensor:
  - platform: nsw_rural_fire_service_fire_danger
    district_name: Greater Sydney Region
  - platform: template
    sensors:
      fire_danger_level_today:
        friendly_name: "Danger Level Today"
        value_template: "{{ state_attr('sensor.fire_danger_in_greater_sydney_region', 'danger_level_today') | title }}"
        icon_template: mdi:fire

binary_sensor:
  - platform: template
    sensors:
      fire_ban_today:
        friendly_name: "Fire Ban Today"
        value_template: "{{ state_attr('sensor.fire_danger_in_greater_sydney_region', 'fire_ban_today') }}"
        device_class: safety

You can download the icons as per my first link. If anyone can improve on these I’m happy to update… mine are pretty crappy!

My lovelace for this card:

          - type: entities
            title: NSW Warnings & Events
            show_header_toggle: false
            entities:
              - binary_sensor.fire_ban_today
              - sensor.fire_danger_level_today
          - type: conditional
            conditions:
              - entity: sensor.fire_danger_level_today
                state: 'Low Moderate'
            card:
              type: picture-entity
              entity: sensor.fire_danger_level_today
              show_name: false
              show_state: false
              image: /local/icons/firedanger/low-moderate.png
          - type: conditional
            conditions:
              - entity: sensor.fire_danger_level_today
                state: 'High'
            card:
              type: picture-entity
              entity: sensor.fire_danger_level_today
              show_name: false
              show_state: false
              image: /local/icons/firedanger/high.png
          - type: conditional
            conditions:
              - entity: sensor.fire_danger_level_today
                state: 'Very High'
            card:
              type: picture-entity
              entity: sensor.fire_danger_level_today
              show_name: false
              show_state: false
              image: /local/icons/firedanger/very-high.png
          - type: conditional
            conditions:
              - entity: sensor.fire_danger_level_today
                state: 'Severe'
            card:
              type: picture-entity
              entity: sensor.fire_danger_level_today
              show_name: false
              show_state: false
              image: /local/icons/firedanger/severe.png
          - type: conditional
            conditions:
              - entity: sensor.fire_danger_level_today
                state: 'Extreme'
            card:
              type: picture-entity
              entity: sensor.fire_danger_level_today
              show_name: false
              show_state: false
              image: /local/icons/firedanger/extreme.png
          - type: conditional
            conditions:
              - entity: sensor.fire_danger_level_today
                state: 'Catastrophic'
            card:
              type: picture-entity
              entity: sensor.fire_danger_level_today
              show_name: false
              show_state: false
              image: /local/icons/firedanger/catastrophic.png
          - type: entities
            entities: 
              - type: custom:auto-entities
                card:
                  type: custom:fold-entity-row
                  head:
                    type: section
                    label: Current Incidents
                  open: true
                filter:
                  include:
                    - entity_id: "geo_location.nsw_fire_service_feed_*"
                show_empty: true
          - type: map
            show_header_toggle: false
            geo_location_sources:
              - nsw_rural_fire_service_feed
            entities:
              - zone.home

You’ll also need the custom auto-entities and fold entities row cards by Thomas Lovern

3 Likes