Philips Android TV component

Nope the documentation say: user the script from the device where Home Assistant is running. There are also commands for upgrading Python, but that is not possible from Hassio, even not with the SSH plugin.

Whats the difference between this component and https://www.home-assistant.io/integrations/androidtv/
?

I have not used the Android TV integration, but it looks promising.

ADB can do a lot more than the Joinspace API of Philips my component is using(https://github.com/nstrelow/ha_philips_android_tv).

Advantages of JointSpace API and this component

  • Switch between TV channels
  • Might be more secure: ADB essentially gives shell access to your Android TV.

Advantages of ADB:

  • unified interface for ALL Android TVs: Newer Philips Model use a different API again and that currently leads to problems. Android TV with ADB is much more universal
  • looks like it has much better POWER state detection. Currently highly problematic for my component as JointSpace API is sometimes available sometimes not and differs from device.(and the implementation is a mess)
  • Better app playing state detection: Though you need to define custom rules for each app, if I understood correctly
  • Fetches Album art of what is playing

After really looking at it, I might trim this application down or prioritize functionality which is not possible using ADB. So I’ll probably try and get the channel switching working nicely and leave app controlling to the ADB integration.

This is not entirely correct, you might need to define custom rules for some apps, but most apps work correctly with the default rules.
Also, I’d add that you can easily select the input source and send press of practically any button with ADB.

for me it feels like using ADB is so much slower.

I just got a Philips Android TV and I’m not using my Apple TV any more because all the apps I use are built in or available on the Play Store, which is great, except I had an automation that dimmed the lights when I started playing something on the Apple TV and made them brighter when it stopped. I can’t get it working now.

I set up this integration and it seems to be working ok, I can start application and change the volume etc, but it doesn’t seem to report a “playing” state, unless I’m missing something? Just on or off?

I looked at the native Android ADB integration but I’m not sure how to get that set up, doesn’t look like I can enable wireless ADB with Android TV on Philips TVs…

Philips API does not provide a playing state for apps.
ADB will very likely work with EVERY android tv.

I definitely recommend trying that out.
(Saying that as the current maintainer of this component)
This component should mainly be used for channel switching. I will refocus it on that sometime soon.

1 Like

Ah ok, thanks for your quick reply, and for your work on this component! I’ll have another go with the native integtation. I have the ADB server installed but my TV isn’t prompting me to connect, I’ll keep trying to figure it out.

Did you enable developer options and adb debugging on the tv?

And you are talking about using the Android TV component and the ADB hassio addon, righ?:

Yeah I had enabled USB debugging, but the permissions popup never appeared on the TV. I found some info on another thread about removing the ADB server so I did that and it worked right away. Thanks for the tips!

1 Like

awesome addition, i had it working in 5 mins.

How would i get the full list of escaped characters for scripts ?

Hey Guys,

I’m really new to HASS.IO and i don’t get it…

can someone explane me please how i can pair my TV with python ?
is it only possible when you get the Core version of Hass.io or also with the full ?

if i try to pair my tv with the shell i got everytime the error that there is no python module installed…

best regards and thanks in advance for a reply

1 Like

Hello.
I have a Philips AndroidTV 32PFH5500/88. I am trying to find information on how to add it to HA and is it possible to do it at all? I have integration with HACS “Philips TV 2014-2016”. In configuration.yaml I have added:

media_player:
    - platform: philips_2014
      name: My Philips TV
      host: <ip of your TV>
      mac: <mac address of your TV>

Of course, the host and mac fields are correct.

In HA, only this is shown to me, without the possibility of controlling, I can only turn off the TV but turn it on or, for example, make it louder or quieter, not:

philipstv1

philipstv2

Has someone managed to run it properly and can it help me with it?

We are not discussing the philips_2014 but philips_2016 integration here.

I do not know about 2014, but 2016 does not support turning on the TV after it has been off for some while. You need to manually turn it on with a remote or look into wake on lan.

I NEED YOUR HELP

The AndroidTV component has a lot of advantages to this component.

The only major thing it cannot do: Switching TV channels

Is this something a lot of you use? Would it make sense to strip out all functionality not needed for TV channel use? And tell people to use the AndroidTV component for using Apps such as YouTube and Netflix?
What are you using this component for?

PS: Thanks for staring my GitHub repo: https://github.com/nstrelow/ha_philips_android_tv :smiley:

To have the Android tv integration working, one needs to be able to connect via ADB.

Until now (+6 hours of trying) I did not succeed in this. I’ve read that you need to view a channel to have the pop-up visible to allow access but I don’t have any channels - we use the TV to watch Plex and Chromecast only. I tried everything:

  • connecting normal ADB via my laptop
  • connecting over WIFI instead of ethernet
  • restarting the TV
  • attached my laptop

Any ideas on how to get the pop-up to allow access visible?

Did you activate Android Debugging via the Developer Options? I do not have any channels also and I got the pop up multiple times already.

Yes… I also enabled USB debugging in the developer options. There is no ADB debugging with me, only USB debugging.

I’m out of ideas to be honest.

Your component just seems so much faster than the AndroidTV component. I currently use both components at the same time. For things that need I need fast I use your component, for functions that is not supported by you I use the AndroidTV component.

I also don’t use TV channels. only apps. I’d like to switch to different HDMI channels though, but I already have a solution for this.

1 Like

I cannot get the adb connection working while your integration works like a charm!

1 Like