grzegorz914 / homebridge-lgwebos-tv

Homebridge plugin for LG WebOS TV, publish as independent external platform accessory.
MIT License
135 stars 15 forks source link

Remote bug #26

Closed Lui5Jacint0 closed 4 years ago

Lui5Jacint0 commented 4 years ago

The remote in version 0.9.67 when pressed key “ok” turn off the tv.

16/05/2020, 12:38:10 [LgWebOsTv] Device: 192.168.1.172 Luis LG TV, setRemoteKey successful, remoteKey: 8, command: ENTER 16/05/2020, 12:38:10 [LgWebOsTv] Device: 192.168.1.172 Luis LG TV, set new Power state successful: STANDBY 16/05/2020, 12:38:10 [LgWebOsTv] Device: 192.168.1.172 Luis LG TV, disconnected.

grzegorz914 commented 4 years ago

please check 0.9.69

Lui5Jacint0 commented 4 years ago

It’s still happening.

MartinQuirke commented 4 years ago

I had the same issue, make sure to restart Homebridge after the update. Fixed it for me

MartinQuirke commented 4 years ago

Sorry, Correction, tested it again there and its happened again. Worked fine for a moment and then using the remote turns the TV to standby

grzegorz914 commented 4 years ago

Hmm. strange behavior, I prepared again new ver. 0.9.70 for test

Lui5Jacint0 commented 4 years ago

Uninstalled the pluggin, reset HOOBS, configured again and add to HomeKit under a different name and now i’m unable to control anything.

16/05/2020, 20:38:06 [LgWebOsTv] Device: 192.168.1.172 Sala LG TV, set new Input successful: YouTube youtube.leanback.v4

Log still ok

serbasan commented 4 years ago

Same here. At the end of the log the TV turns off when using rc. Version:v0.9.79

[5/17/2020, 5:17:46 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, appsFile already exists, not saving [5/17/2020, 5:17:46 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, get Software info successful: { "product_name": "webOSTV 3.5", "model_name": "HE_DTV_W17H_AFADABAA", "sw_type": "FIRMWARE", "major_ver": "05", "minor_ver": "80.55", "country": "ES", "country_group": "EU", "device_id": "38-------:ab", "auth_flag": "N", "ignore_disable": "N", "eco_info": "01", "config_key": "00", "language_code": "es-ES" } [5/17/2020, 5:17:46 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, softwareFile already exists, not saving [5/17/2020, 5:17:46 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, get Services list successful: { "services": [ { "name": "api", "version": 1 }, { "name": "audio", "version": 1 }, { "name": "config", "version": 1 }, { "name": "media.controls", "version": 1 }, { "name": "media.viewer", "version": 1 }, { "name": "pairing", "version": 1 }, { "name": "settings", "version": 1 }, { "name": "system", "version": 1 }, { "name": "system.launcher", "version": 1 }, { "name": "system.notifications", "version": 1 }, { "name": "timer", "version": 1 }, { "name": "tv", "version": 1 }, { "name": "user", "version": 1 }, { "name": "webapp", "version": 2 } ] } [5/17/2020, 5:17:46 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, servicesFile already exists, not saving [5/17/2020, 5:17:46 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, get System info successful: { "features": { "3d": false, "dvr": true }, "receiverType": "dvb", "modelName": "OLED65C7V-Z" } [5/17/2020, 5:17:46 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, systemFile already exists, not saving [5/17/2020, 5:18:05 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, setVolumeSelector successful, remoteKey: 1, command: VOLUMEDOWN [5/17/2020, 5:18:05 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, get current Power state successfull, state: ON [5/17/2020, 5:18:05 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, get current Input successful: com.webos.app.livetv [5/17/2020, 5:18:05 PM] [LgWebOsTv] Device: 192.168.1.120 6, get current Volume level successful: %s [5/17/2020, 5:18:05 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, get current Mute state successful: OFF [5/17/2020, 5:18:05 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, get current Mute state: OFF [5/17/2020, 5:18:05 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, get current Volume level: 5 [5/17/2020, 5:18:05 PM] [LgWebOsTv] LG TV { returnValue: true, state: 'Active', processing: 'Request Power Off' } [5/17/2020, 5:18:05 PM] [LgWebOsTv] LG TV { returnValue: true, state: 'Active', processing: 'Request Active Standby' } [5/17/2020, 5:18:05 PM] [LgWebOsTv] LG TV { returnValue: true, state: 'Active', processing: 'Request Suspend' } [5/17/2020, 5:18:05 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, set new Power state successful: STANDBY [5/17/2020, 5:18:05 PM] [LgWebOsTv] LG TV { returnValue: true, state: 'Active', processing: 'Prepare Suspend' } [5/17/2020, 5:18:05 PM] [LgWebOsTv] Device: 192.168.1.120 LG TV, get current Input successful:

gaudrh commented 4 years ago

Just tested in version 0.9.79 and no matter what action I take using the iPhone's built in remote control app (including adjusting volume via the iPhones physical volume control buttons), the TV turns off.

grzegorz914 commented 4 years ago

Please update again and test

Lui5Jacint0 commented 4 years ago

Still no connection between TV and HomeKit via Home app or remote.

gaudrh commented 4 years ago

Thanks..just tried version 0.9.81 and unfortunately it exhibits the same problem. No matter what action I take using the iPhone's built in remote control app (including adjusting volume via the iPhones physical volume control buttons), the TV turns off. For reference I am using an 2017 LG OLED65C7P

Lui5Jacint0 commented 4 years ago

Could you rollback to the previous version 0.8.9? That was the latest stable version for me.

grzegorz914 commented 4 years ago

just try 0.9.82

gaudrh commented 4 years ago

Just tried 9.8.2. The On and Off functionality in the home app seem to work. However, still having the same issue with the remote app. All actions in the remote app turn off the TV.

grzegorz914 commented 4 years ago

9.84 online

serbasan commented 4 years ago

idem. All actions in the remote app turn off the TV. v0.9.84

Lui5Jacint0 commented 4 years ago

17/05/2020, 16:59:07 [LgWebOsTv] Device: 192.168.1.172 Luis LG TV, connected. 17/05/2020, 16:59:07 [LgWebOsTv] Device: 192.168.1.172 Luis LG TV, get current Power state successful: STANDBY 17/05/2020, 16:59:07 [LgWebOsTv] Device: 192.168.1.172 Luis LG TV, disconnected. 17/05/2020, 16:59:08 [LgWebOsTv] -------- Luis LG TV -------- 17/05/2020, 16:59:08 [LgWebOsTv] Manufacturer: LG Electronics 17/05/2020, 16:59:08 [LgWebOsTv] Model: homebridge-lgwebos-tv 17/05/2020, 16:59:08 [LgWebOsTv] System: undefined 17/05/2020, 16:59:08 [LgWebOsTv] Serialnumber: SN0000004 17/05/2020, 16:59:08 [LgWebOsTv] Firmware: FW0000004 17/05/2020, 16:59:08 [LgWebOsTv] ----------------------------------

Is it normal to say "Standby" follwed by "Disconected"?

grzegorz914 commented 4 years ago

yes, 0.9.85 online

serbasan commented 4 years ago

idem. All actions in the remote app turn off the TV. v0.9.85

Lui5Jacint0 commented 4 years ago

In version 0.9.89 home app started working, but remote still turns off the tv.

serbasan commented 4 years ago

Idem 0.9.89. All actions in the remote app turn off the TV 0.5.57 It works very well.

grzegorz914 commented 4 years ago

Please check 0.9.92

angyp commented 4 years ago

Still broken in 0.9.92 pressed the volume up key TV switches off. reverted to 0.5.57 [5/18/2020, 12:18:28 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, setVolumeSelector successful, remoteKey: 0, command: VOLUMEUP [5/18/2020, 12:18:28 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Mute state: OFF [5/18/2020, 12:18:28 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Volume level: 10 [5/18/2020, 12:18:28 PM] [LgWebOsTv] Lounge Television { returnValue: true, state: 'Active', processing: 'Request Power Off' } [5/18/2020, 12:18:28 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Power state successful: ON [5/18/2020, 12:18:28 PM] [LgWebOsTv] Lounge Television { returnValue: true, state: 'Active', processing: 'Request Active Standby' } [5/18/2020, 12:18:28 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Power state successful: ON [5/18/2020, 12:18:28 PM] [LgWebOsTv] Lounge Television { returnValue: true, state: 'Active', processing: 'Request Suspend' } [5/18/2020, 12:18:28 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Power state successful: ON [5/18/2020, 12:18:28 PM] [LgWebOsTv] Lounge Television { returnValue: true, state: 'Active', processing: 'Prepare Suspend' } [5/18/2020, 12:18:28 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Power state successful: ON [5/18/2020, 12:18:33 PM] [LgWebOsTv] Device: 192.168.15.143 Error: timeout

grzegorz914 commented 4 years ago

I have this behavior not on my 3 TVs. This is very strange behavior, please update to 0.93 and get me the log from Your TV if:

  1. TV OFF power ON with HomeKit app
  2. TV ON power OFF with HomeKit app
  3. TV OFF power ON with RC
  4. TV ON power OFF with RC
  5. TV ON press 'Show settings TV' in HomeKit app
  6. TV ON press volUP button on iPhone
serbasan commented 4 years ago

It works great in v0.9.104. Thank you

Update: It has failed again in this version.

Lui5Jacint0 commented 4 years ago

In the latest version the problem is still there:

18/05/2020, 11:50:32 [LgWebOsTv] Device: 192.168.1.172 Luis LG TV, send RC command successful, command: ENTER 18/05/2020, 11:50:32 [LgWebOsTv] Device: 192.168.1.172 Luis LG TV, setRemoteKey successful, remoteKey: 8 18/05/2020, 11:50:32 [LgWebOsTv] Device: 192.168.1.172 Luis LG TV, set new Power state successful: OFF 18/05/2020, 11:50:32 [LgWebOsTv] Device: 192.168.1.172 Luis LG TV, disconnected.

grzegorz914 commented 4 years ago

what a TV U have? U are on HOOBS?

Lui5Jacint0 commented 4 years ago

LG 47LB650V-ZN Yes i have hoobs.

grzegorz914 commented 4 years ago

OK, the TV is old 2014 with webOS 1.0, the plugin supports official from webOS 2.0. Old TV may be not working correct.

grzegorz914 commented 4 years ago

If U can please post complete log in debug mode from the start Homebridge to OFF TV.

grzegorz914 commented 4 years ago

U can migrate from HOOBS to Homebridge https://github.com/homebridge/homebridge-raspbian-image/wiki/How-To-Migrate-From-HOOBS-To-Homebridge

angyp commented 4 years ago

I have an OLED65C7T and using the RC app turns the TV off. Think it's WebOS 3.5

[5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, send RC command successful, command: VOLUMEUP [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, setVolumeSelector successful, remoteKey: 0 [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Mute state: OFF [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Volume level: 1 [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Power state data: { returnValue: true, state: 'Active', processing: 'Request Power Off' } [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Powgeer state successful: ON [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Power state data: { returnValue: true, state: 'Active', processing: 'Request Active Standby' } [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Powgeer state successful: ON [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Power state data: { returnValue: true, state: 'Active', processing: 'Prepare Active Standby' } [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, get current Powgeer state successful: ON [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, set new Power state successful: OFF [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, disconnected. [5/18/2020, 10:09:43 PM] [LgWebOsTv] Device: 192.168.15.143 Lounge Television, disconnected.

angyp commented 4 years ago

I am running homebridge Version 1.1.0

gaudrh commented 4 years ago

Just tried 9.1.06 and the TV is still turning off when the remote app is used. I have a 2017 LG OLED65C7P.

grzegorz914 commented 4 years ago

OK, 107 is online, please report with debug mode

gaudrh commented 4 years ago

Just tested 9.109. The remote app no longer turns off the TV. Also, the remote app and physical volume buttons now work. However, there is a still a small bug. You must wait a few seconds between button presses in the remote app or else the actions will not register. For example, if you press the up command the first time it works. If you then immediately press the up command again (or any other command), it will not work unless you wait a few seconds between button presses.

grzegorz914 commented 4 years ago

OK its close to find what happens, 110 available for test

Lui5Jacint0 commented 4 years ago

Everything is working fine in version 0.9.109.

gaudrh commented 4 years ago

Just tested 9.1.1.0 and unfortunately all remote app functions are now turning off the TV again.

grzegorz914 commented 4 years ago

ok test 111

gaudrh commented 4 years ago

tested 9.111. All remote app functions are still turning off the TV

grzegorz914 commented 4 years ago

112

gaudrh commented 4 years ago

112 tested.All remote app functions are still turning off the TV

grzegorz914 commented 4 years ago

113

gaudrh commented 4 years ago

As a side note, I rolled back to 0.8.9 and the remote works. The only bug I can find with 0.8.9 is that when you first bring up the remote on the iPhone, you can hit one and only one button and it will work. But after that, the remote stops working for about 7-8 seconds. Then after that 7-8 second wait the remote begins to work perfectly fine.

gaudrh commented 4 years ago

115 still turns off tv when using remote app

gaudrh commented 4 years ago

If it helps, I tried a bunch of different version of the plugin with my TV. Version 0.8.0 is the latest version I could find where both the Home App functionality and the native remote app functionality worked perfectly.

angyp commented 4 years ago

@gaudrh
I agree 0.8.0 isn't too bad both the App's function however the power state is a problem. If you use the TV remote to turn it off the home app never updates even if you close and reopen it.

gaudrh commented 4 years ago

@angyp I just tried the scenario you described and when I turn on and off the TV using the Apple TV remote (via HDMI-CEC), the Home up does update accordingly. Maybe it is a difference in the TV's we use. If though you are referring to using the actual LG TV remote to turn on and off the TV, that is not a scenario I use as I do everything through an Apple TV.

angyp commented 4 years ago

Yeah, different use case. I don't have an Apple TV connected to my LG TV at all. I use the LG TV remote and the home app, RC app to control my TV.