#Condition Template for State

1 messages · Page 1 of 1 (latest)

limpid shoal
#

Hi all, Are templates for conditions bugged at the moment?

lusty crag
#

you mean the first pinned message?

limpid shoal
#
condition: template
value_template: |-
  condition: template
    value_template: "{{ 'person' in states('sensor.lorains_living_room_ai_object') }}" 
lusty crag
#

that's not how you do that

#

why are you nesting the same thing twice?

limpid shoal
#

I was switching between visual editor and yaml editor when testing, thats how it got nested.

lusty crag
#

it's a mess now

#

but easy to fix

limpid shoal
#

yeah, it was because it was nested. Thanks

#

Might just stick with yaml editor.

lusty crag
#

as a YAML-only person, I'm all for it