I’m trying to get the new Chooser functionality implemented, but I keep getting error messages.
I tried both the syntax from the release update as the script syntax documentation.
I get the following error:
ERROR (MainThread) [homeassistant.config] Invalid config for [script]: [choose] is an invalid option for [script]. Check: script->script->cube_shake_script->choose. (See /config/configuration.yaml, line 54). Please check the docs at …
when I have this script in scripts.yaml:
cube_shake_script:
alias: script when cube shake
mode: single
choose:
- conditions:
- condition: template
value_template: '{{ state_attr("remote.harmonyhub", "current_activity")
== "Music" }}'
sequence:
- data:
source: MyReceiver
entity_id: media_player.spotify_user
service: media_player.select_source
default:
- data:
command:
- Mute
delay_secs: 0.5
device: ReceiverDevice
entity_id: remote.harmonyhub
service: remote.send_command
Probably I made some syntax errors, but can’t find them. Can some suggest what I should do differently?
NB. I haven’t seen any UI options for the Chooser as well.