CChris
(Christoph)
August 12, 2022, 11:03am
1
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
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…
browetd
(Browet Didier)
August 12, 2022, 11:21am
2
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
CChris
(Christoph)
August 12, 2022, 11:25am
3
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
And when I change “row:” to Card, I am getting the Error: “no row configured”
The main config was taken from this example:
Create two cards:
type: entities
entities:
- input_boolean.test_boolean
- type: conditional
conditions:
- entity: input_boolean.test_boolean
state: 'on'
row:
entity: sun.sun
- type: conditional
conditions:
- entity: input_boolean.test_boolean
state: 'off'
row:
entity: sun.sun
type: entities
entities:
- entity: input_boolean.test_boolean
- entity: sun.sun
Both card are supposed to show same content.
But the 1st card’s height i…
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…
CChris
(Christoph)
August 12, 2022, 12:34pm
7
yes, thanks - that was the mistake.
Now it is working fine - I just didn’t recognized this in the example I’ve saw.
browetd
(Browet Didier)
August 12, 2022, 3:03pm
8
@Ildar_Gabdullin That’s the beauty with Home Assistant and the community, is that we are learning new stuff everyday…
2 Likes
@browetd absolutely agree! Sharing something good is always great
1 Like