nstrelow / ha_philips_android_tv

Home Assistant custom component for the newer (2016+) Philips Android TVs
109 stars 28 forks source link

Sources not available #25

Closed Skons closed 4 years ago

Skons commented 4 years ago

Sources like HDMI are not available to switch to. I can see all Channels and all installed Apps. I have the 43PUS6412.

Please let me know if any more information is needed or how I can resolve this issue.

Skons commented 4 years ago

The official app does not support changing to HDMI input directly either, though i can open the sources menu. So i threw Burp Suite in between and the app showed me that it sent the following commands: {"key":"Source"} {"key":"CursorDown"} (repeat until HDMI is hit) {"key":"Confirm"}

I do not know if this ideal, but it allows for a sequence of sending commands

Skons commented 4 years ago

While i am at it, the following keys are sent by the app, but are not available in the current ha_philips_android.py. Maybe it is overkill, but they are documented now anyhow :) /6/input/key {"key":"Home"} {"key":"CursorLeft"} {"key":"CursorRight"} {"key":"Subtitle"} {"key":"RedColour"} {"key":"YellowColour"} {"key":"BlueColour"} {"key":"GreenColour"} {"key":"Info"} {"key":"Options"} {"key":"Back"} {"key":"Record"} {"key":"WatchTV"} #switch to television {"key":"PowerOff"}

With a GET on the following url, it tries to get the logo of a channel. The 418 is variable /6/channeldb/tv/channelLists/all/418/logo

Skons commented 4 years ago

It appears that all those buttons already have been documented and used elsewhere https://github.com/eslavnov/Pylips

The discussion around this feature has also been held https://community.home-assistant.io/t/philips-android-tv-component/17749/226

Skons commented 4 years ago

See my reaction for a possible solution https://community.home-assistant.io/t/philips-android-tv-component/17749/420?u=ensconce