grzegorz914 / homebridge-lgwebos-tv

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

JSON Errors on versions later than 12.15.1 #192

Closed jvanderb closed 10 months ago

jvanderb commented 10 months ago

Homebridge Version 1.7.0 Node.js Version 20.10.0 LG webOS TV Versions above 2.15.1

The below errors appear in my logs periodically with any LG webOS TV versions above 2.15.1. I've tried multiple versions, but the latest version that works without these errors is 2.15.1. Even updating to 12.15.2 causes them.

[1/2/2024, 11:12:40 PM] [LgWebOsTv] Device: x.x.x.x LG TV, Read saved Inputs/Channels Names error: SyntaxError: Unexpected end of JSON input [1/2/2024, 11:12:40 PM] [LgWebOsTv] Device: x.x.x.x LG TV, Read saved Inputs/Channels Target Visibility error: SyntaxError: Unexpected end of JSON input [1/2/2024, 11:12:42 PM] [LgWebOsTv] Device: x.x.x.x LG TV, Prepare accessory error: TypeError: Cannot read properties of undefined (reading 'com.webos.app.livetv')

grzegorz914 commented 10 months ago

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

jvanderb commented 10 months ago

Thank you, that has solved the issue!