openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.71k forks source link

Can´t get the LG Binding to work as Infoscreen #2204

Closed patrickse closed 9 years ago

patrickse commented 9 years ago

Hi,

I am struggeling to get the LG binding running with my TV. I can actually can change channels and set a volume but I am not able to start any app. If I try to use a rule to start the web browser on my TV it actually fails with an null pointer.

I guess I am missing a piece. Maybe one of you can help..

2015-02-27 12:03:30.206 [DEBUG] [.o.b.lgtv.internal.LgtvBinding] - Received command (item='LgTvAppExecute', state='Internet', class='class org.openhab.core.library.types.StringType')
2015-02-27 12:03:30.213 [DEBUG] [b.lgtv.internal.LgtvConnection] - send to tv ip=TV command=APP_EXECUTE type=8 val=Internet lgsendparam=
2015-02-27 12:03:30.222 [ERROR] [b.lgtv.internal.LgtvConnection] - Could not send command to device on TV:8080 : java.lang.NullPointerException
2015-02-27 12:03:30.231 [INFO ] [runtime.busevents             ] - LgTvAppExecute received command Internet

Btw. TV is the hostname of my TV and can be resolved to a valid IP.

Rule

rule "infostart"
when
        Item TestButton received command
then
        LgTvAppExecute.sendCommand("Internet")
end
patrickse commented 9 years ago

It looks like my problem is related to #1943 so I will follow this issue and close mine.