Improve documentation about Mediaroom (#5022)

* Improve documentation

* Add raw
This commit is contained in:
Diogo Gomes 2018-03-26 16:50:12 +01:00 committed by Fabian Affolter
parent 0f78e11a86
commit da03b58a3a

View File

@ -47,7 +47,7 @@ Notice that all parameters are optional, and discovery should configure everythi
The component has been developed for Portuguese TV operators currently using the Mediaroom platform, but should also work in other deployments in which the STB can be controlled remotely through a socket on port 8082.
In most cases (single STB) you just need to setup the *platform* and discovery will do the rest. In case you have more than one STB you are required to set the *host* in each one of the entries.
In most cases (single STB) you just need to setup the *platform* and discovery will do the rest.
If the STB is on the same network segment as Home Assistant, it can determine whether the device is turned on or off. Without this, the component will fail to determine the Set-top box status, and you are required to add the *optimistic* configuration variable.
@ -55,8 +55,9 @@ If the STB is on the same network segment as Home Assistant, it can determine wh
### {% linkable_title Example `press_button` script %}
The `play_media` function can be used in scripts to change channels.
The `play_media` function can be used in scripts to change channels and emulate button pressing from a remote control.
{% raw %}
```yaml
# Example play_media script
#
@ -67,6 +68,8 @@ press_button:
entity_id: media_player.mediaroom_stb
media_content_id: "{{ value }}"
media_content_type: "channel"
```
{% endraw %}
### {% linkable_title Example configuration with 2 STB %}