Impossibilité de synchroniser les CPLS devolo

Les dépendances se sont bien installés :



BASE_DIR: /var/www/html/plugins/devolo_cpl/resources
======================================================================
== 09/03/2025 10:40:49 == Installation des dépendances de devolo_cpl
======================================================================
[  5% ] : Clean apt...
[  9% ] : Clean apt : [  OK  ]
[ 10% ] : Update apt...
[ 19% ] : Update apt : [  OK  ]
[ 20% ] : Init python3 & prerequisites...
[ 31% ] : Init python3 & prerequisites : [  OK  ]
[ 32% ] : Init pyEnv...
** PyEnv not required: 3.9.2 >= 3.9 **
** python3 path: python3 **
[ 43% ] : Init pyEnv : [  OK  ]
[ 44% ] : Setting up virtual environment...
** Version of python in VENV: Python 3.9.2
[ 79% ] : Setting up virtual environment : [  OK  ]
[ 80% ] : Install the required python packages...
[ 89% ] : Install the required python packages : [  OK  ]
[ 90% ] : Summary of installed packages...
anyio==4.8.0
certifi==2025.1.31
charset-normalizer==3.4.1
devolo-plc-api==1.4.1
exceptiongroup==1.2.2
h11==0.14.0
httpcore==1.0.7
httpx==0.28.1
idna==3.10
ifaddr==0.2.0
importlib_metadata==8.6.1
pkg_resources==0.0.0
protobuf==6.30.0
requests==2.32.3
segno==1.6.1
sniffio==1.3.1
typing_extensions==4.12.2
urllib3==2.3.0
zeroconf==0.146.1
zipp==3.21.0
[ 99% ] : Summary of installed packages : [  OK  ]
[100% ] : Terminé !
======================================================================
==OK== Installation Réussie
======================================================================

Voici les logs du démon :

[2025-03-09 10:44:19] INFO [devolo_cpld       ] ┌─Start demond
[2025-03-09 10:44:19] INFO [devolo_cpld       ] │ Log level      : info
[2025-03-09 10:44:19] INFO [devolo_cpld       ] │ Socket port    : 34741
[2025-03-09 10:44:19] INFO [devolo_cpld       ] │ Socket host    : localhost
[2025-03-09 10:44:19] INFO [devolo_cpld       ] │ PID file       : /tmp/jeedom/devolo_cpl/daemon.pid
[2025-03-09 10:44:19] INFO [devolo_cpld       ] │ Apikey         : EpmWrQFBjene0hdFqwp7A0y5PqRD88KIF3ojV71SIsw7Rnmj8xg9fALVdABsprLA
[2025-03-09 10:44:19] INFO [devolo_cpld       ] └ Callback       : http://127.0.0.1:80/plugins/devolo_cpl/core/php/jeedevolo_cpl.php
[2025-03-09 10:44:19] INFO [jeedom            ] Writing PID 1646137 to /tmp/jeedom/devolo_cpl/daemon.pid
[2025-03-09 10:44:19] INFO [jeedom            ] Init request module v2.32.3
[2025-03-09 10:44:19] INFO [jeedom            ] Socket interface started
[2025-03-09 10:44:19] INFO [jeedom            ] LoopNetServer Thread started
[2025-03-09 10:44:19] INFO [jeedom            ] Listening on: [localhost:34741]
[2025-03-09 10:45:05] INFO [jeedom            ] Client connected to [127.0.0.1:33670]
[2025-03-09 10:45:05] INFO [jeedom            ] b'{"action":"getRates","ip":"","apikey":"EpmWrQFBjene0hdFqwp7A0y5PqRD88KIF3ojV71SIsw7Rnmj8xg9fALVdABsprLA"}'
[2025-03-09 10:45:05] INFO [jeedom            ] Message read from socket: b'{"action":"getRates","ip":"","apikey":"EpmWrQFBjene0hdFqwp7A0y5PqRD88KIF3ojV71SIsw7Rnmj8xg9fALVdABsprLA"}'
[2025-03-09 10:45:05] INFO [jeedom            ] Client disconnected from [127.0.0.1:33670]
[2025-03-09 10:45:05] INFO [devolo_cpld       ] ============== begin getRates ==============
[2025-03-09 10:45:05] INFO [devolo_cpld       ] =============== end getRates ===============

Mais quand lance la synchronisation; j ai ces messages :

Puis je perds la visu des onglets pour la synchronisation !

Et pourtant il semblerait bien que la synchronisation récupère bien mes CPLS …?!

[2025-03-09 10:46:41] INFO [devolo_synchronize] ==================== START ====================
[2025-03-09 10:46:44] INFO [devolo_synchronize] 4 devices found.
[2025-03-09 10:46:49] INFO [_client           ] HTTP Request: GET http://192.168.1.148:14791/3bbb63d8393a9f27/plcnetapi/v0/GetNetworkOverview "HTTP/1.1 200 OK"
[2025-03-09 10:46:50] INFO [_client           ] HTTP Request: GET http://192.168.1.144:14791/f62d47db77d4f817/plcnetapi/v0/GetNetworkOverview "HTTP/1.1 200 OK"
[2025-03-09 10:46:50] INFO [_client           ] HTTP Request: GET http://192.168.1.172:14791/lOe4EqafzYZroSKy/plcnetapi/v0/GetNetworkOverview "HTTP/1.1 200 OK"
[2025-03-09 10:46:50] INFO [_client           ] HTTP Request: GET http://192.168.1.85:14791/X6J06YBOkBNzPU9x/plcnetapi/v0/GetNetworkOverview "HTTP/1.1 200 OK"
[2025-03-09 10:46:50] INFO [devolo_synchronize] ===================== END =====================
[2025-03-09 10:47:11] INFO [devolo_synchronize] ==================== START ====================
[2025-03-09 10:47:14] INFO [devolo_synchronize] 4 devices found.
[2025-03-09 10:47:20] INFO [_client           ] HTTP Request: GET http://192.168.1.148:14791/3bbb63d8393a9f27/plcnetapi/v0/GetNetworkOverview "HTTP/1.1 200 OK"
[2025-03-09 10:47:20] INFO [_client           ] HTTP Request: GET http://192.168.1.144:14791/f62d47db77d4f817/plcnetapi/v0/GetNetworkOverview "HTTP/1.1 200 OK"
[2025-03-09 10:47:21] INFO [_client           ] HTTP Request: GET http://192.168.1.85:14791/X6J06YBOkBNzPU9x/plcnetapi/v0/GetNetworkOverview "HTTP/1.1 200 OK"
[2025-03-09 10:47:21] INFO [_client           ] HTTP Request: GET http://192.168.1.172:14791/lOe4EqafzYZroSKy/plcnetapi/v0/GetNetworkOverview "HTTP/1.1 200 OK"
[2025-03-09 10:47:21] INFO [devolo_synchronize] ===================== END =====================

Hello,
Il me faudrait une copie de la page santé et les log en mode debug.

Le texte « Aucun équipement template … » est une erreur. Il faut lire « Aucun équipement Devolo … » Je corrigerai ce texte dans la prochaine mise à jour.

Salut et merci pour ton retour très rapide !


devolo_cpl_daemon.txt (9,6 Ko)
devolo_cpl.txt (93,7 Ko)
devolo_cpl_synchronize.txt (1,8 Ko)

Bonsoir
As tu pu trouver le problème ?
En te remerciant par avance
Bonne soirée

Hello,
Désolé, j’ai été occupé durant la journée.

J’avais demandé la page de santé pour voir sur quel hardware tourne ton Jeedom car il y a des config particulières à faire si l’on est sur Proxmox. Mais ce n’est pas ton cas.

A la lecture des log, je pense que tes équipements Devolo sont correctements créés mais qu’il y a un problème PHP à l’affichage de la page.

Peux-tu effectuer les actions suivantes:

  1. Ouvrir la page des logs et afficher la contenu de http.error
  2. Cliquer sur le bouton 'Vider`
  3. Ouvrir la page du plugin Devolo_CPL
  4. Me transmettre le contenu du fichier de log http.error

Merci

Pas de souci !
désolé d avoir insisté !
Je te fais cela demain.
Bonne soirée

1 « J'aime »

Salut
J ai dû le supprimer et le réinstaller car je n avais aucune donnée sur la page http logs
Par contre a l installation de celui ci, le plugin s est mit en carafe est impossible de le supprimer …?!


http.error.txt (660,6 Ko)

Il y a des messages qui font penser à des problèmes de droits sur les fichiers.

Tente:

  1. Menu: Réglages => Système => Configuration
  2. Tab >_OS/DB
  3. <_Rétablissement des droits des dossiers et fichiers: cliquer sur le bouton >_Vérifier

Tu pourras alors refaire une tentative…

Je viens de le faire mais je ne peux toujours rien faire sur le plugin !

Très bizarre tout ça…

Tente d’aller sur la page Centre de mise à jour et de forcer la réinstallation du plugin

1 « J'aime »

C est bon, que souhaites tu que je réalise comme opération?

EDIT: j ai bien l interface du plugin !

Nouvle échec de synchronisation

2034|[Mon Mar 10 08:32:56.537456 2025] [php7:warn] [pid 2929672:tid 2929672] [client 192.168.1.90:49611] PHP Warning:  The use statement with non-compound name 'log' has no effect in /var/www/html/plugins/jeemate/core/api/jeemate_polling.api.php on line 21
2035|[Mon Mar 10 08:42:35.598368 2025] [php7:notice] [pid 2782377:tid 2782377] [client ::1:57514] PHP Notice:  Undefined property: stdClass::$tydomDat in /var/www/html/plugins/jeedore/core/php/callback.php on line 491
2036|[Mon Mar 10 08:43:24.784305 2025] [php7:notice] [pid 2929733:tid 2929733] [client 192.168.1.141:55108] PHP Notice:  Undefined variable: fmtmsg in /var/www/html/plugins/cloudsyncpro/core/class/cloudsyncpro.class.php on line 395
2037|[Mon Mar 10 08:43:32.777396 2025] [php7:notice] [pid 2892730:tid 2892730] [client 192.168.1.141:55110] PHP Notice:  Undefined variable: fmtmsg in /var/www/html/plugins/cloudsyncpro/core/class/cloudsyncpro.class.php on line 395
2038|[Mon Mar 10 08:52:35.597699 2025] [php7:notice] [pid 2929881:tid 2929881] [client ::1:52618] PHP Notice:  Undefined property: stdClass::$tydomDat in /var/www/html/plugins/jeedore/core/php/callback.php on line 491
2039|[Mon Mar 10 08:53:19.553927 2025] [php7:warn] [pid 2972309:tid 2972309] [client 192.168.1.209:39388] PHP Warning:  The use statement with non-compound name 'log' has no effect in /var/www/html/plugins/jeemate/core/api/jeemate.api.php on line 26
2040|[Mon Mar 10 09:04:48.444011 2025] [php7:notice] [pid 2439957:tid 2439957] [client ::1:39082] PHP Notice:  Undefined property: stdClass::$tydomDat in /var/www/html/plugins/jeedore/core/php/callback.php on line 491
2041|[Mon Mar 10 09:13:46.276994 2025] [php7:warn] [pid 2439957:tid 2439957] [client 152.228.165.102:0] PHP Warning:  A non-numeric value encountered in /var/www/html/plugins/ash/core/class/ash_BrightnessController.class.php on line 90
2042|[Mon Mar 10 09:13:46.279407 2025] [php7:warn] [pid 2439957:tid 2439957] [client 152.228.165.102:0] PHP Warning:  A non-numeric value encountered in /var/www/html/plugins/ash/core/class/ash_ColorTemperatureController.class.php on line 92
2043|[Mon Mar 10 09:14:49.128529 2025] [php7:error] [pid 2892720:tid 2892720] [client 192.168.1.141:55482] PHP Fatal error:  Uncaught Error: Call to a member function isManageable() on null in /var/www/html/plugins/devolo_cpl/core/class/devolo_cpl.class.php:739\nStack trace:\n#0 /var/www/html/plugins/devolo_cpl/core/class/devolo_cpl.class.php(698): devolo_cpl->isManageable()\n#1 /var/www/html/core/class/DB.class.php(250): devolo_cpl->postSave()\n#2 /var/www/html/core/class/eqLogic.class.php(1053): DB::save()\n#3 /var/www/html/plugins/devolo_cpl/core/class/devolo_cpl.class.php(356): eqLogic->save()\n#4 /var/www/html/plugins/devolo_cpl/core/class/devolo_cpl.class.php(385): devolo_cpl::createOrUpdate()\n#5 /var/www/html/plugins/devolo_cpl/core/ajax/devolo_cpl.ajax.php(41): devolo_cpl::syncDevolo()\n#6 {main}\n  thrown in /var/www/html/plugins/devolo_cpl/core/class/devolo_cpl.class.php on line 739, referer: http://192.168.1.12/index.php?v=d&m=devolo_cpl&p=devolo_cpl&id=devolo_cpl
2044|[Mon Mar 10 09:16:29.908712 2025] [php7:warn] [pid 2929881:tid 2929881] [client 192.168.1.90:49645] PHP Warning:  The use statement with non-compound name 'log' has no effect in /var/www/html/plugins/jeemate/core/api/jeemate_polling.api.php on line 21
2045|[Mon Mar 10 09:16:30.891535 2025] [php7:warn] [pid 2929881:tid 2929881] [client 192.168.1.90:49645] PHP Warning:  The use statement with non-compound name 'log' has no effect in /var/www/html/plugins/jeemate/core/api/jeemate_polling.api.php on line 21
2046|[Mon Mar 10 09:17:16.662910 2025] [php7:warn] [pid 2439958:tid 2439958] [client 192.168.1.141:55528] PHP Warning:  rmdir(/var/www/html/core/class/../../plugins/devolo_cpl/resources/venv/bin): Directory not empty in /var/www/html/core/php/utils.inc.php on line 645
2047|[Mon Mar 10 09:17:16.961264 2025] [php7:warn] [pid 2439958:tid 2439958] [client 192.168.1.141:55528] PHP Warning:  rmdir(/var/www/html/core/class/../../plugins/devolo_cpl/resources/venv): Directory not empty in /var/www/html/core/php/utils.inc.php on line 645

Peux-tu

  1. Vérifier que le niveau de log du plugin est toujours debug
  2. Vider les fichiers de logs Devolo* et http.error
  3. Relancer une installation de dépendances
  4. Relancer le daemon
  5. Relancer une synchro?
  6. Tu pourras alors me fournir les fichiers de log Devolo* et http.error

voila:
devolo_cpl_update.txt (1,4 Ko)
devolo_cpl_synchronize.txt (12,0 Ko)
devolo_cpl_daemon.txt (309,3 Ko)
devolo_cpl.txt (5,0 Ko)

http.error:

0000|[Mon Mar 10 09:34:21.214985 2025] [php7:error] [pid 2929733:tid 2929733] [client 192.168.1.141:55845] PHP Fatal error:  Uncaught Error: Call to a member function isManageable() on null in /var/www/html/plugins/devolo_cpl/core/class/devolo_cpl.class.php:739\nStack trace:\n#0 /var/www/html/plugins/devolo_cpl/core/class/devolo_cpl.class.php(698): devolo_cpl->isManageable()\n#1 /var/www/html/core/class/DB.class.php(250): devolo_cpl->postSave()\n#2 /var/www/html/core/class/eqLogic.class.php(1053): DB::save()\n#3 /var/www/html/plugins/devolo_cpl/core/class/devolo_cpl.class.php(356): eqLogic->save()\n#4 /var/www/html/plugins/devolo_cpl/core/class/devolo_cpl.class.php(385): devolo_cpl::createOrUpdate()\n#5 /var/www/html/plugins/devolo_cpl/core/ajax/devolo_cpl.ajax.php(41): devolo_cpl::syncDevolo()\n#6 {main}\n  thrown in /var/www/html/plugins/devolo_cpl/core/class/devolo_cpl.class.php on line 739, referer: http://192.168.1.12/index.php?v=d&m=devolo_cpl&p=devolo_cpl&id=devolo_cpl

Hello,

L’erreur de http.error est très intéressante. Il faut que je regarde mon code autour de ce point.

Mais je ne pourrai difficilement le faire dans la journée. Peux-tu attendre et ne rien toucher dans ce plugin en attendant de mes nouvelles?

Bien évidemment !
Désolé de t avoir déranger et merci pour ton retour et ton aide très rapide !

Hello,

Tu n’as pas a être désolé pour une erreur qui se trouve dans mon code :smiley:.

Je pense avoir trouver l’erreur. Le plus simple pour moi est probablement que tu mette ton Magic 2 DINRail à la poubelle. Je je doute que tu adhères à cette solution :wink:.

Je peux tenter publier une correction mais je n’ai pas de possibilité de la tester car le problème est lié à un équipement que je n’ai pas. Je préfère donc te demander de corriger un fichier du plugin. Je ferais ensuite une mise à jour si ça corrige effectivement ton souci.

Il faut que tu édites le fichier core/config/models.json. Tu trouveras la ligne 28 qui contient le texte suivant:

 "Magic 2 DinRail": {

il faut modifier cette ligne comme ceci:

 "Magic 2 LAN DINrail": {

Si ça résout bien le problème, je publierai une nouvelle release avec cette correction et un traitement de l’erreur pour le cas où quelqu’un rencontrerai le même type de problème avec un autre modèle.

Je n ai pas ce fichier … :face_with_spiral_eyes:

Dans le dossier plugins puis dans le sous dossier de ce plugin.