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

Input_text in script

$
0
0

@Mati24 wrote:

Hello

I try to use input_text as script variable, but I get this error:

2020-04-18 10:56:24 ERROR (MainThread) [homeassistant.components.automation] Script_Name: Error executing script. Unexpected error for call_service at pos 1: Error rendering data template: UndefinedError: 'input_text' is undefined
jinja2.exceptions.UndefinedError: 'input_text' is undefined
homeassistant.exceptions.TemplateError: UndefinedError: 'input_text' is undefined
homeassistant.exceptions.HomeAssistantError: Error rendering data template: UndefinedError: 'input_text' is undefined

My sequence script

    - service: media_player.select_source
      data_template:
        entity_id: media_player.sonos_chambre
        source: "{{ states(input_text.radio_veilleuse) }}"

The state of the input_test:

state: Radio
editable: false
min: 0
max: 100
pattern: null
mode: text
friendly_name: Radio Veilleuse

Do you have an idea why it doesn’t work ?
Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95483

Trending Articles



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