LG TV Integration

I was seeking to integrate my LG TV and found a number of threads on the subject. When I downloaded the device code (V2.5) referenced in one of them and imported it into Hubitat I got this error, the other came in ok. It looks as if there is missing data as line 23 is before the actual code.

No signature of method: Script1.definition() is applicable for argument types: (java.util.LinkedHashMap) values: [[name:LG Smart TV Discovery 2012+, namespace:ekim, author:Sam Lalor, ...]] on line 23

the other loaded ok.

The device code was available from here

and the thread discussing it was here

Obviously a number of people got this to work and I wondered as a complete newbie if I was doing anything wrong.

Did you install BOTH application and driver?

Check first post in the thread you referenced above


Apologies it was it clear in my post but the error occurred when I tried to import and save the second device driver.

I’ve had better luck with integrating directly to HomeKit and letting apple manage my TV. I control my TV on and off with my HomePod minis.