Samsung TV binding wont change app

WHen i rerquest to load netflix (or any other app) an error is thrown

2021-10-26 09:10:00.282 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'TV_SourceApp' received command plex

2021-10-26 09:10:00.300 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'TV_SourceApp' predicted to become plex

2021-10-26 09:10:00.310 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TV_SourceApp' changed from netflix to plex

==> /opt/openhab/userdata/logs/openhab.log <==

2021-10-26 09:10:00.308 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.samsungtv.internal.handler.SamsungTvHandler@18e279f': null

java.lang.NullPointerException: null

	at org.openhab.binding.samsungtv.internal.protocol.RemoteControllerWebSocket.sendSourceApp(RemoteControllerWebSocket.java:338) ~[?:?]

	at org.openhab.binding.samsungtv.internal.service.RemoteControllerService.handleCommand(RemoteControllerService.java:280) ~[?:?]

	at org.openhab.binding.samsungtv.internal.handler.SamsungTvHandler.handleCommand(SamsungTvHandler.java:115) ~[?:?]

	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

	at org.openhab.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:154) [bundleFile:?]

	at org.openhab.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [bundleFile:?]

	at com.sun.proxy.$Proxy947.handleCommand(Unknown Source) [?:?]

	at org.openhab.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:80) [bundleFile:?]

	at org.openhab.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:48) [bundleFile:?]

	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

	at org.openhab.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:154) [bundleFile:?]

	at org.openhab.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	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:829) [?:?]

here is my setup…

Group   gLivingRoomTV    "Living room TV" <television>  (GF_Living)                             
 {
     ga="TV"
     [
         availableChannels="101=101=BBC,102=Channel2=BBC Two,103=Channel3=ITV",
         availableApplications="youtube=YouTube:YouTube,netflix=Netflix:Netflix,plex=Plex=Plex" 
     ]
 }      
Switch  TV_Power         "Power"                               (gLivingRoomTV)   { ga="tvPower", channel="samsungtv:tv:livingroom:power" }
Dimmer  TV_Volume        "Volume"         <soundvolume>        (gLivingRoomTV)   { ga="tvVolume", channel="samsungtv:tv:livingroom:volume" }
Switch  TV_Mute          "Mute"           <soundvolume_mute>   (gLivingRoomTV)   { ga="tvMute", channel="samsungtv:tv:livingroom:mute" }
Number  TV_SourceId      "Source Id"                           (gLivingRoomTV)   { channel="samsungtv:tv:livingroom:sourceId" }
String  TV_SourceName    "Source Name"                         (gLivingRoomTV)   { ga="tvInput", channel="samsungtv:tv:livingroom:sourceName" }
String  TV_SourceApp     "Source App"                          (gLivingRoomTV)   { ga="tvApplication", channel="samsungtv:tv:livingroom:sourceApp" }
String  TV_ProgramTitle  "Program Title"                       (gLivingRoomTV)   { channel="samsungtv:tv:livingroom:programTitle" }
String  TV_ChannelName   "Channel Name"                        (gLivingRoomTV)   { channel="samsungtv:tv:livingroom:channelName"}
Number  TV_ChannelNumber "Channel Number"                      (gLivingRoomTV)   { ga="tvChannel", channel="samsungtv:tv:livingroom:channel"}
String  TV_KeyCode       "Key Code"                            (gLivingRoomTV)   { channel="samsungtv:tv:livingroom:keyCode" }
Switch  TV_ArtMode       "Art Mode"                            (gLivingRoomTV)   { channel="samsungtv:tv:livingroom:artMode" }

Can anyone help?

Hi!

Did you check this post?

Thanks Tom,

i installed this updated binding and it no longer causes the error, however it also does nothing when i change the sourceApp channel, theres no error but the app does not open, thanks anyway.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.