Note
As of 2023-11-29, TV4 changed their API which broke this integration. See Issue#15 for progress on making it work with the new API.
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.
Copy the custom_components/tv4_play
folder in this repository to <home assistant config>/custom_components/tv4_play
Add:
tv4_play:
to your configuration.yaml file.
And then add the automation you want:
automation:
- alias:
trigger:
# Some trigger
action:
- service: tv4_play.play_suggested
entity_id: media_player.living_room_tv
data:
program_name: nyhetsmorgon
- Search an click on the program you want at tv4play.se
- From the url, grab the name. It should be right after
program/