hobbyquaker/node-red-contrib-lgtv

LG TV keeps asking for accepting remote app

gbarocsi opened this issue · 4 comments

Hi,
My LG TV nano793 keeps asking me to accept a remote app every time I turn the TV ON.
It's pretty annoying.
Is it a known bug or something?
In Node-red the control node is used, and it is in a green and connected state.
Thanks!

Same issue on an OLED65B9DLA running on webOS 4.9.0-53804 // Softwareversion 05.00.15

Except of this returning question everything's running fine.

It even doesn't matter if you hit yes or no in the dialog - the Node is still working as expected.

Message on the LG TV disappears after about 2 minutes. Nevertheless a bit annoying :-\

I am have just started having the same issue.
I had Node-RED and node-red-contrib-lgtv running on a Raspberry Pi4 with no issues for about a year.
I moved (copy/paste) the flow over to a Pi3 running Node-RED in a docker container, now every time the TV starts I am asked to accept the remote app.

LG 65SM8500PLA Version 05.30.10

New here but same problem. UT64 series monitor.
I have WOL working and trying to use this to just turn off the monitor.
If I don't approve I loose the connection.
In node red I see status as "Prompt"

It looks like this is an issue caused by a delay in retrieving the client key. Im not sure if it makes it worse, but this first became an issue for me when I tried using this with multiple screens. If you provide the client key directly then it works fine every time.
var lgtv = require("lgtv2")({ url: 'ws://192.168.1.181:3000', clientKey: '12345678910abcdefg', saveKey(key){ console.log(key) } });

I guess the resolution could be to await the key retrieval and verify it exists before attempting the connection maybe? I have just put my keys directly into the config for now