Help with Conditional Picture Card on State Value

I do this a bit differently for a garage door card using picture glance. I’m assuming the states of your sensor.watertank are “1, 2, 3, 4, etc.”?

If so, maybe give this a try so you don’t have to create any input booleans or input selects. You wouldn’t have to create a group’d sensor like I did below, just sharing for clarity.

Your state image below would be your states from the watertank sensor and the entity is the sensor.watertank, I hope this makes sense!

Lovelace:

state_image:
  both closed: /local/both_closed.jpg
  zach open: /local/zach_open.jpg
  bri open: /local/bri_open.jpg
  both open: /local/both_open.jpg
entities:
  - cover.garage
  - cover.zach_s_garage
type: picture-glance
entity: sensor.cover_group

Sensor (not needed in your case):

- platform: template
  sensors:
    cover_group:
      value_template: >-
        {% if is_state('cover.garage', 'open') and is_state('cover.zach_s_garage', 'open') %}
          both open
        {% elif is_state('cover.zach_s_garage', 'open') %}
          zach open
        {% elif is_state('cover.garage', 'open') %}
          bri open 
        {% else %}
          both closed
        {% endif %}
1 Like