HKO - Conditional card

mail@pastecode.io avatar
unknown
yaml
4 months ago
3.0 kB
4
Indexable
type: horizontal-stack
cards:
  - square: true
    type: grid
    cards:
      - type: conditional
        conditions:
          - entity: sensor.very_hot_weather_warning
            state: WHOT
        card:
          type: picture
          image: /local/hko_weather/vhot.gif
      - type: conditional
        conditions:
          - entity: sensor.very_cold_weather_warning
            state: WCOLD
        card:
          type: picture
          image: /local/hko_weather/cold.gif
    columns: 1
  - square: false
    type: grid
    cards:
      - type: conditional
        conditions:
          - entity: sensor.rainstorm_warning_signal
            state: WRAINA
        card:
          type: picture
          image: /local/hko_weather/raina.gif
      - type: conditional
        conditions:
          - entity: sensor.rainstorm_warning_signal
            state: WRAINR
        card:
          type: picture
          image: /local/hko_weather/rainr.gif
      - type: conditional
        conditions:
          - entity: sensor.rainstorm_warning_signal
            state: WRAINB
        card:
          type: picture
          image: /local/hko_weather/rainb.gif
    columns: 1
  - type: conditional
    conditions:
      - entity: sensor.thunderstorm_warning
        state: WTS
    card:
      type: picture
      image: /local/hko_weather/ts.gif
  - square: true
    type: grid
    cards:
      - type: conditional
        conditions:
          - entity: sensor.typhoon_signal
            state: TC3
        card:
          type: picture
          image: /local/hko_weather/tc3.gif
      - type: conditional
        conditions:
          - entity: sensor.typhoon_signal
            state: TC1
        card:
          type: picture
          image: /local/hko_weather/tc1.gif
      - type: conditional
        conditions:
          - entity: sensor.typhoon_signal
            state: TC8NE
        card:
          type: picture
          image: /local/hko_weather/tc8ne.gif
      - type: conditional
        conditions:
          - entity: sensor.typhoon_signal
            state: TC8NW
        card:
          type: picture
          image: /local/hko_weather/tc8nw.gif
      - type: conditional
        conditions:
          - entity: sensor.typhoon_signal
            state: TC8SE
        card:
          type: picture
          image: /local/hko_weather/tc8se.gif
      - type: conditional
        conditions:
          - entity: sensor.typhoon_signal
            state: TC8SW
        card:
          type: picture
          image: /local/hko_weather/tc8sw.gif
      - type: conditional
        conditions:
          - entity: sensor.typhoon_signal
            state: TC9
        card:
          type: picture
          image: /local/hko_weather/tc9.gif
      - type: conditional
        conditions:
          - entity: sensor.typhoon_signal
            state: TC10
        card:
          type: picture
          image: /local/hko_weather/tc10.gif
    columns: 1
Leave a Comment