Migration TI CC2531 --> SLZB-06 TI CC2652P

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Message par pipiche »

peux-tu faire un simple git pull pour mettre a jour le hotfix, relancer Domoticz et ensuite faire le test de shutdown
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
Chrominator
Messages : 1042
Inscription : 19 déc. 2015, 07:29
Localisation : France

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Message par Chrominator »

Nickel, ça fonctionne :)
Merci beaucoup.

Le système s'arrête normalement, sans message d'un fonctionnement anormal sur le webserver ou autres.
Je l'ai fait 5 fois, à chaque fois ça a bien fonctionné.

Je joins les logs si jamais tu voulais les voir.
Ils sont "bruts", je ne les ai pas retouché, je n'ai retiré aucune ligne mais j'ai démarré dz pour cette session avec des logs vides.

Tu me diras quand je pourrais rejoindre la branche sur laquelle tu publies les mises à jour habituelles (prochaine version j'imagine).
Pièces jointes
PluginZigbee_41.log
(13.91 Kio) Téléchargé 57 fois
domoticz.log
(22.72 Kio) Téléchargé 56 fois
Un bon frein vaut mieux que deux sparadraps.

Ubuntu 24.04.3 LTS - Domoticz 2025.1 (build 16782)
Pentium G3220T 2.6GHz - 4Go DDR3
RFXtrx433 USB Ver Pro1/1043
Z-Stick GEN5 Version: 1.6-1136-g07ea22bb
Rtl433 RTL-SDR receiver
RFLink Gateway
Zigbee SLZB-06
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Message par pipiche »

Pourtant dans le dernier log il y a cela:
2025-11-05 18:32:34.109 Status: SLZB-06 TI CC2652P: Operating time : 0 Hours 3 Mins 21 Secs
2025-11-05 18:32:34.110 SLZB-06 TI CC2652P: logging_thread - ended
2025-11-05 18:32:34.111 SLZB-06 TI CC2652P: Logging Thread shutdown
2025-11-05 18:32:34.111 SLZB-06 TI CC2652P: Remaining active threads: [('MainThread', 126182641100480, True), ('ZigpyForwarder_41', 126182292973248, True)]
2025-11-05 18:32:34.115 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:35.115 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:36.115 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:37.116 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:38.116 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:39.117 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:40.117 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:41.117 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:42.118 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:43.118 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:44.118 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:44.119 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:44.119 SLZB-06 TI CC2652P: Abandoning wait for Plugin thread shutdown, hang or crash may result.
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
Chrominator
Messages : 1042
Inscription : 19 déc. 2015, 07:29
Localisation : France

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Message par Chrominator »

C'est vrai, toutefois ça n'engendre pas de dysfonctionnement ni de boucle (presque) infinie au niveau de domoticz comme ça pouvait le faire auparavant.

Mais en effet, une analyse plus approfondie montre que le process a été tué, il ne s'est pas terminé comme il aurait dû.

syslog :

Code : Tout sélectionner

Nov  5 18:32:06 phoenix domoticz: Domoticz is exiting...
Nov  5 18:32:06 phoenix systemd[1]: Stopping domoticz.service - domoticz_service...
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: State 'stop-sigterm' timed out. Killing.
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: Killing process 320826 (domoticz) with signal SIGKILL.
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: Failed to kill control group /system.slice/domoticz.service, ignoring: Invalid argument
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: Main process exited, code=killed, status=9/KILL
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: Failed with result 'timeout'.
Nov  5 18:33:37 phoenix systemd[1]: Stopped domoticz.service - domoticz_service.
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: Consumed 56.507s CPU time.
Un bon frein vaut mieux que deux sparadraps.

Ubuntu 24.04.3 LTS - Domoticz 2025.1 (build 16782)
Pentium G3220T 2.6GHz - 4Go DDR3
RFXtrx433 USB Ver Pro1/1043
Z-Stick GEN5 Version: 1.6-1136-g07ea22bb
Rtl433 RTL-SDR receiver
RFLink Gateway
Zigbee SLZB-06
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Message par pipiche »

comment fais-tu m'arrêt du plugin ?

Est-ce que tu fais via un service Domoticz stop , ou via un stop plugin dans le menu Hardware de Domoticz

sinon, ce qui m'interpelle c'est que tu semble etre le seul avec ce problème, donc ca pourrait etre également lié à un comportement particulier avec python3.10
Cependant les changements que j'ai fait dans le hot fix restent important car, il assure un arrêt des threads du plugin de façon déterministes
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
Chrominator
Messages : 1042
Inscription : 19 déc. 2015, 07:29
Localisation : France

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Message par Chrominator »

Je stoppe domoticz avec le service, typiquement service domoticz stop sous root.

Voici la description du service.
Lors de l'essai j'ai mis en commentaire les paramètres liés au restart pour ne pas poluer les logs.

Code : Tout sélectionner

[Unit]
      Description=domoticz_service
[Service]
      User=pi
      Group=users
      ExecStart=/home/pi/domoticz/domoticz -www 8080 -sslwww 443 -daemon -pidfile /var/run/domoticz/domoticz.pid -sslcert /home/pi/domoticz/cert_all.pem -log /var/log/domoticz.log -loglevel normal,status,error
      PIDFile=/var/run/domoticz/domoticz.pid
      EnvironmentFile=/home/pi/domoticz.env
      WorkingDirectory=/home/pi/domoticz
      # Run ExecStartPre with root-permissions
      PermissionsStartOnly=true
      ExecStartPre=-/usr/bin/mkdir /var/run/domoticz
      ExecStartPre=/usr/bin/chown -R pi:users /var/run/domoticz
      #ExecStartPre=setcap 'cap_net_bind_service=+ep' /home/pi/domoticz/domoticz
      AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN CAP_NET_BIND_SERVICE
      Restart=on-failure
      RestartSec=1m
      #StandardOutput=null
[Install]
      WantedBy=multi-user.target
Je vais essayer demain en stoppant le plugin via le matériel, je te donnerais les logs.
Un bon frein vaut mieux que deux sparadraps.

Ubuntu 24.04.3 LTS - Domoticz 2025.1 (build 16782)
Pentium G3220T 2.6GHz - 4Go DDR3
RFXtrx433 USB Ver Pro1/1043
Z-Stick GEN5 Version: 1.6-1136-g07ea22bb
Rtl433 RTL-SDR receiver
RFLink Gateway
Zigbee SLZB-06
Chrominator
Messages : 1042
Inscription : 19 déc. 2015, 07:29
Localisation : France

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Message par Chrominator »

Effectivement tu l'as bien pressenti, l'arrêt via l'onglet matériel de dz plante à la fin et le déstabilise.

Je soupçonne que le trouble vient de la migration de l'ancien coordinateur vers le nouveau ;
Si je configure un nouveau coordinateur SLZB-06 from scratch (en le réinitialisant lors de sa config dans dz), est-ce que le log de son démarrage/arrêt ferait progresser les choses ?
Est-ce que à l'issue je pourrais récupérer tous mes devices en réactivant l'ancien SLZB-06 ?

En attendant ton avis, voici les logs :
Pièces jointes
domoticz.log
(25.64 Kio) Téléchargé 54 fois
PluginZigbee_41.log
(13.84 Kio) Téléchargé 58 fois
Un bon frein vaut mieux que deux sparadraps.

Ubuntu 24.04.3 LTS - Domoticz 2025.1 (build 16782)
Pentium G3220T 2.6GHz - 4Go DDR3
RFXtrx433 USB Ver Pro1/1043
Z-Stick GEN5 Version: 1.6-1136-g07ea22bb
Rtl433 RTL-SDR receiver
RFLink Gateway
Zigbee SLZB-06
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Message par pipiche »

Non, si tu passes par un nouveau tu ne récupéra rien, sauf aller changer des trucs à la main dans la base domoticz et côté plug-in

Du reste ton problème semble très spécifique.

Est-ce qu’on pourrait se faire une séance TeamViewer ou équivalent ?
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
Chrominator
Messages : 1042
Inscription : 19 déc. 2015, 07:29
Localisation : France

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Message par Chrominator »

C'est une super offre, merci.
J'ai essayé de créer un compte avec TeamViewer, mais je ne reçois pas le mail de vérification, rien dans mes spams ou autre.

Quelle autre solution ? (je n'en utilise aucune perso).

EDIT: je viens de recevoir le mail de vérification, maintenant j'attends celui de vérification de la machine...
Un bon frein vaut mieux que deux sparadraps.

Ubuntu 24.04.3 LTS - Domoticz 2025.1 (build 16782)
Pentium G3220T 2.6GHz - 4Go DDR3
RFXtrx433 USB Ver Pro1/1043
Z-Stick GEN5 Version: 1.6-1136-g07ea22bb
Rtl433 RTL-SDR receiver
RFLink Gateway
Zigbee SLZB-06
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Message par pipiche »

Anydesk est peut-etre plus simple à mettre en oeuvre.
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
Répondre