Skip to content

Commit

Permalink
CRLF -> LF
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed Nov 23, 2019
1 parent 8d310b0 commit 27702c3
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
8 changes: 4 additions & 4 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "TV4 Play",
"country": ["SE"]
}
{
"name": "TV4 Play",
"country": ["SE"]
}
70 changes: 35 additions & 35 deletions info.md
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/`

![](https://share.lindell.me/2019/11/MassiveLeonberger.png)
# 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/`

![](https://share.lindell.me/2019/11/MassiveLeonberger.png)

0 comments on commit 27702c3

Please sign in to comment.