alessiodionisi / homebridge-lgtv2

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

TV turning on fine but have to turn tv on twice in home app before tv will turn on #1

Closed m11rphy closed 7 years ago

m11rphy commented 7 years ago

TV turning on fine but have to turn tv on twice in home app before tv will turn on. I basically have to tell the tv to turn on then turn off before it will come on. the home app then reports the tv as off when its home

m11rphy commented 7 years ago

/this made the tv turn on

[9/13/2016, 9:48:26 PM] [TV] LGTv2 connecting [9/13/2016, 9:48:27 PM] [TV] LGTv2 connected [9/13/2016, 9:48:42 PM] [TV] LGTv2 disconnected

alessiodionisi commented 7 years ago

I'm improving the plugin, soon I will release an update

m11rphy commented 7 years ago

Thanks for letting me know, this is a great plugin and i appreciate all the effort you are putting into this. Would be amazing if we could load netflix and plex

alessiodionisi commented 7 years ago

Open Netflix and other apps is possibile with the API! I also managed to handle the volume but unfortunately I had to set the device as a light bulb in HomeKit 😃

ebugakov commented 7 years ago

I've got errors like this when TV is switched off

[9/20/2016, 8:56:46 PM] [LG TV] LGTv2 connecting [9/20/2016, 8:56:49 PM] [LG TV] LGTv2 error Error: connect EHOSTUNREACH 192.168.254.33:3000

And like this, when it's switched on with a remote control:

[9/20/2016, 8:57:18 PM] [LG TV] LGTv2 connecting [9/20/2016, 8:57:19 PM] [LG TV] LGTv2 error Error: connect ECONNREFUSED 192.168.254.33:3000

Any thoughts how to avoid this?

Thanks!

toshibochan commented 7 years ago

I can turn off the tv but not on! Any idea?

toshibochan commented 7 years ago

@ebugakov Same thing happens to my to. Need help!!

alessiodionisi commented 7 years ago

@ebugakov @toshibochan I'm trying to fix wake on lan

toshibochan commented 7 years ago

That's great! Thanks @alessiodionisi!!!

toshibochan commented 7 years ago

@alessiodionisi any progress on fix wake on LAN?

beer22 commented 7 years ago

I get the same problem with @ebugakov . How to solve this problem?

toshibochan commented 7 years ago

Maybe the tv no stay on standby mode! I don't see any option on settings for standby mode.

m11rphy commented 7 years ago

@alessiodionisi any update budy, this is so close to being perfect

alessiodionisi commented 7 years ago

Hello guys, the problem is wake_on_lan module. I'm working to fix it or write a custom WOL module 😄

m11rphy commented 7 years ago

@alessiodionisi how's it going buddy ?

toshibochan commented 7 years ago

Thanks @alessiodionisi! Hope you can fix the bug!!

cbarratt commented 7 years ago

Random side note, I'm currently using https://github.com/AlexGustafsson/homebridge-wol/blob/master/index.js

this works fine for turning on the TV, it appears to use the wake-on-lan package :)

I'm using this plugin with a node shell script that executes the turn off:

var lgtv = require("lgtv2")({
  url: 'ws://192.168.0.60:3000'
});

lgtv.on('connect', function () {
  console.log('Connected');

  lgtv.request('ssap://system/turnOff', function (err, res) {
    lgtv.disconnect();
  });
});
alessiodionisi commented 7 years ago

I'm rewriting much code of the plugin to solve the problems