@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