Philips Android TV component


#205

Well like it says:

“<!DOCTYPE html>” Should not be there, this comes from download http sites instead of the .py file


#206

Did you try the original Phtilips TV component? There is an official component, maybe that works better for you.

Also I had some problems with http requests using Postman. It just stopped working after a while.

This and your problem could be related to HTTP long polling which the API is using: https://www.pubnub.com/blog/2014-12-01-http-long-polling/


#207

Strange. I have uploaded file philips_2016.py which was downloaded from your Github page. I will try original component tonight. Thanks!


#208

@nstrelow The script is working fine! Thanks a lot… you are a genius, the only part that won’t work is the turn on tv button. Do you have any idea how to fix this?


#209

I have the same problem. Suspect the TV reacts to WakeOnLan packets, and is only then controllable.


#210

Thanks for the great work! :smiley:
I got it working with my 55POS9002. I don’t have cable/flow tv, only use Apps and HDMI. I got a Intel NUC connected to my Denon X1000 receiver and I would like to detect when it’s active on HDMI. The receiver is connected to HDMI 2 and HA can’t detect that source.

image

Current activities shows

curl -X GET --digest --insecure -u user:pwd https://172.16.0.30:1926/6/activities/current

{“component”:{“packageName”:“org.droidtv.playtv”,“className”:“org.droidtv.playtv.PlayTvActivity”}}

I tried lots of variants of sources, current sources. Any ideas?
I’m running lasted version of https://github.com/nstrelow/ha_philips_2016 and a Raspberry Pi3 Hassbian image, HA version 0.82.1.

/Lars


#211

It is working for me. Takes a while until it starts.
Make sure to have Wake on WLAN WoWLAN, enabled, it’s in the network settings of the TV


#212

I do not think I found a possibility to switch between hdmi devices.
Sources are only channels and apps. TV is one app and you can start it, but that will just display the last hdmi channel used I think.

Try https://www.home-assistant.io/components/hdmi_cec/
I use it to switch between hdmi devices. You have to have your HA devices (e.g. RPI) attached to the tv via hdmi


#213

I got it working. Instead of downloading component directly from GitHub, I have downloaded raw version. And it worked like a charm. Thanks!


#214

Look on a media_player.philips_js component and a patched ha-philipsjs. It should work with allcab/allsat as well.