I am building a remote using ha-floorplan and would like to have a button which steps through a list of surround modes and sets the amplifier to that mode. Things are going OK until I try and template the command so I am looking for some help with this last step.
input_select:
surround_mode:
name: "Amplifier Surround Mode"
options:
- Sci-Fi
- Movie
- Music
- DspMovie
- DspMusic
initial: Sci-Fi
script:
change_surround_mode:
alias: "Change Rumpus Amp Surround Mode"
sequence:
- service: input_select.select_next
target:
entity_id: input_select.surround_mode
- service: remote.send_command
data_template:
entity_id: remote.rumpus_harmony_hub
command: {{states.input_select.surround_mode.state}}
device: Main Zone
In the template editor all is well but in am getting this error:
invalid key: "OrderedDict([('states.input_select.surround_mode.state', None)])" in "/config/packages/media.yaml", line 305, column 0