Time for some quality of life updates. Less crashes! Better errors!
As I cannot test, I need some testers which can confirm everything is working
If I you guys green light it, I will make the update available through custom_updater for the rest.
Update media_player.py in custom_components/philips_android_tv.
Previously when the TV would return a non json repsonse, the component would just miserably die, forcing you to restart HA, if you still wanted it working.
Now a non json response (mostly html) of the will print a warning in the log. It will contain the API, which returned a non json response and what this response was.
This should make it possible to better understand errors and maybe make changes to avoid them. And make a compatability chart of which TV is compatible with which program.
I have updated the philips_android_tv component with our latest code and it is starting as it should and I can control the TV Is there anything special you would like me to test? I am using a 55PUS8303/12 model.
its just the state attribute so: {{states("media_player.livingroom_tv")}}
works for me and returns ‘on’
You might be better off doing a negative check for ‘off’ - I need to confirm, but I think at times, if I’m chrome casting, or in smart tv, the state might not be ‘on’ but something else. I need to test/confirm this though so I can raise an accurate issue if that is the case
e.g.
{% if is_state("media_player.livingroom_tv","off") -%}
off
{%- else -%}
on
{%- endif %}
Its connected through wlan, but want to get the real status. not a reply from a ping. i am making an automation that sends me a message on the TV when its on and a certain motion sensors goes off when my child is in bed.
Just a small info for everyone using this great component and also wants to have the new input option for TV source for homekit ( Homekit new options TV Source ):
it seems like the custom icons and for apps and tv channels are not recognized by iOS and the list of sources will be empty. Removing them or replacing with some standard characters does the trick and you can have a nice shortcut for switching between different apps / channel directly from iOS control center.
Great work @nstrelow !!!, just installed it here, after installing a debian server just to get the user / pass pulled
I’m just dabbling with it so far, but the source list refreshes all the time, so I can’t scroll down through it.
I have an older 2016 Philips tv (40PFT5500/12) in the bedroom, so it would be nice to have that properly integrated.
One of the annoying things about my TV is that you can’t select the HDMI / TV input directly, but have to scroll through list of inputs, I was hoping it could be solved with this, but that doesn’t seem to be the case.
but the source list refreshes all the time, so I can’t scroll down through it.
Hmm, the function the refresh the source list is executed quite often, but the last time I used it, it did not refresh the list UI. Sadly I my TV is at a friends place, as I am away for a year. Will be back with my TV probably in March sometime. Sorry for that.
One of the annoying things about my TV is that you can’t select the HDMI / TV input directly
That is something I would have loved too, but I think not even the app can do it.
Best way to do it for me, is to hook up a device (a RPI with homeassitant running on it in my case), which supports HDMI-CEC. The HDMI-CEC component is a bit buggy, but often it works when switching.
(The RPI sends a HDMI-CEC request trough HDMI and tells it to switch to HDMI 3 for example)