Sound touch adding presets error

Dear All,
Today is the first day since i installed home assistant. Bose sound touch is added but when i am trying to configure the presets i get error during configuration validation. "Invalid config for [media_player]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 18). "

Below is my config file


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

media_player:                           (This is line 18 which it complaints about)
  - platform: braviatv
    host: 192.168.178.20
    name: Living room TV
  - platform: soundtouch
    host: 192.168.178.24
    port: 8090
    name: Bose Ice Bedroom
  - service: media_player.play_media
    data:
        entity_id: media_player.Bose_Ice_Bedroom
        media_content_id: 1..6
        media_content_type: PLAYLIST

Can some one please suggest where am i going wrong? Secondly i have configured 6 presets on sound touch which points to internet radio mainly.

Thanks,
Mo

You just need to put a single number as media_content_id :wink:
And your service call is wrongly positioned. You need to put this either in an automation or in a script.
It cannot be located in the configuration section, which makes me assume you are new to Home Assistant. So just have a look at the documentation of automations and scripts, and then you will be able to call the soundtouch service!

Good luck

Glad you asked me to check the documentation. Managed to get it work with few examples mentioned in some blogs.
Thanks,
Mo