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

Script variable in template {{ states.input_boolean.{{ var }}.state == 'on' }}

$
0
0

Hello,

In my push notifications I’m using this template

    - condition: template
      value_template: >
        {{ states.input_boolean.state_push.state == 'on' }}

In need to pass variable defined in script for something like:

    - condition: template
      value_template: >
        {{ states.input_boolean.{{script_variable}}_push.state == 'on' }}

I’ve tried all possible options come to my mind and found everywhere but no luck.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106491

Trending Articles



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