Update Soundtouch documentation to add play URL and TTS services (#2943)

This commit is contained in:
Charles Blonde 2017-07-07 07:28:04 +02:00 committed by Paulus Schoutsen
parent a9ab1bd37b
commit dcaa29f358

View File

@ -52,7 +52,7 @@ Configuration variables:
You can switch between one of your 6 pre-configured presets using ```media_player.play_media```
```yaml
# Play media in configuration.yaml
# Play media preset
- service: media_player.play_media
data:
entity_id: media_player.soundtouch_living_room
@ -60,6 +60,23 @@ You can switch between one of your 6 pre-configured presets using ```media_playe
media_content_type: PLAYLIST
```
You can also play HTTP (not HTTPS) URLs:
```yaml
# Play media URL
- service: media_player.play_media
data:
entity_id: media_player.soundtouch_living_room
media_content_id: http://example.com/music.mp3
media_content_type: MUSIC
```
### {% linkable_title Text-to-Speech services %}
You can use TTS services like [Google Text-to-Speech](/components/tts.google/) or [Amazon Polly](/components/tts.amazon_polly) only if your Home Assistant is configured in HTTP and not HTTPS (current device limitation, a firmware upgrade is planned).
A workaround if you want to publish your Home Assistant installation on Internet in SSL is to configure an HTTPS Web Server as a reverse proxy ([nginx](/docs/ecosystem/nginx/) for example) and let your Home Assistant configuration in HTTP on your local network. The Soundtouch devices will be available to access the TTS files in HTTP in local and your configuration will be in HTTPS on the Internet.
### {% linkable_title Service `soundtouch_play_everywhere` %}
Create a multi-room (zone) from a master and play same content on all other