Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to specific source #9

Open
stijnbuurman opened this issue Dec 13, 2017 · 4 comments
Open

Switch to specific source #9

stijnbuurman opened this issue Dec 13, 2017 · 4 comments

Comments

@stijnbuurman
Copy link

stijnbuurman commented Dec 13, 2017

First of all, thanks a lot for making this library. I can now turn on the tv with my google home and who knows what more. There is just one thing that i'm missing desperately, when I turn on my tv and xbox with a voice action, i need the tv to switch to a specific source.
The only solution I found is using key presses: 'Sources' -> up/down -> 'enter'. But as the order of sources is not always the same (depends on which devices are on, and what source it is currently on), it is hard to determine how many up's or down's i need.

So the question: Did you find a way to access the sources api? Or do you know another way?

@fliphess
Copy link
Contributor

fliphess commented Dec 21, 2017

I ran into the same challenge and am still looking for a real solution, but by tcpdumping and man in the middling the official philips ios app it seems to me that this is not possible using the jointspace implementation of post 2016 philips TV's....

Even the ios app does not support selecting sources in other ways than opening the "sources menu" and selecting one by navigating to the correct source and selecting Confirm, which is the current way i use too....

@nstrelow
Copy link

nstrelow commented Oct 24, 2018

There is a lot of talk about building a Home-Assistant integration here:
https://community.home-assistant.io/t/philips-android-tv-component/17749/93

There is code for easy stuff like volume setting, but some folks figured out how to set sources (I think it was home assistant user boloni, script for switching is his):

Source (Channel) switching: https://github.com/nstrelow/ha_philips_2016/blob/master/philips_2016.py#L373 (currently not used in the plugin as I switched it to showing apps)
Also similar to issue #7.

App switching: https://github.com/nstrelow/ha_philips_2016/blob/master/philips_2016.py#L379
Detailed payload found in issue #5, in the component I just send back what I got from /applications

And somebody made a component for setting Ambilight through home assistant:
https://community.home-assistant.io/t/philips-android-tv-ambilights-light-component/67754/18

@stijnbuurman
Copy link
Author

If I remember correctly changing channels does not allow to change source. I actually have home assistant so thanks for the integration! I will try it out soon

@nstrelow
Copy link

Oh you mean switching the HDMI selected device?
You could try using HDMI CEC commands. That would make it possible, but you need e.g. a Raspberry Pi attached to the TV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants