Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107391

{{ if... any of these input_selectors contains this string }}

$
0
0

Hello;

I am trying to set up an < if / else > template within a TTS automation message that searches for a specific string of text selected in any of three different input_selects. I would like to map the selectors to avoid multiple if statements, but my template doesn’t seem to work. I’ve been scouring the internet all day to try and find anything similar, but I can’t seem to find anything.

Here is the condition in question:

{{ if ['input_select.keg_1','input_select.keg_2','input_select.keg_3'] | map('states') == "Coming Soon" }}
Here's what's coming soon...
{{ else }}...

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 107391

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>