Skip to content

Commit 9015bf2

Browse files
SonicMagnafrenck
authored andcommitted
Added info on how to launch specific Roku channel via automation. (home-assistant#9804)
* Added info on how to launch specific Roku channel via automation. Hass.io Documentation - Roku * Typo correction * ✏️ Tweak
1 parent bf7a5cc commit 9015bf2

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

source/_components/roku.markdown

+23
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,26 @@ data:
9494
- left
9595
- select
9696
```
97+
98+
## Media Player
99+
100+
When the Home Assistant Roku integration is enabled and has found a Roku device, in the Home Assistant GUI the Roku media player will show a listing of the installed channels, or apps, under “source”. Select one and it will attempt to launch the channel on your Roku device. This action can also be automated, but it requires you to acquire an extra piece of information; the ```appID``` for the channel specific to your Roku. Although this information is gathered by the Roku integration, at the moment it is not exposed to the end user. This item might be added in a future release. For now though, you can easily get the information yourself. All you need to do is a simple GET API call on the same network as your device.
101+
102+
The api calls are like this:
103+
104+
```
105+
GET http:// ROKU_IP:8060/query/apps
106+
POST http://ROKU_IP:8060/launch/APP_ID
107+
```
108+
109+
More details can be found on the [Roku dev pages](https://developer.roku.com/docs/developer-program/discovery/external-control-api.md)
110+
111+
To use this in Home Assistant, for instance in an automation, the format is as follows. Note that ```source: ``` is the appID you discovered in the API call:
112+
113+
```
114+
action:
115+
- data:
116+
entity_id: media_player.roku
117+
source: 20197
118+
service: media_player.select_source
119+
```

0 commit comments

Comments
 (0)