From 13e455a59e9ff88e9896e2cffa1f2f37f1bd55e4 Mon Sep 17 00:00:00 2001 From: Kyle Gordon Date: Mon, 20 Jan 2020 08:32:48 +0000 Subject: [PATCH] Documentation for updated Openhome integration (#11153) * Example playback actions * Use friendlier name * Use music media_type --- source/_integrations/openhome.markdown | 27 +++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/source/_integrations/openhome.markdown b/source/_integrations/openhome.markdown index bccde945bf1..28b7db358a9 100644 --- a/source/_integrations/openhome.markdown +++ b/source/_integrations/openhome.markdown @@ -10,9 +10,34 @@ ha_iot_class: Local Polling The `openhome` platform allows you to connect an [Openhome Compliant Renderer](http://openhome.org/) to Home Assistant such as a [Linn Products Ltd](https://www.linn.co.uk) HiFi streamer. It will allow you to control media playback, volume, source and see the current playing item. Openhome devices should be discovered by using the [the discovery component](/integrations/discovery/), their device names are taken from the name of the room configured on the device. +### Example configuration.yaml entry + ```yaml -# Example configuration.yaml entry discovery: media_player: - platform: openhome ``` + +### Example local audio playback action + +```yaml +action: + - service: media_player.play_media + data_template: + entity_id: + - media_player.linn_bedroom + media_content_id: "http://172.24.32.13/Doorbell.mp3" + media_content_type: music +``` + +### Example web stream playback action + +```yaml + - service: media_player.play_media + data_template: + entity_id: + - media_player.linn_bedroom + media_content_id: "http://media-ice.musicradio.com:80/ClassicFMMP3" + media_content_type: music +``` +