Installation du module ZigBee

De wiki_pcwiki2
Aller à la navigationAller à la recherche

KEYWORDS: DOMOTICZ, ZIGBEE

Le 03/03/2023: ADDENDUM: en fin de compte, domoticz ne marche pas en bullseye, il faut re passer en buster (cf VM IP 018 - debian10-domoticz
Il y a un petit bémol dans la doc domoticz pour installer zigbee (réf: https://zigbeefordomoticz.github.io/wiki/fr-fr/Plugin_Installation.html ):

cd domoticz/plugins/
Exécuter la commande :  git clone https://github.com/zigbeefordomoticz/Domoticz-Zigbee.git
Le répertoire Domoticz-Zigbee sera créé dans le dossier plugins.
cd Domoticz-Zigbee/
Installer les paquets Python nécessaires avec la commande : pip3 install -r requirements.txt
chown -R pi:pi .

C'est ici qu'il y a le ptrmirt problème:
Il faut rajouter:
git pull
git config --global --add safe.directory /home/pi/domoticz/plugins/Domoticz-Zigbee

Maintenant, on peut reprendre le cours de la documentation:
git config --add submodule.recurse true

git submodule update --init --recursive
NB: j'ai rencontré un dernier problème ici:''
Il faut exécuter tout ce que dit le git: git config --global --add safe.directory /home/pi/domoticz/plugins/Domoticz-Zigbee/...
Il y en a trois ou quatre à lancer et après, cela a l'air de passer pour le git submodule update --init --recursive

chmod +x plugin.py

 systemctl restart domoticz