Page 14 sur 15
Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"
Publié : 11 nov. 2025, 15:00
par salinois
Bonjour Pipiche,
je vais installer le plugin sur ma machine de Prod, pour gérer des prises secteurs.
par rapport à mon installation de test, y a t-il des choses à modifier pour l'installation du plugin , à l'heure actuelle ?
voir ci-dessous ma récap sur la machine de test. Je garderai la même @IP du coordinateur ( et j’arrêterai la machine test ).
merci à toi.
Salinois
salinois a écrit : 28 janv. 2025, 13:33
Bonjour Pipiche,
désolé pour hier , j'avais pas vu les messages pour l’accès en SSH.
Bon, j'ai fait ma récap pour pouvoir bientôt l'installer sur mon Domoticz de "Prod". tu me corrigeras au besoin.
1 - installation du plugin sous Linux ( pour moi )
suivre les commandes du wiki
apres $ cd Domoticz-Zigbee
$ git pull
$ git checkout rc-stable7-7.1.021
$ git pull
si erreurs avec les commandes précédentes comme j'ai eu en bulleyes, ( mais mon domoticz de prod est en Bookworm)
$ git reset --hard
$ git pull
$ git checkout rc-stable 7-7.1.021
$ sudo python3 -m pip install -r requirements.txt -- upgrade
mais je serai en Bookworm est-ce que la commande préconisée dans le wiki suffira ?
$
sudo pip3 install -r requirements.txt -–break-system-packages
ensuite executer la suite des commandes du wiki jusqu'à restart de Domoticz
2 - dans le plugin "Zigbeefordomoticz"
mettre @ip du coordinateur Zigbee
choisir "Socket" dans coordinateur Type
choisir "Texas Instrument ZNP" dans coordinateur Model
suivre la suite du wiki.
3 - autoriser les 2 widgets "flèches vertes"
4 - Accéder à l'interface du plugin
http://xxx.xxx.xxx.xxx:9440
5 - Appairer les devices Zigbee dans le plugin.
Salinois
Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"
Publié : 11 nov. 2025, 15:18
par pipiche
tu peux recalculer sur stable7 , nous sommes en 7.1.025
Pour Bookworm il est préférable d'utiliser le venv (
https://zigbeefordomoticz.github.io/wik ... alEnv.html )
Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"
Publié : 12 nov. 2025, 18:31
par salinois
Bonjour Pipiche,
Pour tester le mode "venv" sur ma machine de test ( surtout pour l'installation, même si c'est bulleyes ); je peux le faire ?
Version: 2024.7
Build Hash: b317cfab1
Compile Date: 2024-07-13 16:59:31
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Mar 20 2025, 02:07:39) [GCC 10.2.1 20210110]
Active User: admin
Pour ma machine de test, si je suis le Wiki:
1 - 2025-11-12 17:37:58.246 Status: PluginSystem: Started, Python version '3.9.2', 2 plugin definitions loaded.
2 - patrick@raspberrypi:~ $ python3 --version
Python 3.9.2
3 -
Code : Tout sélectionner
cd /home/patrick
mkdir Domoticz_Python_Environment
cd /home/patrick/domoticz/plugins/Domoticz-Zigbee
a specific version:
sudo python3.9 -m pip install -r requirements.txt --upgrade -t /home/patrick/Domoticz_Python_Environment
4 -
Code : Tout sélectionner
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Domoticz Home Automation System"
NAME=domoticz
USERNAME=patrick
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
export PYTHONPATH=/home/patrick/Domoticz_Python_Environment:$PYTHONPATH`
DAEMON=/home/patrick/domoticz/$NAME
DAEMON_ARGS="-daemon"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
DAEMON_ARGS="$DAEMON_ARGS -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"
Si ok pour toi, je remettrai mes lignes de modif pour ma machine de Prod en Bookworm.
salinois
Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"
Publié : 14 nov. 2025, 17:43
par salinois
Bon,
je viens de regarder la doc de Venv pour python, apparemment ça ne géne pas l'environnement
du systeme de base.
c'est pour cela que je posai la question, De ne pas perturber la base.
a+
désolé d'être impatient. Je viens de recevoir mes prises.
Salinois
Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"
Publié : 14 nov. 2025, 18:41
par salinois
c'est bon ,
je viens de tester Venv sur ma machine de test, même si je suis pas en Bookworm
et tout fonctionne , je passerai prochaine cette manip sur Domoticz de Prod.
salinois
Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"
Publié : 15 nov. 2025, 09:15
par pipiche
salinois a écrit : 14 nov. 2025, 17:43
Bon,
je viens de regarder la doc de Venv pour python, apparemment ça ne géne pas l'environnement
du systeme de base.
c'est pour cela que je posai la question, De ne pas perturber la base.
a+
désolé d'être impatient. Je viens de recevoir mes prises.
Salinois
Absolument, le principe du venv est de s'affranchir de l'install système et vice-versa
Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"
Publié : 15 nov. 2025, 09:21
par salinois
Bonjour Pipiche,
OK merci pour ton retour. Je vais passer tout ça dans mon domoticz de Prod.
bonne journée
salinois
Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"
Publié : 16 nov. 2025, 19:05
par salinois
hello Pipiche,
ma recap pour ma machine de Prod.
Mon aborescence :
]patrick@domoticz:/ $
cd /
ls -ail
2 drwxr-xr-x 20 root root 4096 Nov 16 17:34 .
2 drwxr-xr-x 20 root root 4096 Nov 16 17:34 ..
14 lrwxrwxrwx 1 root root 7 Nov 19 2024 bin -> usr/bin
12 drwxr-xr-x 3 root root 4096 Apr 4 2025 boot
1 drwxr-xr-x 18 root root 3940 Nov 7 11:17 dev
9160705 drwxr-xr-x 8 patrick patrick 4096 Nov 16 17:34 domoticz
18 drwxr-xr-x 104 root root 4096 Oct 26 16:20 etc
19 drwxr-xr-x 3 root root 4096 Nov 19 2024 home
15 lrwxrwxrwx 1 root root 7 Nov 19 2024 lib -> usr/lib
11 drwx------ 2 root root 16384 Nov 19 2024 lost+found
20 drwxr-xr-x 2 root root 4096 Nov 19 2024 media
Version: 2024.7
Build Hash: b317cfab1
Compile Date: 2024-07-13 16:59:31
dzVents Version: 3.1.8
Python Version: 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0]
Active User: admin
installation de Venv avant le plugin
patrick@domoticz:/ $ python3 --version
Python 3.11.2
cd /
sudo mkdir Domoticz_Python_Environment
sudo chown patrick:patrick -R Domoticz_Python_Environment/
cd /domoticz/plugins/
git clone
https://github.com/zigbeefordomoticz/Do ... Zigbee.git
cd /domoticz/plugins/Domoticz-Zigbee
sudo python3.11 -m pip install -r requirements.txt --upgrade -t /Domoticz_Python_Environment « pour specific version »
cd /etc/init.d
Code : Tout sélectionner
sudo nano -c domoticz.sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Domoticz Home Automation System"
NAME=domoticz
USERNAME=patrick
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
export PYTHONPATH=/Domoticz_Python_Environment:$PYTHONPATH
DAEMON=/home/patrick/domoticz/$NAME
DAEMON_ARGS="-daemon"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
DAEMON_ARGS="$DAEMON_ARGS -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log"
#DAEMON_ARGS="$DAEMON_ARGS -syslog
sudo systemctl daemon-reload
sudo nano /etc/init.d/domoticz.sh
cd /domoticz/plugins/Domoticz-Zigbee
git config --add submodule.recurse true
git submodule update --init --recursive
sudo chmod +x plugin.py bizarre sur ma machine de test, il n’est pas executable !!!
sudo service domoticz.sh restart
dois-je refaire ces commandes aussi ?
git pull
git checkout rc-stable7-7.1.025 tu m’a dit qu’il fallait mettre ça.
git pull
Apres aller dans Domoticz par le navigateur.
Conf et Hardware
Pour le nom, je pourrais si j’ai un 2eme Coordinateur , mettre ça : <ZigbeeSLZB06_Bureau> ?
Apres configuration du plugin ,je vais réutiliser la même @IP que sur ma machine des test.
http://192.168.0.xxx:9440
Appairer les objets.
J’espère ne rien avoir oublier..
bonne soirée
Salinois
Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"
Publié : 16 nov. 2025, 19:10
par pipiche
Tu peux te référer à ce script qui est utilisé dans le cas d'un environment docker
https://github.com/zigbeefordomoticz/Do ... upgrade.sh
Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"
Publié : 16 nov. 2025, 19:54
par salinois
merci de ta réponse,
étant donné que je ne suis pas bon en programmation, je me sens pas d'attaque pour suivre ce script ( et m'en inspirer );
je préfère effectuer les commandes comme j'avais fait pour ma machine de test. ( je ne veux pas trop automatiser, pour comprendre les commandes).
Sur ma machine de Prod , je n'ai pas encore installer le plugin, Donc je pars direct sur une nouvelle installation du plugin... comme sur le Wiki mais avec Venv.
as-tu vu des erreurs sur mon cheminement des commandes ?
merci à toi
Salinois