Conditional Entity Card - Unknown type encountered: entities

hi there,

can someone help me to figure out, what’s wrong here?

type: entities
title: Siemens eq.9 s700
entities:
  - type: conditional
    conditions:
      - entity: binary_sensor.kaffeevollautomat_remote_start
        state: 'on'
    row:
      type: entities
      entities:
        - entity: switch.kaffeevollautomat_power
          name: Power
          icon: mdi:coffee-maker-check-outline
  - entity: sensor.kaffeevollautomat_operation_state
    name: Operation State
  - type: conditional
    conditions:
      - entity: sensor.kaffeevollautomat_program_progress
        state_not: unavailable
    row:
      type: entities
      entities:
        - entity: sensor.kaffeevollautomat_program_progress
          name: Programmfortschritt
  - type: conditional
    conditions:
      - entity: sensor.kaffeevollautomat_remaining_program_time
        state_not: unavailable
    row:
      type: entities
      entities:
        - entity: sensor.kaffeevollautomat_duration

grafik

The bottom conditions seems to work fine - the top one unfortunately not…
When I change the state: on condition to state_not: on the row will be hidden - if I change it to state_not: off I am getting the same error…

conditional cards do not have “row” as authorized parameter but “card”…
example from the documentation:

type: conditional
conditions:
  - entity: light.bed_light
    state: "on"
  - entity: switch.decorative_lights
    state_not: "off"
card:
  type: entities
  entities:
    - device_tracker.demo_paulus
    - cover.kitchen_window
    - group.kitchen
    - lock.kitchen_door
    - light.bed_light

Hi,
The card should be an entity card - with a conditional row.

The switch “power” should only be shown when the remote_start sensor is “on”.
If the Sensor is “off” the switch should not be shown.

That conditional configuration is working as expected on two other entities in that entity card, but not with the switch…

Here’s an example where I have changed the condition from “state: on” to “state_not: on”

type: entities
title: Siemens eq.9 s700
entities:
  - type: conditional
    conditions:
      - entity: binary_sensor.kaffeevollautomat_remote_start
        state_not: 'on'
    row:
      type: entities
      entities:
        - entity: switch.kaffeevollautomat_power
          name: Power
          icon: mdi:coffee-maker-check-outline
  - entity: sensor.kaffeevollautomat_operation_state
    name: Operation State
  - type: conditional
    conditions:
      - entity: sensor.kaffeevollautomat_program_progress
        state_not: unavailable
    row:
      type: entities
      entities:
        - entity: sensor.kaffeevollautomat_program_progress
          name: Programmfortschritt
  - type: conditional
    conditions:
      - entity: sensor.kaffeevollautomat_remaining_program_time
        state_not: unavailable
    row:
      type: entities
      entities:
        - entity: sensor.kaffeevollautomat_duration

grafik

And when I change “row:” to Card, I am getting the Error: “no row configured”

The main config was taken from this example:

This is wrong.

1 Like

Probably this may be right (untested):

    row:
          entity: switch.kaffeevollautomat_power
          name: Power
          icon: mdi:coffee-maker-check-outline
1 Like

There are conditional cards (as you noted - they accept a “card” option) and conditional rows (they accept a “row” option).
Probably the person wanted conditional rows here…

yes, thanks - that was the mistake.
Now it is working fine - I just didn’t recognized this in the example I’ve saw.

@Ildar_Gabdullin That’s the beauty with Home Assistant and the community, is that we are learning new stuff everyday… :grinning:

2 Likes

@browetd absolutely agree! Sharing something good is always great

1 Like