Philips TV (2016+) Binding

I’ve a 65PUS7502 and got no pairing code. Maybe this one use also the 6.1? like the 6262.

Update:

nmap results:
8008/tcp open http
8009/tcp open ajp13
8443/tcp open https-alt
9000/tcp open cslistener
49153/tcp open unknown

Hi,

i tested it with my 32PFS6402/12 and confirm that the following works:

Number            SchlafzimmerTV_Volume         "Philips TV - Lautstärke ändern"        (gSchlafzimmerTV)                                       {channel="philipstv:tv:F00DBABE_AA5E_BABA_DADA_E2D0FC750DA3:volume"}
Switch            SchlafzimmerTV_Mute           "Philips TV - Stumm"                    (gSchlafzimmerTV)                                       {channel="philipstv:tv:F00DBABE_AA5E_BABA_DADA_E2D0FC750DA3:mute"}

String            SchlafzimmerTV_Program_Name   "Philips TV - Kanalname"                (gSchlafzimmerTV)                                       {channel="philipstv:tv:F00DBABE_AA5E_BABA_DADA_E2D0FC750DA3:tvChannel"}

String            SchlafzimmerTV_Key_Code       "Philips TV - Funktion aufrufen"        (gSchlafzimmerTV)                                       {channel="philipstv:tv:F00DBABE_AA5E_BABA_DADA_E2D0FC750DA3:keyCode"}

Switch            SchlafzimmerTV_Power          "Philips TV - Power"                    (gSchlafzimmerTV)                                       {channel="philipstv:tv:F00DBABE_AA5E_BABA_DADA_E2D0FC750DA3:power"}

Switch            SchlafzimmerTV_Ambilight      "Philips TV - Ambilight"                (gSchlafzimmerTV)                                       {channel="philipstv:tv:F00DBABE_AA5E_BABA_DADA_E2D0FC750DA3:ambilightPower"}

Seems the WOL does not work:

2020-01-29 10:38:45.465 [rthome.event.ThingStatusInfoChangedEvent] - 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_E2D0FC750DA3' changed from ONLINE to ONLINE: Standby
2020-01-29 10:39:04.632 [rthome.event.ThingStatusInfoChangedEvent] - 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_E2D0FC750DA3' changed from ONLINE: Standby to OFFLINE (COMMUNICATION_ERROR): TV does not accept commands at the moment.
2020-01-29 10:39:22.331 [rthome.event.ThingStatusInfoChangedEvent] - 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_E2D0FC750DA3' changed from OFFLINE (COMMUNICATION_ERROR): TV does not accept commands at the moment. to OFFLINE: TV is not reachable and should therefore be off.

WoWLAN is activ on the TV

I have the 65OLED804 / 12, it is also found by the binding but I can not read the code on the TV. Anyone have an idea?

i switched to a different hdmi channel, couldn’t read it either.

1 Like

This is the solution, thank you!

1 Like

65OLED804/12 works perfectly for me, also power “ON”.
Thank you very much for the very useful binding.

I was happy too early, after a few hours the Thing says “Status: OFFLINE - COMMUNICATION_ERROR TV does not accept commands at the moment.” and nothing works anymore.

@Thorhammer the logs you’re showing look like your tv just went offline. WOL should be able to wake up the TV after these logs, it is not avoiding going from standby to offline

@Christian_Hofstatter Are you using constant polling or the default Upnp polling? What you are describing is a common problem with philips tvs, after a while they refuse connections. It’s hard to fix since this seems to differ between models (for example it’s working fine with my 7101 model, even after several hours). I would recommend to increase the polling value. I am also not sure if it makes a difference that my tv is cut off from power during nights. Did the TV “recover” and accepted commands again after some time?

I activated UPnP yesterday and always switch the TV to standby, because the OLEDs need it to regenerate the display. He didn’t go oline on his own, only when I plugged the TV in and out now, it went online and can be controlled again.
I have now deactivated UPnP and set the refresh rate to “600”, let’s see what happens.
It is interesting also, that the TV was found again and again, but the found ones also disappear from the list:

2020-01-31 15:52:14.123 [WARN ] [lipstv.internal.service.PowerService] - Unexpected Error handling the PowerState command REFRESH for Channel power: The given username/password combination is invalid.
2020-01-31 15:52:59.020 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000099C8' to inbox.
	at org.openhab.binding.philipstv.internal.service.TvPictureService.getBrightness(TvPictureService.java:100) ~[?:?]
	at org.openhab.binding.philipstv.internal.service.TvPictureService.handleCommand(TvPictureService.java:66) ~[?:?]
	at org.openhab.binding.philipstv.internal.handler.PhilipsTvHandler.handleCommand(PhilipsTvHandler.java:173) ~[?:?]
	at org.openhab.binding.philipstv.internal.service.TvPictureService.getContrast(TvPictureService.java:113) ~[?:?]
	at org.openhab.binding.philipstv.internal.service.TvPictureService.handleCommand(TvPictureService.java:71) ~[?:?]
	at org.openhab.binding.philipstv.internal.handler.PhilipsTvHandler.handleCommand(PhilipsTvHandler.java:173) ~[?:?]
	at org.openhab.binding.philipstv.internal.service.TvPictureService.getSharpness(TvPictureService.java:126) ~[?:?]
	at org.openhab.binding.philipstv.internal.service.TvPictureService.handleCommand(TvPictureService.java:76) ~[?:?]
	at org.openhab.binding.philipstv.internal.handler.PhilipsTvHandler.handleCommand(PhilipsTvHandler.java:173) ~[?:?]
2020-01-31 16:02:47.748 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_00000000FFCA' to inbox.
2020-01-31 16:06:46.966 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_00000000FFCA' to inbox.
2020-01-31 16:40:36.117 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_00000000EFCA' to inbox.
2020-01-31 17:10:54.342 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_00000000EFCA' to inbox.
2020-01-31 17:13:51.800 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_000000002FCB' to inbox.
2020-01-31 17:17:09.645 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_00000000DFCA' to inbox.
2020-01-31 17:19:31.760 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000030C8' to inbox.
2020-01-31 17:38:24.257 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_000000002FC8' to inbox.
2020-01-31 17:39:33.624 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000010C8' to inbox.
2020-01-31 17:42:17.316 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_00000000BFCA' to inbox.
2020-01-31 18:41:53.400 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_00000000BFCA' to inbox.
2020-01-31 23:21:07.527 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_00000000B0CB' to inbox.
2020-02-01 02:08:59.680 [WARN ] [hilipstv.internal.service.AppService] - Could not execute command for apps, the TV is offline.
2020-02-01 07:06:22.843 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000060C9' to inbox.
2020-02-01 10:14:03.278 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000060C9' to inbox.
2020-02-01 12:43:12.139 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000070CE' to inbox.

Looks as if it is always found when switching on and deleted from the list when switching off:

2020-02-01 13:44:18.839 [ome.event.ItemCommandEvent] - Item 'Philips65OLED804_TVPower' received command ON
2020-02-01 13:44:18.840 [nt.ItemStatePredictedEvent] - Philips65OLED804_TVPower predicted to become ON
2020-02-01 13:44:18.848 [vent.ItemStateChangedEvent] - Philips65OLED804_TVPower changed from OFF to ON
2020-02-01 13:44:18.849 [INFO ] [eclipse.smarthome.model.script.Rules] - Fernseher Wohnzimmer an die Wand Timer von Philips65OLED804_TVPower gestoppt (Philips65OLED804_TVPower changed)
2020-02-01 13:44:18.922 [hingStatusInfoChangedEvent] - 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000099C8' changed from ONLINE: Standby to ONLINE: Tv turned on.
2020-02-01 13:44:22.204 [vent.ItemStateChangedEvent] - WZ_AVR_MM_PWR changed from OFF to ON
2020-02-01 13:44:22.721 [home.event.InboxAddedEvent] - Discovery Result with UID 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_00000000B4D1' has been added.
2020-02-01 13:44:22.721 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_00000000B4D1' to inbox.
2020-02-01 13:45:35.649 [ome.event.ItemCommandEvent] - Item 'Philips65OLED804_TVPower' received command OFF
2020-02-01 13:45:35.650 [nt.ItemStatePredictedEvent] - Philips65OLED804_TVPower predicted to become OFF
2020-02-01 13:45:35.658 [INFO ] [eclipse.smarthome.model.script.Rules] - Fernseher Wohnzimmer wird in 180 Sekunden an die Wand gefahren (Philips65OLED804_TVPower changed)
2020-02-01 13:45:35.658 [vent.ItemStateChangedEvent] - Philips65OLED804_TVPower changed from ON to OFF
2020-02-01 13:45:35.701 [hingStatusInfoChangedEvent] - 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000099C8' changed from ONLINE: Tv turned on. to ONLINE: Standby
2020-02-01 13:45:36.407 [vent.ItemStateChangedEvent] - WZ_AVR_MM_MUTE changed from OFF to ON
2020-02-01 13:45:37.008 [me.event.InboxRemovedEvent] - Discovery Result with UID 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_00000000B4D1' has been removed.

you´re right…it take a while. If the TV is in standby…it works :+1:

im getting this in my log when starting openhab again:

2020-02-03 10:25:25.307 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.philipstv-2.5.0-SNAPSHOT.jar

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.philipstv [70]

  Unresolved requirement: Import-Package: org.eclipse.smarthome.config.core

	at org.eclipse.osgi.container.Module.start(Module.java:444) ~[org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[org.eclipse.osgi-3.12.100.jar:?]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [bundleFile:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.4]

Switching HDMI channels didn´t work for me on the 55OLED804/12. I can only Read 3 Digits.
To what source did you switch exactly? Was the HDMI Source connected to Something (I wonder if i need a resource with 4k resolution or something like this)?
Thanks

HDMI 3 i think, my raspberry pi with kodi is connected on that channel.

I Had success changing the menu language to english (since the words are shorter than in german)! The Code was clearly visible then…
by the way the Binding is working perfectly fine!!
–> Philips 55OLED804/12 working

1 Like

At the beginning, 10 Seconds, the text with the code runs through, you can read it there.

Have you changed any settings, is your firmware up to date? I keep getting the message: “philipstv: tv: F00DBABE_AA5E_BABA_DADA_000000005CCF 'changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): TV does not accept commands at the moment.” And I have certainly connected it 5 times or more.
It would be enough for me if I get the Power On / Off messages reliably, I don’t want to control the tv at all. I only need the binding to tell the motorized bracket that it moves the TV into position when I turn it on and on the wall when I turn it off.

Just a short notice since I am sadly not having the time currently looking into any concrete problems: If you just wish to be informed about ON / OFF state, set the polling rate to 0 and enable UPnP. That way the binding is not talking (polling states) by its own at all with the TV and is only tracking the ON / OFF state. Though you can still fire commands.

@kalliator happy to hear you had success! Enjoy the binding.

@Mickroz did you manage to fix the problem? Sounds like it’s related to the newest OH version, but I’m using it myself and did not encounter such error until now…

1 Like

I updated everything to the newest version. OH and the TV (Firmware is only a few days old). i Didn´t have time to test very much but everything i tried did work!
I do the ON OFF state via network binding. That has some delay but works reliable. I use this to dim the lights in the living room when the TV is on.
thing: Thing network:pingdevice:philipstv [ hostname=“192.168.0.XX” ]

1 Like

Is it possible to turn on/off the screen?

No, it is currently not possible to just turn off the screen and not the whole tv. Not sure if this is even doable via the API.

I have an 55pus8303 and since 1 week it works rly good even when the TV is in standby for an hour I can switch the ambilight.
At night I always cut the TV from electricity.