TV LG OLED55C1: cpu loop

salut @vegeta0911
Merci d’avoir repris le plugin-webostv . Je l’utilisais tjs après avoir fait quelques bidouilles pour le python2 mais maintenant j’ai de nouvelles erreurs en v4.4 donc j’ai testé ton plugin :wink:

Les dépendances s’installent normalement. Par contre je n’arrive pas a faire la 1ere synchro sans erreurs: l’IP n’est pas trouvée et ca part en cpu loop.

Ma TV est sous WebOS v3.52.50. Je n’ai pas ce menu que tu cites:

LG CONNECT APPS dans le menu de la tv, Menu / Réseau / LG CONNECT APPS / ACTIVE

J’ai réussi a creer l’équipement en forcant l’IP et la clé du plugin précédent. les commandes se créent mais aucune ne fonctionne.

Le ficher scan.json existe et il n’y a pas d’accent:

{
    "result": "ok",
    "count": 1,
    "list": [
        {
            "uuid": "5940975c-3a6e-xxxx-xxxxx-xxxxxxxxx",
            "tv_name": "LG TV OLED55C1",
            "address": "192.168.1.10"
        }
    ]
}

Les logs en debug:

[2025-06-19 13:49:08][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=WebOStvLG function=remove callInstallFunction=1
[2025-06-19 13:49:10][INFO] : Début d'activation du plugin
[2025-06-19 13:49:11][INFO] : Info sur le démon : {"launchable_message":"","launchable":"nok","state":"nok","log":"nok","auto":0}
[2025-06-19 13:49:11][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=WebOStvLG function=install callInstallFunction=1
[2025-06-19 13:50:14][ERROR] : Fichier scan.json introuvable
[2025-06-19 13:51:03][ERROR] : Fichier scan.json introuvable
[2025-06-19 18:58:05][INFO] : Etat TV: 0
[2025-06-19 18:59:03][INFO] : Etat TV: 1
[2025-06-19 18:59:23][DEBUG] : loadCmdFromConf 2
[2025-06-19 18:59:23][DEBUG] : loadCmdFromConf 4 
[2025-06-19 18:59:23][DEBUG] : loadCmdFromConf 5 
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : exist:medias
[2025-06-19 18:59:23][DEBUG] : loadCmdFromConf 2
[2025-06-19 18:59:23][DEBUG] : loadCmdFromConf 4 
[2025-06-19 18:59:23][DEBUG] : loadCmdFromConf 5 
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:23][DEBUG] : modification json type 1:
[2025-06-19 18:59:24][DEBUG] : exist:base
[2025-06-19 18:59:24][DEBUG] : addApps: --name "" listApps
[2025-06-19 18:59:24][DEBUG] : | Impossible de continuer la récupération 
[2025-06-19 19:00:10][INFO] : Etat TV: 1
[2025-06-19 19:01:10][DEBUG] : scan : 
[2025-06-19 19:01:10][INFO] : lgtvinfo: null
[2025-06-19 19:02:04][DEBUG] : scan : 
[2025-06-19 19:02:04][INFO] : lgtvinfo: null
[2025-06-19 19:02:05][DEBUG] : auth : /var/www/html/plugins/WebOStvLG/core/class/../../resources/venv/bin/python3 /var/www/html/plugins/WebOStvLG/resources/venv/bin/lgtv auth 192.168.1.10 "LG TV OLED55C1"
[2025-06-19 19:02:07][DEBUG] : tv info : 
[2025-06-19 19:02:07][DEBUG] : tv info : LG TV OLED55C1 55c1.sweethome.fr
[2025-06-19 19:02:07][DEBUG] : loadCmdFromConf 2
[2025-06-19 19:02:07][DEBUG] : loadCmdFromConf 4 
[2025-06-19 19:02:07][DEBUG] : loadCmdFromConf 5 
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : exist:medias
[2025-06-19 19:02:07][DEBUG] : loadCmdFromConf 2
[2025-06-19 19:02:07][DEBUG] : loadCmdFromConf 4 
[2025-06-19 19:02:07][DEBUG] : loadCmdFromConf 5 
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : modification json type 1:
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : no exist
[2025-06-19 19:02:07][DEBUG] : exist:base
[2025-06-19 19:02:08][DEBUG] : addApps: --name "LG TV OLED55C1" listApps
[2025-06-19 19:02:08][DEBUG] : |  json: listInputs
[2025-06-19 19:02:44][DEBUG] : scan : 
[2025-06-19 19:02:44][INFO] : lgtvinfo: null
[2025-06-19 19:02:46][DEBUG] : auth : /var/www/html/plugins/WebOStvLG/core/class/../../resources/venv/bin/python3 /var/www/html/plugins/WebOStvLG/resources/venv/bin/lgtv auth 192.168.1.10 "LG TV OLED55C1"
[2025-06-19 19:02:51][DEBUG] : tv info : 
[2025-06-19 19:02:51][DEBUG] : tv info : LG TV OLED55C1 55c1.sweethome.fr
[2025-06-19 19:02:51][DEBUG] : loadCmdFromConf 2
[2025-06-19 19:02:51][DEBUG] : loadCmdFromConf 4 
[2025-06-19 19:02:51][DEBUG] : loadCmdFromConf 5 
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : exist:medias
[2025-06-19 19:02:51][DEBUG] : loadCmdFromConf 2
[2025-06-19 19:02:51][DEBUG] : loadCmdFromConf 4 
[2025-06-19 19:02:51][DEBUG] : loadCmdFromConf 5 
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : modification json type 1:
[2025-06-19 19:02:51][DEBUG] : exist:base
[2025-06-19 19:02:51][DEBUG] : addApps: --name "LG TV OLED55C1" listApps
[2025-06-19 19:03:05][DEBUG] : |  json: listInputs
[2025-06-19 19:03:26][DEBUG] : scan : 
[2025-06-19 19:03:26][INFO] : lgtvinfo: null

Page santé de ma VM de test:


Merci :wink:

Salut @rootard
Effectivement la TV n’est pas toute jeune :smile: .
a tu ce fichier 3rdparty/info.json et ça /3rdparty/config.json ?

Le plugin fonctionne que si cette appli et sur la tv

Mais je peu essayer de t’aider, Pour voir pourquoi ça fonctionne pas sur ta tv.

Salut

Effectivement la TV n’est pas toute jeune :smile: .

Elle a 3 ans c’est pas une antiquité non plus!
Tu utilises une lib différente de celle du plugin précédent?

a tu ce fichier 3rdparty/info.json et ça /3rdparty/config.json ?

info.json

{
    "closing": {
        "code": 1006,
        "reason": "Going away"
    }
}

config.json

{"LG TV OLED55C1": {"key": null, "mac": "74:e6:xx:xx:xx:xx", "ip": "192.168.1.10", "hostname": "55c1.sweethome.fr"}}

LG CONNECT APPS
Le plugin fonctionne que si cette appli et sur la tv

J’ai cherché dans leur appstore mais je ne l’ai pas trouvé :upside_down_face:

Mais je peu essayer de t’aider, Pour voir pourquoi ça fonctionne pas sur ta tv.

Merci pour ta proposition, on peut essayer de se faire un Google Meet samedi aprèm si tu as du temps? Dis moi

c’est une plaisanterie, désoler si tu la mal pris.

oui toute a fait c’est cette lib klattimer/LGWebOSRemote: Command line webOS remote for LGTVs

Non, pas samedi, kermesse oblige avec mes enfants, dimanche ?
ça sera la première fois que j’utilise Google Meets, je ne l’ai jamais fait auparavant

et la key est très important, c’est elle qui joint tv pour le contrôle. et je sais aussi que la dépendance que j’utilise n’est pas fonctionnelle sur toute les TV.

mais je n’ai pas trouvé mieux a l’époque, pour le passage en Debian 12

Pas de souci je l’ai pas mal pris t’inquiete. Je change pas de TV tous les jours non plus hein :wink:
Effectivement ca m’étonnerait que ca marche avec mon FW 3.x:

All devices with firmware major version 4, product name « webOSTV 2.0 »

Je ne suis pas sur de mon emploi du temps pour dimanche. je vais faire qques tests samedi avec la commande lgtv et je te dirai ce que j’obtiens

Merci à toi

1 « J'aime »

Résultat des courses ca fonctionne :wink:


jeedom@jeedom-test> lgtv  auth 192.168.1.10 'LG TV OLED55C1'
Please accept the pairing request on your LG TV
{"closing": {"code": 1000, "reason": ""}}
Wrote config file: /home/jeedom/.lgtv/config.json
jeedom@jeedom-test> less /home/jeedom/.lgtv/config.json
jeedom@jeedom-test> lgtv  --name 'LG TV OLED55C1' audioStatus
{"type": "response", "id": "status_0", "payload": {"returnValue": true, "volumeStatus": {"activeStatus": true, "adjustVolume": true, "maxVolume": 100, "muteStatus": true, "volume": 24, "mode": "normal", "soundOutput": "tv_speaker"}, "callerId": "com.webos.service.apiadapter", "mute": true, "volume": 24}}
{"closing": {"code": 1000, "reason": ""}}
jeedom@jeedom-test> lgtv  --name 'LG TV OLED55C1' getTVChannel
{"type": "response", "id": "channels_0", "payload": {"returnValue": true, "channelId": "1_25_14_14_2_516_8442", "physicalNumber": 25, "isScrambled": false, "channelTypeName": "Terrestrial Digital TV", "isLocked": false, "dualChannel": {"dualChannelId": null, "dualChannelTypeName": null, "dualChannelTypeId": 255, "dualChannelNumber": null}, "isChannelChanged": false, "channelModeName": "Terrestrial", "channelNumber": "14", "isFineTuned": false, "channelTypeId": 1, "isDescrambled": false, "isReplaceChannel": false, "isSkipped": false, "isHEVCChannel": false, "hybridtvType": "HBBTV", "isInteractiveRestrictionChannel": false, "isInvisible": false, "favoriteGroup": null, "channelName": "CNEWS", "channelModeId": 0, "signalChannelId": "2_516_8442"}}
{"closing": {"code": 1000, "reason": ""}}

Le pairing initial avec lgtv scan est très lent donc je suppose qu’hier j’avais pas attendu assez longtemps…
Par contre j’ai une erreur javascript sur la page de l’équipement:


http://192.168.1.92/core/php/getResource.php?file=core/js/plugin.template.js&md5=78736bbc66db4533c07fa543a19b1d91&lang=fr_FR  ligne: 649	message: TypeError: _target.closest(...) is null

Certains icones sont vides et d’autres sont un peu décalés dans le widget:

Cool.

Pour les icônes dans application, c’est des icônes que je connais pas.
Car mois j’ai la version 5 de LG est donc les nom des applications son sûrement pas les mêmes que les tiens.
Fait f12 dans le navigateur est tu dois voir des not found sur les boutons ou il trouve pas l’image.
Il faut les recensés pour que je l’ai l’intègre.
Car impossible de prendre l’image a partir de la tv.

Voilà ce que ça donne chez moi