home-assistant.github.io/source/_components/media_player.sonos.markdown
2016-06-18 13:17:20 -07:00

1.1 KiB

layout title description date sidebar comments sharing footer logo ha_category featured ha_release
page Sonos Instructions how to integrate Sonos devices into Home Assistant. 2015-09-12 13:00 true false true true sonos.png Media Player true 0.7.3

The sonos platform allows you to control your Sonos HiFi wireless speakers and audio components from Home Assistant.

To add your Sonos components to your installation, add the following to your configuration.yaml file. It will perform auto-discovery of your connected speakers.

# Example configuration.yaml entry
media_player:
  platform: sonos

You can also specify hosts to connect to if they cannot be found with auto-discovery.

# Example configuration.yaml entry
media_player:
  platform: sonos
  hosts: IP

{% linkable_title Service %}

There are two extra services exposed that will allow you to take a snapshot of what is currently playing and restore it afterwards. This is useful if you want to play a doorbell or notification sound and resume playback afterwards.

The services are called sonos_snapshot and snapshot_restore.