-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"name": "TV4 Play", | ||
"country": ["SE"] | ||
} | ||
{ | ||
"name": "TV4 Play", | ||
"country": ["SE"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
# TV4 Play | ||
Play tv4 play programs on home assistant media players. | ||
|
||
Currently, only `tv4_play.play_suggested` is available, but the plan is to add more services. | ||
|
||
## Configuration | ||
|
||
### Active the service | ||
|
||
Add the following to your config | ||
```yaml | ||
tv4_play: | ||
``` | ||
### Use in automations | ||
And then add the automation you want: | ||
```yaml | ||
automation: | ||
- alias: | ||
trigger: | ||
# Some trigger | ||
action: | ||
- service: tv4_play.play_suggested | ||
entity_id: media_player.living_room_tv | ||
data: | ||
program_name: nyhetsmorgon | ||
``` | ||
## Get the `program_name` field | ||
|
||
1. Search an click on the program you want at [tv4play.se](https://www.tv4play.se) | ||
2. From the url, grab the name. It should be right after `program/` | ||
|
||
 | ||
# TV4 Play | ||
Play tv4 play programs on home assistant media players. | ||
|
||
Currently, only `tv4_play.play_suggested` is available, but the plan is to add more services. | ||
|
||
## Configuration | ||
|
||
### Active the service | ||
|
||
Add the following to your config | ||
```yaml | ||
tv4_play: | ||
``` | ||
### Use in automations | ||
And then add the automation you want: | ||
```yaml | ||
automation: | ||
- alias: | ||
trigger: | ||
# Some trigger | ||
action: | ||
- service: tv4_play.play_suggested | ||
entity_id: media_player.living_room_tv | ||
data: | ||
program_name: nyhetsmorgon | ||
``` | ||
## Get the `program_name` field | ||
|
||
1. Search an click on the program you want at [tv4play.se](https://www.tv4play.se) | ||
2. From the url, grab the name. It should be right after `program/` | ||
|
||
 |