is there a way to assign the value of a input_select.A to another input_select.B in a automation ?
I tried to use the service: input_select.set_options with data: options: input_select.B like this
input_select.set_options sets the list of options available to be selected, it does not directly set the state (except if you only give it one option).
What exactly are you trying to do? Does A already have all the options that B has, or do they need to be added? If the options already match, you can use input_select.select_option.
Thanks that looks good, it looks like my mistake was options & " | string".
A & B have the same options, yes.
B holds the last selected value (option) when A changes to one of the last 4 options, than A will return to its last value (value of B) after one minute.
I used input_select.select_options, but think the states string was incorrect, so getting the error [object…
No, using the string filter just didn’t do anything since states are always strings… the issue was using the wrong service call i.e. set_options vs. select_option. The "[object Object]": null is usually because the templates are not properly wrapped in quotes.