alessiodionisi / homebridge-lgtv2

LG webOS plugin for homebridge: https://github.com/nfarina/homebridge
MIT License
29 stars 7 forks source link

homebridge crashes when turning of tv #9

Closed astrapowerrr closed 7 years ago

astrapowerrr commented 7 years ago

tv asks connection request:lg remote app no/yes

with answering with no or yes doesn't make a difference, homebridge crashes

SlowMo1942 commented 7 years ago

i have the same problem, with webos3.

System Log

[TV] This is your LGTv2 key: undefined

Error Log

at Error (native) Error: ENOENT: no such file or directory, open '/var/homebridge/lgtv-10.0.1.4' ^ throw err; //Forgot a callback but don't know where? Use NODE_DEBUG=fs fs.js:60 ...

and so on...

astrapowerrr commented 7 years ago

I have solved this problem with creating the correct folder /var/home bridge/lgtv-
Now it's working on/off. But how to change volume etc? My elgato eve app think my lg is a switch?? Can that be the issue??

alessiodionisi commented 7 years ago

Use the keyFile option to change lgtv2 key file location

WinceWe commented 7 years ago

The problem is that you need root permission for writing into /var directory which the plugin needs to do when the keyFile is created. Just change the keyFile location to home/pi/ for example where that isnt the case. Worked for me.