snel6424
(Colton S.)
November 19, 2021, 4:34pm
1
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
r-j-taylor
(R. J. Taylor)
November 19, 2021, 5:06pm
2
I think you may have answered your own question here. row
accepts a map
, not a list
:
snel6424
(Colton S.)
November 19, 2021, 5:07pm
3
What exactly does map mean?
r-j-taylor
(R. J. Taylor)
November 19, 2021, 5:22pm
4
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
snel6424
(Colton S.)
November 19, 2021, 5:23pm
5
Hmmm alright. So what would be the best way to do what I am trying to do?
r-j-taylor
(R. J. Taylor)
November 19, 2021, 5:28pm
6
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.
snel6424
(Colton S.)
November 19, 2021, 5:40pm
7
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