Hi All
As the header suggests, I’m trying to set an input select/list to the specific value of a String helper.
I have Netatmo thermostatats, and to set the used schedule in HA in an automation action, one choses the “my_home” device and the selects from the list of options.
Picture of the UI:
The autogenerated YAML for this, looks like the below:
alias: test2_set_value_from_helper
description: ""
trigger: []
condition: []
action:
- device_id: 67eead9f6f98241d9ac6a52aeeb4ec9f
domain: select
entity_id: select.netatmo_mit_hjem
type: select_option
option: Standard
mode: single
Trace output from this is:
Executed: December 21, 2022 at 8:07:55 AM
So, I thought that I would just retrieve the state of a string helper, to whatever should go as the selcected option - when the automation ran, but this doesn’t work. See below
alias: test2_set_value_from_helper
description: ""
trigger: []
condition: []
action:
- device_id: 67eead9f6f98241d9ac6a52aeeb4ec9f
domain: select
entity_id: select.netatmo_mit_hjem
type: select_option
option: "{{ states('input_text.climate_helper_open_windows') }}"
mode: single
Trace output from this is:
Executed: December 21, 2022 at 8:09:49 AM
Error: Option {{ states('input_text.climate_helper_open_windows') }} not valid for Mit hjem
So, what am I doing wrong?
I’m a noob in the world of YAML, so nothing is obvious for me