Awtrix - Wetter Overlay

Hi Leute,

Ich hab mir endlich mal eine HA Automation angelegt, die je nach Wetterlage das entsprechende Overlay triggern. Falls jemand ne Idee hat das noch eleganter zu lösen, gerne schreiben. Ansonsten ist es vielleicht für den ein oder anderen interessant, der die Pixeluhr besitzt.

alias: Awtrix - Overlay Wetter
description: ""
triggers:
  - entity_id:
      - weather.home
    trigger: state
conditions: []
actions:
  - alias: Overlay "clear"
    if:
      - condition: state
        entity_id: weather.home
        state:
          - clear-night
          - cloudy
          - fog
          - exceptional
          - partlycloudy
          - sunny
          - windy-variant
          - windy
    then:
      - data:
          payload: |-
            {
            "OVERLAY": "clear"
            }
          topic: awtrix/settings
        action: mqtt.publish
        metadata: {}
  - alias: If "rain"
    if:
      - condition: state
        entity_id: weather.home
        state:
          - rainy
    then:
      - data:
          payload: |-
            {
            "OVERLAY": "rain"
            }
          topic: awtrix/settings
        action: mqtt.publish
        metadata: {}
  - alias: If "storm"
    if:
      - condition: state
        entity_id: weather.home
        state:
          - pouring
          - lightning-rainy
    then:
      - data:
          payload: |-
            {
            "OVERLAY": "storm"
            }
          topic: awtrix/settings
        action: mqtt.publish
        metadata: {}
  - alias: If "drizzle"
    if:
      - condition: state
        entity_id: weather.home
        state:
          - snowy-rainy
    then:
      - data:
          payload: |-
            {
            "OVERLAY": "drizzle"
            }
          topic: awtrix/settings
        action: mqtt.publish
        metadata: {}
    enabled: true
  - alias: If "snow"
    if:
      - condition: state
        entity_id: weather.home
        state:
          - snowy
    then:
      - data:
          payload: |-
            {
            "OVERLAY": "snow"
            }
          topic: awtrix/settings
        action: mqtt.publish
        metadata: {}
  - alias: If "thunder"
    if:
      - condition: state
        entity_id: weather.home
        state:
          - lightning
    then:
      - data:
          payload: |-
            {
            "OVERLAY": "thunder"
            }
          topic: awtrix/settings
        action: mqtt.publish
        metadata: {}
  - alias: If "thunder"
    if:
      - condition: state
        entity_id: weather.home
        state:
          - hail
    then:
      - data:
          payload: |-
            {
            "OVERLAY": "frost"
            }
          topic: awtrix/settings
        action: mqtt.publish
        metadata: {}
mode: single

Ich würde vielleicht den Trigger mal testen

trigger: template
value_template: "{{ states.weather.home.last_changed }}"