Would be nice to have this in custom updater.
Favorite channels only and custom_updater support
With the new update you have to change your config from platform: philips_2016
to platform: philips_android_tv
, as numbers are not supported anymore.
@olbjan has been pushing some awesome new stuff.
- There now is an option to only display the channels in your favorites list in the source selection. Add
favorite_channels_only: true
to your config. - Now supports custom_updater, a component to manage your custom components. Use together with tracker-card to get the card from the screenshot below.
Addhttps://raw.githubusercontent.com/nstrelow/ha_philips_2016/master/custom_components.json
tocomponent_urls
.
As always head to my GitHub to get the latest version. And if you setup custom_updater, this will hopefully be the last time you manually have to copy the component
Screenshot of tracker-card with philips_android_tv:
Hi,
I have a philips 803 oled 4K android tv with latest firmware.
I installed this component
succesful pair it
i’m watching netflix and can increase or decrease the sound
but what is strange, is that component show a play icon, instead of a pause icon and that it says that the TV is sleeping what of course is not the case. Any idea what i can do to fix this?
Detecting the playing state is not possible with the API. We can only Play or Pause, but not know which state the video is in.
Is it possible to filter the dropdown (source) menu?
You can create a favorite lists for your TV channels and then put “favorite_channels_only: true” in your config. Then only your favorite channels are displayed.
No way to do this for apps currently.
Make a feature request to the home assistant media player for this. Since this is a standart component.
I already use this
Would be nice to have this for the apps too.
To be honest I don’t know how and where to open a pull request. When I click open pr it tells me to compare versions.
Could you open that PR?
A PR is when you want to submit code changes you made.
Make a feature request thread here in this forum, and hope that others will upvote it.
In GitHub Repos you can create Issues to make feature request.
Done:
There has been some great code clean up from Marcos Amorim.
Checkout the better code on Github.
I bumped the version to 0.0.3, but there have been no functional changes.
Bumped to 0.0.4 because of errors
I followed the manual from https://github.com/nstrelow/ha_philips_2016
But I get the following error.
tv is on, pairing succesfull, hass and pi rebooted… config added in configuration.yaml
Configuration invalid
Platform not found: media_player.philips_android_tv
folder:
Anybody has an idea?
Files look fine for me. How does the config look like?
Try playing around with your config, maybe some whitespace is messing it up.
I don’t see anything strange in the ident or so…
It is under the mediaplayer: header…
When checking the config it comes with:
After retyping all the entities. AND changing the name to something without quotes
it worked on 93.2…
This morning I accidently upgraded to 94…
Problem is back
&*^%$#$%
Does it still work for you guys?
Probably something to to with custom components inside HA. Try again, something will make it work again
Ans try without the quotes. I think they are not necessary in yaml
Tried it indeed without quotes… yesterday it worked… after updating… broken again…
hmmmm tonight again new possibilities to try…
So for all those like me who do not know Python etc and don’t understand the minimal explanation that the techies are giving for getting the pairing codes, here is what I ended up doing. Anyone please correct me if I’m wrong as it took me days to figure out and I didn’t document it…
The pairing does not need to be done on the Pi (I actually ruined a Hassio installation), but can be done in Windows. Commands are all run from the normal Windows command prompt (which I ran as Administrator, but I’m not sure that’s necessary)
- Download and install Microsoft Visual C++ Compiler for Python 2.7 from https://www.microsoft.com/en-us/download/details.aspx?id=44266; it will be required for the pip installation later on
- Download Python 2.716 (I used this version as dziugasp mentions in his comment) https://www.python.org/downloads/release/python-2716/
- Install Python, in the installation wizard click the Advanced button and tick:
Compile .py files to byte code after installation.
- Read this: https://github.com/BurntSushi/nfldb/wiki/Python-&-pip-Windows-installation
- Do the verification and the full pip install as described in doc above. Note that all commands are in the normal Windows command line and you need to cd to the directory that either python.exe or pip (in scripts folder) are installed in
- From https://github.com/suborb/philips_android_tv copy [requirements.txt] to the pip folder and run the command
pip install -r requirements.txt
from the command prompt. It should run without errors (no red text or error descriptions) and install ‘pycrypto’ and ‘requests’. It had errors for me before I installed the MS Visual C++ compiler. - Turn on the TV
- From https://github.com/suborb/philips_android_tv copy [philips.py] to the python folder and run
python philips.py --host <IP of TV> pair
from the command prompt - You should then get the 4 number password on the TV to enter into the prompt which should give you the username and password.
Hopefully this helps many others of you and save you days of pulling out hairs and swearing at your computer! And thanks to the techies for developing this awesome component, keep up the good work!
Windows 10, HASSIO, Philips 43PUS7202
LOL… retyping the platform… did the trick this time… weird things happen sometimes…
I had some issues with the “get_channels” option, see issue
My python skills are not the best but today I change my own code and add the option disable_channels.
I have made a Pull Request with my code.