Hello again.
You can put input_select anywhere in configuration.yaml. It’s component itself like switch or media_player, so it’s not under anything, if you know what I mean.
I have scripts.yaml file in .homeassistant/includes folder so I had to put this code in my configuration.yaml file:
Hi Juan,
I’m very new to Home Assistant.
Just got the server going this evening.
Bose Sountouch 10 found and connected.
I can switch it on and of; that works
Now I would like to have my Bose Sountouch 10 working with the 6 presets, but have no clue where I should put what.
I keep getting errors if I simply try to copy the above:
Invalid config for [input_select]: expected a dictionary for dictionary value @ data[‘input_select’][‘name’]. Got ‘SoundTouch Presets:’
expected a dictionary for dictionary value @ data[‘input_select’][‘options’]. Got [‘None’, ‘Preset 1’, ‘Preset 2’, ‘Preset 3’, ‘Preset 4’, ‘Preset 5’, ‘Preset 6’]
expected a dictionary for dictionary value @ data[‘input_select’][‘presets’]. Got None. (See /config/configuration.yaml, line 86). Please check the docs at https://home-assistant.io/components/input_select/
Invalid config for [script]: expected a dictionary for dictionary value @ data[‘script’][‘alias’]. Got ‘SoundTouch Presets’
expected a dictionary for dictionary value @ data[‘script’][‘sequence’]. Got [OrderedDict([(‘service’, ‘media_player.volume_set’), (‘data’, OrderedDict([(‘entity_id’, ‘media_player.living_room’), (‘volume_level’, ‘0.2’)]))]), OrderedDict([(‘service’, ‘media_player.play_media’), (‘data_template’, OrderedDict([(‘entity_id’, ‘media_player.living_room’), (‘media_content_id’, '{% elif is_state(“input_select.presets”, “Preset 1”) %} 1 {% elif is_state(“input_select.presets”, “Preset 2”) %} 2 {% elif is_state(“input_select.presets”, “Preset 3”) %} 3 {% elif is_state("input_s…
expected a dictionary for dictionary value @ data[‘script’][‘soundtouch_presets’]. Got None. (See /config/configuration.yaml, line 71). Please check the docs at https://home-assistant.io/components/script/
Any idea what goes wrong here?
Many thanks in advance
Marc
Hi Juan,
thanks for your reply.
As I said , I’m very new to this, so all help is much appreciated
Did I understand correct that the first part goes in configuration.yaml and the second part in automation.yaml?
Other Question, if I may:
the “name: Preset” in the configuration.yaml part, is that just a given name or does it link to something else?
Same for “entity_id: media_player.soundtouch”; is “soundtouch” the name you find in the configuration of the Bose device itself or just a given name ( but always the same, that relates to the part in the configuration.yaml like the Soundtouch Living Room in below example )?
Example configuration.yaml
media_player:
platform: soundtouch
host: 192.168.1.1
port: 8090
name: Soundtouch Living Room
Marc, the location of the components (input number, automaiton) depends on your set up.
If you have an automations.yaml file then automation goes there
input_number will probably go in your configuration.yaml file as I dont think you’ve started splitting stuff.
So in the config you add the component
input_number:
and under it you add the input number I gave you.
the name allows you to call the device whatever you want. if you’ve named your sound touch “soundtouch living room” that’s how it’ll be called.
Once you add a component you need to go to the developers section (bottom left in the HA screen) to confirm the entity_id: name as this is what you need for automations etc.
I guess I must do something wrong or I misunderstood what you suggested.
The soundtouch works and is seen by the Home Assistant server, but I don’t get the 6 preset buttons . Is there a way to send pictures, maybe to your e-mail?
I took screenshots i would like to show from what I get now and a picture of what I would like to achieve . Sometimes a picture says more than 1000 words
Sorry to bring all this up again but I am struggling with this one. I cannot get preset selection to work on any of my bose soundtouch systems. I think I have tried just about every suggestion and script I can find. Does anyone have a definitive solution that works and would be willing to help me? At this point I have moved all configs except for the auto discovery of my soundtouch systems so I can see them and turn them on/off, skip songs or adjust volume, all part of the discovery service. Any help would be greatly appreciated.
just had a look at your card and I honestly think you can get rid of your input boolean, because the mini-media-player also supports the buttons ‘natively’.