DavidFW1960 / bom-weather-card

Custom Animated Weather Card for any weather provider
Apache License 2.0
162 stars 37 forks source link

UV_summary not displaying #80

Closed LastElf closed 2 years ago

LastElf commented 2 years ago

Relevant code and screenshot below, can't see anything wrong with my yaml unless there's a weird order of operations thing going on, but all the others are working:

Home Assistant 2022.3.5 in Docker Card version: 0.94

Card

entity_uv_summary: sensor.bom_uv_formatted
...
slot_r1: pop
slot_r2: humidity
slot_r3: uv_summary
slot_r4: fire_summary
slot_r5: remove

image

Sensor template

    - name: bom_uv_formatted
      state: >
        {{ states('sensor.bundamba_uv_category_0') | replace('veryhigh', 'Very High') | title }}

image

DavidFW1960 commented 2 years ago

The devil is always in the detail:

            entity_uv_alert: sensor.bom_uv_alert
            entity_uv_alert_summary: sensor.uv_cat_formatted

You probably meant this:

entity_uv_alert: sensor.bom_uv_formatted
LastElf commented 2 years ago

For the record: uv_alert_summary was what I needed in both the slot and the entity (For anyone else that finds this thread)

@DavidFW1960 I was basing this on the Slots and Flags section of your code readme. The Configuration example uses the new uv_alert values but the references below are still showing an old variable name and need to be updated. That's where my confusion came from. Thanks for the quick response!

DavidFW1960 commented 2 years ago

it actually uses a summary variable for the summary text and the alert variable for the slot. so it uses both. if you don't provide a variable as it's optional it will just be blank.