Can't Get Conditional Entities Card to Work

Does anyone see what I am doing wrong here? It is like it doesnt allow two rows in the conditional card.

type: entities
entities:
  - entity: switch.zigbee_switch_1
  - entity: switch.nodered_allow_coffee_auto_on
  - type: conditional
    conditions:
      - entity: switch.nodered_allow_coffee_auto_on
        state: 'on'
    row:
      entity: input_datetime.coffee_time
  - entity: switch.nodered_coffee_pot_allow
  - type: conditional
    conditions:
      - entity: timer.coffee_pot
        state_not: 'idle'
    row:
      - entity: timer.coffee_pot
      - entity: script.restart_coffee_timer
        action_name: Restart
title: Coffee Pot
show_header_toggle: false
state_color: true

I think you may have answered your own question here. row accepts a map, not a list:

What exactly does map mean?

A map is just a series of key-value pairs. It is pretty much saying that it only accepts one object, not a list of them. This can be seen in the last example of that documentation:

    row:
      entity: sun.sun
      type: attribute
      attribute: azimuth
      icon: mdi:angle-acute
      name: Sun azimuth

Hmmm alright. So what would be the best way to do what I am trying to do?

I didn’t actually know that that functionality existed in the entities card until I looked it up just now, so I’m not sure what is “normal”. I’d assume you just have to copy the condition multiple times, one for each row that you want to show. That is a bit lame though.

that worked, thank you! It is kinda dumb that you cant have a list of entities in the conditional row though. I think I will put in a feature request!

1 Like