grzegorz914 / homebridge-lgwebos-tv

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

Visibility error: SyntaxError #191

Closed badgertastic closed 9 months ago

badgertastic commented 9 months ago

2.16.3

1/2/2024, 7:50:04 PM] [homebridge-lgwebos-tv] Device: 10.0.20.120 Media Room WebOS, Connected.
[1/2/2024, 7:50:04 PM] [homebridge-lgwebos-tv] -------- Media Room WebOS --------
[1/2/2024, 7:50:04 PM] [homebridge-lgwebos-tv] Manufacturer: LG Electronics
[1/2/2024, 7:50:04 PM] [homebridge-lgwebos-tv] Model: OLED77CX6LA
[1/2/2024, 7:50:04 PM] [homebridge-lgwebos-tv] System: webOSTV 5.0
[1/2/2024, 7:50:04 PM] [homebridge-lgwebos-tv] Serialnr: redacted
[1/2/2024, 7:50:04 PM] [homebridge-lgwebos-tv] Firmware: 04.50.52
[1/2/2024, 7:50:04 PM] [homebridge-lgwebos-tv] ----------------------------------
[1/2/2024, 7:50:04 PM] [homebridge-lgwebos-tv] Device: 10.0.20.120 Media Room WebOS, Read saved Inputs/Channels Target Visibility error: SyntaxError: Unexpected end of JSON input
[1/2/2024, 7:50:06 PM] [homebridge-lgwebos-tv] Device: 10.0.20.120 Media Room WebOS, Prepare accessory error: TypeError: Cannot read properties of undefined (reading 'airplay')

Downgraded to v2.14.12. Been unstable since. And now not responding at all. Thanks.

grzegorz914 commented 9 months ago

Just go to Home app and try to set input visibility for some input and the error will gone.

badgertastic commented 9 months ago

You mean to toggle the radio button for an input in the Home app device config screen?

oddly, there are no radio buttons. All the inputs are listed without radio buttons shown at all!

grzegorz914 commented 9 months ago

Yes

badgertastic commented 9 months ago

IMG_0349

grzegorz914 commented 9 months ago

Go to Homebridge/lgwebosTv/folder and remove inputsVisibility and inputsNammes files and restart plugin

badgertastic commented 9 months ago

Ok I deleted the devices in home, removed the HomeKit caches (there were some duplicates), removed the entire contents of .homebridge/lgwebosTv started the plugin. Repaired 2 TVs. Added back to Home. Redded to scenes. Phew.. so far so good. Thanks.

grzegorz914 commented 9 months ago

I think this issue is solved, if no free to open it again.