Channels HTTP API


#22

This is so awesome. I can control the channels app on my Apple TV now with the google home with my voice. As for now I have to say which channel number to watch but it also works in german, thanks to ifttt.
In german I can say “switch to channel 9” and it will play channel number 9.

Thanks guys!


#23

That’s awesome! Please do share how you setup your Google Home integration in the #hacks section of the forum, so others can try it as well.


#24

Sure, will do later today! Any idea if its possible to access channel api via names and not number? so /api/play/number can be used wth /api/play/name ?


#25

That is not currently implemented by the API. It’s tough because many channels have cryptic callsigns in some regions. You could, however, query the favorite_channels API to get the names and use that to do the name->number mapping.


#26

Sounds good, thanks. Don’t think this will just work with just iftt but I will look into it :slight_smile:


#27

Can someone work on Alexa skill to support new features just announced

http://www.aftvnews.com/alexa-gets-improved-media-center-functionality-with-new-dvr-controls-and-more/


#28

Have to say that would get my vote. There is some Alexa functionality with Home Assistant for example but to get the full experience that is touted by the new video skill would be great. “Alexa, record Masterchef”. “Alexa, change to BBC HD”. Cool.


#29

@maddox are you guys writing the homebridge plugin? Any update on timeframes for it? This is awesome by the way. I’ve just setup a homebridge plugin to control the Apple TV4 so combined with a channels homebridge plugin = AMAZING


#31

@Maddox @tmm1 - any update on the homebridge plugin?


#32

Since HomeKit doesn’t really support media players, I decided to hold off until maybe they support it. There was no great news from WWDC about expanded types in HomeKit unfortunately.

I’d rather not put something out like a “Switch” that incorporates the functionality to fake it for a media player.

If you’re finding the need for HomeKit support, I’d suggest using one of the HTTP accessories and just make an HTTP switch that can point at the Channels API.


#33

What a shame, the whole preface of homebridge is HomeKit support for the impatient. We will be waiting a long time for native support for media players. Oh well.


#34

Is there any way to open up a command to enable/disable closed captioning? I turn it on/off a decent amount and the Apple TV swipe down then up then right then… is not very accessible.

Thanks


#35

This is a fair request. It will still only work while watching something though since it’s not a global setting.

Thanks!


#36

Would it be possible to change the currently selected tab through the API? I’d like to create HomeAssistant scripts that could toggle between Guide and DVR modes programmatically, so it can be mapped back to a remote button press or voice command. Scripting a sequence of navigation button presses to do the same thing is not terribly reliable.


#37

At the same time, could a command to open the guide include an optional filter parameter? This way one could go directly to “Favorites”, “HD Channels”, etc.? Thank you for the consideration!


#38

Thanks for the suggestion. At this time we probably won’t be adding things to the API to control the UI or focus and keep it to just controlling the video player.


#39

Does the API only work while Channels is in the foreground? Any thought of a option to "quit" channels vs the pause?

I love the Siri Shortcuts. Have been working with them a bit now that you released those 4.


#40

iOS and tvOS don't allow apps to run in the background, so the api only works if the app is running in the foreground. There is an api to stop the player, but we don't have a way to leave the app programmatically.


#41

I suspected that being the case. Attempted Channel changes with hopes it would bring into focus... Nope.