Philips TV (2016+) Binding

Thanks for your work! It works great on my setup:
openHAB 3.0 + Philips 55OLED804/12
what I tested untill now

  • Power on/off works
  • Volume control works
  • keys are transmitted
    I could even bind it to my Alexa account and use voice command.

“Search content” channel can also be used to switch tv input channels (e.g. by passing “HDMI1” or “HDMI 1” to your item). (FYI @NorbertHD and @Sebastian1)

Thanks for sharing your findings from your project @Evgeny_Slavnov and great to see you over here in the forum!
I’m not sure if this behaviour changed at the tv’s, but it also works right now with the binding as it is using the following POST to the activities/launch :
{"intent":{"action":"android.search.action.GLOBAL_SEARCH","extras":{"query":"hdmi 1"}}}

Hi Marcel,

I’ve created a new release and hopefully fixed the tv channel issue. Could you have a look if the problem still persists?

@bennYx0x great… the TV channel is indeed working fine now

The binding works great on OH3 with my 55OLED803/12 TV so why don’t you integrate it into the “official out of the box” bindings?

Hi,

I have the same, but litte diffrent.
Apps Reading is not possible on http, only upnp.
on my 55pus7272 this will always working,
on my 55oled854 works this only after the tv is just started, after using like 3 apps, it stopped working.

if I send the command “TV” to the app channel on the 55pus7272 goes to the last hdmi,
on the 55oled854 he does the same but a black screen ? and is i referesh with the remote it works ?

maybe on the background are running to mutch apps? maybe somebody has a idea, i really need this for my surround system to choose the good audio settings.

@Hamlet thx for the feedback, as mentioned some posts above I might do so soon

@chrisonline could you set the logs to DEBUG and post the output? Then we’ll see what is going on during the refresh.

@Whininie if the refresh works and suddenly stops, it might be that the tv stops responding if there are too many requests / refresh attempts. You could try out this experimental version and see if it helps: https://github.com/mebe1012/openhab2-bindings/raw/philipstv/bundles/org.openhab.binding.philipstv/release/org.openhab.binding.philipstv-3.1.0-SNAPSHOT-EXPERIMENTAL.jar

Hi,

Thanks for your response!
Still on the 55pus7272 it works,
On the 55oled854 no respone at all on the experimental, no app icon, no readable app name. only commands is working.

@Whininie could you then enable debug logging for further insights?

You can do so via the openhab-cli with the command

log:set DEBUG org.openhab.binding.philipstv

Something like this will be printed if the settings are refreshed:

2021-01-30 23:20:16.423 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.0.129:1926/6/audio/volume

2021-01-30 23:20:16.458 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-30 23:20:16.460 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-30 23:20:16.463 [DEBUG] [philipstv.internal.ConnectionManager] - {"muted":false,"current":15,"min":0,"max":60}

2021-01-30 23:20:16.469 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.0.129:1926/6/activities/current

2021-01-30 23:20:16.514 [DEBUG] [philipstv.internal.ConnectionManager] - -----------------------------------

2021-01-30 23:20:16.516 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-30 23:20:16.518 [DEBUG] [philipstv.internal.ConnectionManager] - {"component":{"packageName":"NA","className":"NA"}}

2021-01-30 23:20:16.521 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.0.129:1926/6/activities/tv

2021-01-30 23:20:16.563 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-30 23:20:16.564 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-30 23:20:16.567 [DEBUG] [philipstv.internal.ConnectionManager] - {}

i started netflix, videoland, and Kodi but no response

2021-01-31 13:33:59.629 [DEBUG] [covery.PhilipsTvDiscoveryParticipant] - Device found: Philips TV DMR with desc UPnP Media Renderer 1.0

2021-01-31 13:33:59.634 [DEBUG] [covery.PhilipsTvDiscoveryParticipant] - Discovered a Philips TV ‘TV01’ model ‘Philips TV DMR’ thing with UDN ‘F00DBABE_AA5E_BABA_DADA_68070a220194’

2021-01-31 13:33:59.638 [DEBUG] [covery.PhilipsTvDiscoveryParticipant] - Philips TV Found: 192.168.1.152, using default port 1926

2021-01-31 13:33:59.651 [DEBUG] [tv.internal.handler.PhilipsTvHandler] - thingDiscovered: DiscoveryResult [thingUID=philipstv:tv:F00DBABE_AA5E_BABA_DADA_68070a220194, properties={host=192.168.1.152, port=1926}, representationProperty=null, flag=NEW, label=TV01, bridgeUID=null, ttl=-1, timestamp=1612096439642]

2021-01-31 13:33:59.655 [DEBUG] [tv.internal.handler.PhilipsTvHandler] - thingDiscovered, thingUID=philipstv:tv:F00DBABE_AA5E_BABA_DADA_68070a220194, discoveredUID=philipstv:tv:F00DBABE_AA5E_BABA_DADA_68070a220194

2021-01-31 13:33:59.660 [INFO ] [tv.internal.handler.PhilipsTvHandler] - Starting Refresh Scheduler for Philips TV TV01 with refresh rate of 10.

2021-01-31 13:33:59.670 [DEBUG] [tv.internal.handler.PhilipsTvHandler] - thingDiscovered: DiscoveryResult [thingUID=philipstv:tv:F00DBABE_AA5E_BABA_DADA_68070a220194, properties={host=192.168.1.152, port=1926}, representationProperty=null, flag=NEW, label=TV01, bridgeUID=null, ttl=-1, timestamp=1612096439642]

2021-01-31 13:33:59.677 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘philipstv:tv:F00DBABE_AA5E_BABA_DADA_68070a220194’ changed from OFFLINE: TV is not reachable and should therefore be off. to ONLINE

2021-01-31 13:34:09.666 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:34:10.032 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:34:10.036 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:34:10.039 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:34:10.046 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/applications

2021-01-31 13:34:10.685 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:34:10.689 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:34:10.691 [DEBUG] [philipstv.internal.ConnectionManager] - {“version”:0,“applications”:[{“label”:“Zo kunt u…”,“intent”:{“component”:{“packageName”:“org.droidtv.eum”,“className”:“org.droidtv.eum.onehelp.HowToTutorials.HowToVideosActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“org.droidtv.eum.onehelp.HowToTutorials.HowToVideosActivity-org.droidtv.eum”,“type”:“app”},{“label”:“Play Store”,“intent”:{“component”:{“packageName”:“com.android.vending”,“className”:“com.google.android.finsky.tvmainactivity.TvMainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.google.android.finsky.tvmainactivity.TvMainActivity-com.android.vending”,“type”:“app”},{“label”:“YouTube”,“intent”:{“component”:{“packageName”:“com.google.android.youtube.tv”,“className”:“com.google.android.apps.youtube.tv.activity.ShellActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.google.android.apps.youtube.tv.activity.ShellActivity-com.google.android.youtube.tv”,“type”:“app”},{“label”:“TED”,“intent”:{“component”:{“packageName”:“com.ted.android.tv”,“className”:“com.ted.android.tv.view.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.ted.android.tv.view.MainActivity-com.ted.android.tv”,“type”:“app”},{“label”:“Videoland”,“intent”:{“component”:{“packageName”:“nl.rtl.videoland”,“className”:“nl.rtl.videoland.ui.splash.SplashActivity”},“action”:“empty”},“order”:0,“id”:“nl.rtl.videoland.ui.splash.SplashActivity-nl.rtl.videoland”,“type”:“app”},{“label”:“NPO”,“intent”:{“component”:{“packageName”:“nl.uitzendinggemist”,“className”:“nl.uitzendinggemist.main.SplashActivity”},“action”:“empty”},“order”:0,“id”:“nl.uitzendinggemist.main.SplashActivity-nl.uitzendinggemist”,“type”:“app”},{“label”:“Prime Video”,“intent”:{“component”:{“packageName”:“com.amazon.amazonvideo.livingroom”,“className”:“com.amazon.ignition.IgnitionActivity”},“action”:“empty”},“order”:0,“id”:“com.amazon.ignition.IgnitionActivity-com.amazon.amazonvideo.livingroom”,“type”:“app”},{“label”:“Play Games”,“intent”:{“component”:{“packageName”:“com.google.android.play.games”,“className”:“com.google.android.apps.play.games.app.atv.features.home.HomeActivity”},“action”:“empty”},“order”:0,“id”:“com.google.android.apps.play.games.app.atv.features.home.HomeActivity-com.google.android.play.games”,“type”:“app”},{“label”:“Play Films”,“intent”:{“component”:{“packageName”:“com.google.android.videos”,“className”:“com.google.android.videos.tv.presenter.activity.TvLauncherActivity”},“action”:“empty”},“order”:0,“id”:“com.google.android.videos.tv.presenter.activity.TvLauncherActivity-com.google.android.videos”,“type”:“app”},{“label”:“Netflix”,“intent”:{“component”:{“packageName”:“com.netflix.ninja”,“className”:“com.netflix.ninja.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.netflix.ninja.MainActivity-com.netflix.ninja”,“type”:“app”},{“label”:“Amazon Alexa”,“intent”:{“component”:{“packageName”:“org.droidtv.amazonalexa”,“className”:“org.droidtv.amazonalexa.wizard.AlexaWizardActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“org.droidtv.amazonalexa.wizard.AlexaWizardActivity-org.droidtv.amazonalexa”,“type”:“app”},{“label”:“TV-gids”,“intent”:{“component”:{“packageName”:“org.droidtv.channels”,“className”:“org.droidtv.channels.ChannelsActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“org.droidtv.channels.ChannelsActivity-org.droidtv.channels”,“type”:“app”},{“label”:“Media”,“intent”:{“component”:{“packageName”:“org.droidtv.contentexplorer”,“className”:“org.droidtv.contentexplorer.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“org.droidtv.contentexplorer.MainActivity-org.droidtv.contentexplorer”,“type”:“app”},{“label”:“Demomenu”,“intent”:{“component”:{“packageName”:“org.droidtv.demome”,“className”:“org.droidtv.demome.DemoMeOptionsActivity”},“action”:“empty”},“order”:0,“id”:“org.droidtv.demome.DemoMeOptionsActivity-org.droidtv.demome”,“type”:“app”},{“label”:“Philips TV-collectie”,“intent”:{“component”:{“packageName”:“org.droidtv.nettv.market”,“className”:“org.droidtv.nettv.market.MarketMainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“org.droidtv.nettv.market.MarketMainActivity-org.droidtv.nettv.market”,“type”:“app”},{“label”:“Topselectie”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvrecommender”,“className”:“org.droidtv.nettvrecommender.NetTvRecommenderMainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“org.droidtv.nettvrecommender.NetTvRecommenderMainActivity-org.droidtv.nettvrecommender”,“type”:“app”},{“label”:“TV”,“intent”:{“component”:{“packageName”:“org.droidtv.playtv”,“className”:“org.droidtv.playtv.PlayTvActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“org.droidtv.playtv.PlayTvActivity-org.droidtv.playtv”,“type”:“app”},{“label”:“Disney+”,“intent”:{“component”:{“packageName”:“com.disney.disneyplus”,“className”:“com.bamtechmedia.dominguez.main.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.bamtechmedia.dominguez.main.MainActivity-com.disney.disneyplus”,“type”:“app”},{“label”:“Play Muziek”,“intent”:{“component”:{“packageName”:“com.google.android.music”,“className”:“com.google.android.music.tv.HomeActivity”},“action”:“empty”},“order”:0,“id”:“com.google.android.music.tv.HomeActivity-com.google.android.music”,“type”:“app”},{“label”:“IPTV Smarters Pro”,“intent”:{“component”:{“packageName”:“com.nst.iptvsmarterstvbox”,“className”:“com.nst.iptvsmarterstvbox.view.activity.SplashActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.nst.iptvsmarterstvbox.view.activity.SplashActivity-com.nst.iptvsmarterstvbox”,“type”:“app”},{“label”:“Kijk”,“intent”:{“component”:{“packageName”:“com.talpa.kijk”,“className”:“com.talpa.kijk.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.talpa.kijk.MainActivity-com.talpa.kijk”,“type”:“app”},{“label”:“Pathé Thuis”,“intent”:{“component”:{“packageName”:“nl.pathe.thuis”,“className”:“nl.pathe.thuis.ForwardActivity”},“action”:“empty”},“order”:0,“id”:“nl.pathe.thuis.ForwardActivity-nl.pathe.thuis”,“type”:“app”},{“label”:“Fitnessbuddy”,“intent”:{“component”:{“packageName”:“org.droidtv.android.fitness”,“className”:“org.droidtv.android.fitness.SplashScreenActivity”},“action”:“empty”},“order”:0,“id”:“org.droidtv.android.fitness.SplashScreenActivity-org.droidtv.android.fitness”,“type”:“app”},{“label”:“ARTE”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvapp1814”,“className”:“com.zeasn.app.linux.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.zeasn.app.linux.MainActivity-org.droidtv.nettvapp1814”,“type”:“app”},{“label”:“Couchplay Games”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvapp20004410”,“className”:“com.zeasn.app.linux.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.zeasn.app.linux.MainActivity-org.droidtv.nettvapp20004410”,“type”:“game”},{“label”:“RTL XL”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvapp2512”,“className”:“com.zeasn.app.linux.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.zeasn.app.linux.MainActivity-org.droidtv.nettvapp2512”,“type”:“app”},{“label”:“NPO”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvapp2786”,“className”:“com.zeasn.app.linux.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.zeasn.app.linux.MainActivity-org.droidtv.nettvapp2786”,“type”:“app”},{“label”:“Rakuten TV”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvapp3983”,“className”:“com.zeasn.app.linux.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.zeasn.app.linux.MainActivity-org.droidtv.nettvapp3983”,“type”:“app”},{“label”:“FOX Sports NL”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvapp4543”,“className”:“com.zeasn.app.linux.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.zeasn.app.linux.MainActivity-org.droidtv.nettvapp4543”,“type”:“app”},{“label”:“GameTreeTV GOLD”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvapp4932”,“className”:“com.zeasn.app.linux.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.zeasn.app.linux.MainActivity-org.droidtv.nettvapp4932”,“type”:“game”},{“label”:“Filmbox Live”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvapp5225”,“className”:“com.zeasn.app.linux.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.zeasn.app.linux.MainActivity-org.droidtv.nettvapp5225”,“type”:“app”},{“label”:“MovieMAX Online”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvapp5265”,“className”:“com.zeasn.app.linux.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.zeasn.app.linux.MainActivity-org.droidtv.nettvapp5265”,“type”:“app”},{“label”:“Toon Goggles”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvapp5326”,“className”:“com.zeasn.app.linux.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.zeasn.app.linux.MainActivity-org.droidtv.nettvapp5326”,“type”:“app”},{“label”:“Fishing TV”,“intent”:{“component”:{“packageName”:“org.droidtv.nettvapp5512”,“className”:“com.zeasn.app.linux.MainActivity”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“com.zeasn.app.linux.MainActivity-org.droidtv.nettvapp5512”,“type”:“app”},{“label”:“Kodi”,“intent”:{“component”:{“packageName”:“org.xbmc.kodi”,“className”:“org.xbmc.kodi.Splash”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“org.xbmc.kodi.Splash-org.xbmc.kodi”,“type”:“app”}]}

2021-01-31 13:34:10.710 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:34:10.786 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:34:10.788 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:34:10.790 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:34:12.611 [DEBUG] [tv.internal.handler.PhilipsTvHandler] - thingDiscovered: DiscoveryResult [thingUID=chromecast:chromecast:9a328ab14683e57c3c7c18222046bc24, properties={ipAddress=192.168.1.180, port=8009, deviceId=9a328ab14683e57c3c7c18222046bc24}, representationProperty=deviceId, flag=NEW, label=Nest Hub Woonkamer, bridgeUID=null, ttl=-1, timestamp=1612096452604]

2021-01-31 13:34:12.616 [DEBUG] [tv.internal.handler.PhilipsTvHandler] - thingDiscovered: DiscoveryResult [thingUID=chromecast:chromecast:9a328ab14683e57c3c7c18222046bc24, properties={ipAddress=192.168.1.180, port=8009, deviceId=9a328ab14683e57c3c7c18222046bc24}, representationProperty=deviceId, flag=NEW, label=Nest Hub Woonkamer, bridgeUID=null, ttl=-1, timestamp=1612096452604]

2021-01-31 13:34:20.794 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:34:20.883 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:34:20.885 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:34:20.889 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:34:20.895 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:34:20.947 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:34:20.951 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:34:20.953 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:34:30.959 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:34:31.027 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:34:31.029 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:34:31.033 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:34:31.039 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:34:31.098 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:34:31.103 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:34:31.107 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:34:41.112 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:34:41.189 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:34:41.192 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:34:41.194 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:34:41.198 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:34:41.255 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:34:41.258 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:34:41.260 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:34:51.264 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:34:51.334 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:34:51.338 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:34:51.344 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:34:51.354 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:34:51.406 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:34:51.408 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:34:51.422 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:35:01.426 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:35:01.489 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:01.492 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:01.496 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:35:01.502 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:35:01.552 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:01.555 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:01.557 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:35:11.561 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:35:11.617 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:11.621 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:11.624 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:35:11.632 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:35:11.680 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:11.684 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:11.687 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:35:21.691 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:35:21.747 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:21.749 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:21.753 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:35:21.758 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:35:21.812 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:21.815 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:21.818 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:35:31.822 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:35:31.892 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:31.896 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:31.898 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:35:31.903 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:35:31.958 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:31.962 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:31.964 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:35:41.969 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:35:42.027 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:42.029 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:42.033 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:35:42.038 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:35:42.085 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:42.087 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:42.090 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:35:52.094 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:35:52.143 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:52.145 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:52.147 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:35:52.151 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:35:52.199 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:35:52.201 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:35:52.204 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:35:53.767 [DEBUG] [tv.internal.handler.PhilipsTvHandler] - thingDiscovered: DiscoveryResult [thingUID=harmonyhub:hub:HarmonyHub, properties={host=192.168.1.170, name=Harmony Hub}, representationProperty=null, flag=NEW, label=HarmonyHub Harmony Hub, bridgeUID=null, ttl=-1, timestamp=1612096553758]

2021-01-31 13:35:53.770 [DEBUG] [tv.internal.handler.PhilipsTvHandler] - thingDiscovered: DiscoveryResult [thingUID=harmonyhub:hub:HarmonyHub, properties={host=192.168.1.170, name=Harmony Hub}, representationProperty=null, flag=NEW, label=HarmonyHub Harmony Hub, bridgeUID=null, ttl=-1, timestamp=1612096553758]

2021-01-31 13:36:02.207 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:36:02.265 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:02.267 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:02.269 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:36:02.274 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:36:02.321 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:02.323 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:02.325 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:36:12.329 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:36:12.379 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:12.383 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:12.385 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:36:12.392 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:36:12.456 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:12.460 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:12.463 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:36:22.468 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:36:22.527 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:22.529 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:22.531 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:36:22.536 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:36:22.596 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:22.598 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:22.600 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:36:32.604 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:36:32.657 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:32.659 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:32.663 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:36:32.669 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:36:32.714 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:32.717 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:32.719 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:36:42.722 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:36:42.766 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:42.769 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:42.772 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:36:42.777 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:36:42.815 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:42.819 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:42.822 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:36:52.826 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:36:52.868 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:52.871 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:52.875 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:36:52.880 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:36:52.924 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:36:52.927 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:36:52.930 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

2021-01-31 13:37:02.933 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/audio/volume

2021-01-31 13:37:02.977 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:37:02.981 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:37:02.983 [DEBUG] [philipstv.internal.ConnectionManager] - {“muted”:false,“current”:19,“min”:0,“max”:60}

2021-01-31 13:37:02.988 [DEBUG] [philipstv.internal.ConnectionManager] - Target Uri is: https://192.168.1.152:1926/6/activities/current

2021-01-31 13:37:03.036 [DEBUG] [philipstv.internal.ConnectionManager] - ----------------------------------------

2021-01-31 13:37:03.038 [DEBUG] [philipstv.internal.ConnectionManager] - HTTP/1.1 200 OK

2021-01-31 13:37:03.040 [DEBUG] [philipstv.internal.ConnectionManager] - {“component”:{“packageName”:“NA”,“className”:“NA”}}

That’s unfortunate.. at the initial call for receiving all installed applications on the tv we see the apps (e.g. kodi with {“label”:“Kodi”,“intent”:{“component”:{“packageName”:“org.xbmc.kodi”,“className”:“org.xbmc.kodi.Splash”},“action”:“android.intent.action.MAIN”},“order”:0,“id”:“org.xbmc.kodi.Splash-org.xbmc.kodi”,“type”:“app”})

but as you see in the logs the tv returns “NA” when asking for the current running app

Target Uri is: https://192.168.1.152:1926/6/activities/current

{“component”:{“packageName”:“NA”,“className”:“NA”}}

sadly it’s the only way I’m aware of to determine the current running app.

Ty for your help!
maybe in the future!

Sure no problem, appreciate the feedback. You might wanna have a look now and then into the logs if the current app’s get returned, sometimes I also encounter that NA is returned and if I leave the app on the tv and reenter, the tv suddenly starts telling the correct current app.

Hi @bennYx0x Thanks for the binding.

I used it before in OH2.5 and mainly not for turning TV on and off but for controlling the ambient lounge light function. I have a OLED804 which works beautifully with your binding and a PUS8505.

I am running OH3 latest as well as your 3.X latest binding.

What is strange is that although I have WoWLAN activated, the TV (the PUS8505, the OLED804 works fine) after successful configuration gets displayed as offline because the binding doesnt “see” it anymore after I turn the TV off. Just like I have no WoWLAN activated but I have just like for the OLED804.

2021-02-20 23:08:16.092 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000070D7' changed from ONLINE: Standby to OFFLINE: TV is not reachable and should therefore be off.

Current config looks like this

Did I miss anything or did something change here?
For my second Ambilight TV, the 804 it is just working fine with enabled WoWLAN.

Hi @bennYx0x ,

Could you please generate the OH3 binding with the api version 5 ?
I have an older Philips TV model, 49PUS7100.

I encounter the following errors when I use the org.openhab.binding.philipstv-3.1.0-SNAPSHOT-EXPERIMENTAL.jar binding:

2021-02-21 02:31:27.101 [WARN ] [ipstv.internal.service.VolumeService] - Error during handling the VolumeService command REFRESH for Channel volume: Unexpected character (‘<’ (code 60)): expected a valid value (JSON String, Number, Array, Object or token ‘null’, ‘true’ or ‘false’)
at [Source: (String)"

Status page

Not Found

The server has not found anything matching the request URI

You can get technical details here.
Please continue your visit at our home page.

"; line: 1, column: 2] com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false') at [Source: (String)" Status page

Not Found

The server has not found anything matching the request URI

You can get technical details here.
Please continue your visit at our home page.

"; line: 1, column: 2] at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1840) ~[bundleFile:2.10.3] at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:712) ~[bundleFile:2.10.3] at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:637) ~[bundleFile:2.10.3] at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1916) ~[bundleFile:2.10.3] at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:772) ~[bundleFile:2.10.3] at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4356) ~[bundleFile:2.10.3] at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4205) ~[bundleFile:2.10.3] at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3214) ~[bundleFile:2.10.3] at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3182) ~[bundleFile:2.10.3] at org.openhab.binding.philipstv.internal.service.VolumeService.getVolume(VolumeService.java:89) ~[bundleFile:?] at org.openhab.binding.philipstv.internal.service.VolumeService.handleCommand(VolumeService.java:63) [bundleFile:?] at org.openhab.binding.philipstv.internal.handler.PhilipsTvHandler.refreshTvProperties(PhilipsTvHandler.java:381) [bundleFile:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:834) [?:?]

Many thanks,
Cristian

Hey, got the binding working, I think. At least power is working. :slight_smile: Oled65 865
Is there any good way of changing the. Source to hdmi x?

Can’t seem to figure that out.

Tnx for the work you did. :+1:

Edit: worked yesterday, now it’s not. :frowning:

==> /var/log/openhab2/openhab.log <==

2021-03-11 20:00:35.726 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_940853597ECF' to inbox.

==> /var/log/openhab2/events.log <==

2021-03-11 20:00:35.729 [home.event.InboxAddedEvent] - Discovery Result with UID 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_940853597ECF' has been added.

2021-03-11 20:00:35.736 [hingStatusInfoChangedEvent] - 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000020D6' changed from ONLINE: Standby to

Seems like it is discovering the TV more than once, the problem is that I turned the TV on 5 min before it was discovered.

Apparently this project is dead, too bad. If anyone know of an alternative to this on OH3, please let me know.

I’ts not working with my TV at least, i now have 3 “things” discovered as same TV. and its not working properly.

This example it found a 3rd “Device” (same TV)

2021-03-30 07:00:26.354 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000039CF' has been added.

==> /var/log/openhab/openhab.log <==

2021-03-30 07:00:26.354 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_0000000039CF' to inbox.

==> /var/log/openhab/events.log <==

2021-03-30 07:00:26.368 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'philipstv:tv:F00DBABE_AA5E_BABA_DADA_960853597ECF' changed from ONLINE: Standby to ONLINE

2021-03-30 07:00:26.372 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TV_Power2' changed from OFF to ON

==> /var/log/openhab/openhab.log <==

But yet the TV was never ON.

So i can’t use the TV as an indicator to do more stuff, since it shows wrong state.

I now have TV_Power1, TV_Power2, TV_Power3 i would assume the UPNP-id changes from time to time.

I think it is actually working for most of us. You model may have some quirks or different api version.
Sometimes deleting the thing and discover/ pair it again can solve these kind of issues

still working fine here on OH3.

Thank you for reply, I’ve tried deleting and reinstalling, same issues.

they might have changed something, don’t know. Just hope i could get it to work :slight_smile: