[Résolu] Zigbee for Dz vers Xmas release

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
hestia
Messages : 397
Inscription : 12 sept. 2018, 22:36

[Résolu] Zigbee for Dz vers Xmas release

Message par hestia »

bonjour,
je tente d'upgrader de 7.1.003 vers Release 7.1.007

ce que j'ai fait (si j'ai bien noté...)
J'ai cliqué "Mettre à jour" et il y a eu qq soucis

Code : Tout sélectionner

PIP Options: --no-input install -r requirements.txt --ignore-requires-python --upgrade
Current version : {"branch": "stable7", "version": "7.1.003"}
fatal: detected dubious ownership in repository at '/home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee'
To add an exception for this directory, call:

git config --global --add safe.directory /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee

j'ai passé qq commandes

Code : Tout sélectionner

sudo chown -R ... 
pour remettre les droits
et

Code : Tout sélectionner

sudo python3 -m pip install -r requirements.txt --upgrade
=>

Code : Tout sélectionner

Successfully installed bellows-0.36.8 zigpy-0.59.0 zigpy-deconz-0.21.1 zigpy-znp-0.11.6
dans dz

Code : Tout sélectionner

2023-12-20 19:29:05.622 Error: zigbeeE: Not Loading abe0 as Status: UNKNOW
...
Ensuite j'ai appliqué la mise à jour du wiki

Code : Tout sélectionner

git pull
sudo python3 -m pip install -r requirements.txt --upgrade
sudo chmod +x plugin.py
et redémarrer dz
donc passage en Plugin: 7.1.005 [3.164]

hors la dernière est 7.1.007

comment y arriver? :D
Dernière modification par hestia le 20 déc. 2023, 23:17, modifié 1 fois.
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigbee for Dz vers Xmas release

Message par Keros »

Tu peux lancer un git pull dans le dossier du plugin et nous mettre le résultat ici.

Puis redémarrer DomoticZ et nous mettre les logs de démarrage du plugin.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
hestia
Messages : 397
Inscription : 12 sept. 2018, 22:36

Re: Zigbee for Dz vers Xmas release

Message par hestia »

Merci pour ta réactivité :)
voici:

git pull

Code : Tout sélectionner

hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint:
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 12 (delta 11), reused 12 (delta 11), pack-reused 0
Unpacking objects: 100% (12/12), 1.84 KiB | 30.00 KiB/s, done.
From https://github.com/zigbeefordomoticz/Domoticz-Zigbee
   6feffa16..d316e6bb  domoticz-extended-framework -> origin/domoticz-extended-framework
You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>
log dz

Code : Tout sélectionner

 2023-12-20 20:29:09.722 Status: Domoticz V2023.2 (build 15738) (c)2012-2023 GizMoCuz
2023-12-20 20:29:09.722 Status: Build Hash: 84e8feb95, Date: 2023-12-18 14:47:05
2023-12-20 20:29:09.723 Status: Startup Path: /home/pihestia/PROD_domoticz/
2023-12-20 20:29:09.825 Status: PluginSystem: Started, Python version '3.9.2', 3 plugin definitions loaded.
2023-12-20 20:29:09.839 Status: WebServer(HTTP) started on address: :: with port 8080
2023-12-20 20:29:09.861 Status: WebServer(SSL) started on address: :: with port 443
2023-12-20 20:29:09.869 Status: Camera: settings (re)loaded
2023-12-20 20:29:09.870 Status: TCPServer: shared server started...
2023-12-20 20:29:09.871 Status: RxQueue: queue worker started...
2023-12-20 20:29:11.935 Status: System: System: ODroid/Raspberry
2023-12-20 20:29:11.936 Status: zigbeeE: Started.
2023-12-20 20:29:11.937 Status: zigbeeE: Entering work loop.
2023-12-20 20:29:11.937 Status: NotificationSystem: thread started...
2023-12-20 20:29:11.940 Status: EventSystem: reset all events...
2023-12-20 20:29:11.941 Status: System: Hardware Monitor: Started (OStype Linux)
2023-12-20 20:29:11.944 Status: EventSystem: reset all device statuses...
2023-12-20 20:29:12.261 Status: PluginSystem: 1 plugins started.
2023-12-20 20:29:12.943 Status: Python EventSystem: Initializing event module.
2023-12-20 20:29:12.944 Status: EventSystem: Started
2023-12-20 20:29:12.944 Status: EventSystem: Queue thread started...
2023-12-20 20:29:14.077 Status: zigbeeE: Initialized version 7.1, author 'pipiche38'
2023-12-20 20:29:14.091 Status: zigbeeE: Zigbee for Domoticz plugin starting
2023-12-20 20:29:14.091 Status: zigbeeE: Z4D plugin requires python3 3.8 or above and you are running 3.9
2023-12-20 20:29:14.092 Status: zigbeeE: Checking Python modules /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee/requirements.txt
2023-12-20 20:29:15.932 Status: zigbeeE: PluginAnalytics set to 1
2023-12-20 20:29:15.932 Status: zigbeeE: channel set to 11
2023-12-20 20:29:15.932 Status: zigbeeE: filename set to /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-36.json
2023-12-20 20:29:15.932 Status: zigbeeE: pluginHome set to /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee
2023-12-20 20:29:15.933 Status: zigbeeE: homedirectory set to /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee
2023-12-20 20:29:15.933 Status: zigbeeE: pluginData set to /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee/Data
2023-12-20 20:29:15.933 Status: zigbeeE: pluginConfig set to /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee/Conf
2023-12-20 20:29:15.933 Status: zigbeeE: pluginOTAFirmware set to /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee/OTAFirmware
2023-12-20 20:29:15.933 Status: zigbeeE: pluginReports set to /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee/Reports
2023-12-20 20:29:15.933 Status: zigbeeE: pluginWWW set to /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee/www
2023-12-20 20:29:15.933 Status: zigbeeE: pluginLogs set to /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee/Logs
2023-12-20 20:29:15.933 Status: zigbeeE: ControllerInRawMode set to True
2023-12-20 20:29:15.933 Status: zigbeeE: expJsonDatabase set to 0
2023-12-20 20:29:15.933 Status: zigbeeE: ControllerInRawMode set to True
2023-12-20 20:29:15.940 Status: zigbeeE: Please watch plugin log into /home/pihestia/PROD_domoticz/plugins/Domoticz-Zigbee/Logs/PluginZigbee_36.log
2023-12-20 20:29:15.960 Status: zigbeeE: Zigbee for Domoticz (z4d) plugin stable7-7.1.005 started
2023-12-20 20:29:15.972 Status: [web:8080] Incoming connection from: 127.0.0.1
2023-12-20 20:29:15.990 Status: zigbeeE: Loading ZCL Cluster definitions
2023-12-20 20:29:15.994 Status: zigbeeE: - ZCL Cluster 0000 - (V1) Basic loaded
2023-12-20 20:29:15.997 Status: zigbeeE: - ZCL Cluster 0001 - (V1) Power loaded
2023-12-20 20:29:15.999 Status: zigbeeE: - ZCL Cluster 0002 - (V1) Device Temperature Configuration loaded
2023-12-20 20:29:16.000 Status: zigbeeE: - ZCL Cluster 0003 - (V1) Identify loaded
2023-12-20 20:29:16.002 Status: zigbeeE: - ZCL Cluster 0004 - (V1) Groups loaded
2023-12-20 20:29:16.004 Status: zigbeeE: - ZCL Cluster 0005 - (V1) Scenes loaded
2023-12-20 20:29:16.007 Status: zigbeeE: - ZCL Cluster 0006 - (V1) On/Off loaded
2023-12-20 20:29:16.008 Status: zigbeeE: - ZCL Cluster 0007 - (V1) On/Off Switch Configuration loaded
2023-12-20 20:29:16.010 Status: zigbeeE: - ZCL Cluster 0008 - (V1) Level loaded
2023-12-20 20:29:16.012 Status: zigbeeE: - ZCL Cluster 0009 - (V1) Alarms loaded
2023-12-20 20:29:16.014 Status: zigbeeE: - ZCL Cluster 000a - (V1) Time loaded
2023-12-20 20:29:16.016 Status: zigbeeE: - ZCL Cluster 000d - (V1) Analog Output loaded
2023-12-20 20:29:16.018 Status: zigbeeE: - ZCL Cluster 000f - (V1) Binary Input loaded
2023-12-20 20:29:16.020 Status: zigbeeE: - ZCL Cluster 0013 - (V1) Multistate Output loaded
2023-12-20 20:29:16.021 Status: zigbeeE: - ZCL Cluster 0019 - (V1) OTA Upgrade loaded
2023-12-20 20:29:16.024 Status: zigbeeE: - ZCL Cluster 0020 - (V1) Poll Control loaded
2023-12-20 20:29:16.026 Status: zigbeeE: - ZCL Cluster 0102 - (V1) Window Covering loaded
2023-12-20 20:29:16.028 Status: zigbeeE: - ZCL Cluster 0202 - (V1) Fan Control loaded
2023-12-20 20:29:16.030 Status: zigbeeE: - ZCL Cluster 0204 - (V1) Thermostat User Interface Configuration loaded
2023-12-20 20:29:16.032 Status: zigbeeE: - ZCL Cluster 0300 - (V1) Color Control loaded
2023-12-20 20:29:16.034 Status: zigbeeE: - ZCL Cluster 0301 - (V1) Ballast Configuration loaded
2023-12-20 20:29:16.036 Status: zigbeeE: - ZCL Cluster 0400 - (V1) Illuminance Level Sensing loaded
2023-12-20 20:29:16.038 Status: zigbeeE: - ZCL Cluster 0402 - (V1) Temperature Measurement loaded
2023-12-20 20:29:16.040 Status: zigbeeE: - ZCL Cluster 0403 - (V1) Pressure Measurement loaded
2023-12-20 20:29:16.041 Status: zigbeeE: - ZCL Cluster 0405 - (V1) Relative Humidity Measurement loaded
2023-12-20 20:29:16.043 Status: zigbeeE: - ZCL Cluster 0406 - (V1) Occupancy Sensing loaded
2023-12-20 20:29:16.050 Status: zigbeeE: - ZCL Cluster 0700 - (V1) Price loaded
2023-12-20 20:29:16.054 Status: zigbeeE: - ZCL Cluster 0702 - (V1) Metering (Smart Energy) loaded
2023-12-20 20:29:16.056 Status: zigbeeE: - ZCL Cluster 0b01 - (V1) Meter Identification loaded
2023-12-20 20:29:16.059 Status: zigbeeE: - ZCL Cluster 0b04 - (V1) Electrical Measurement loaded
2023-12-20 20:29:16.062 Status: zigbeeE: - ZCL Cluster 0b05 - (V1) Diagnostics loaded
2023-12-20 20:29:16.064 Status: zigbeeE: - ZCL Cluster e000 - (V1) Tuya E000 Private Cluster loaded
2023-12-20 20:29:16.066 Status: zigbeeE: - ZCL Cluster e001 - (V1) Tuya E001 Private Cluster loaded
2023-12-20 20:29:16.067 Status: zigbeeE: - ZCL Cluster e002 - (V1) Tuya E002 Private Cluster loaded
2023-12-20 20:29:16.069 Status: zigbeeE: - ZCL Cluster fcc0 - (V1) LUMI Private Cluster loaded
2023-12-20 20:29:16.072 Status: zigbeeE: - ZCL Cluster ff66 - (V1) Lixee Zlinky private cluster loaded
2023-12-20 20:29:16.080 Status: zigbeeE: DeviceConf loaded - 16 confs loaded
2023-12-20 20:29:16.089 Status: zigbeeE: Local-Device conf loaded - 22 confs loaded
2023-12-20 20:29:18.990 Status: zigbeeE: Start Zigpy Transport on EZSP
2023-12-20 20:29:18.998 Status: zigbeeE: ZigpyTransport: thread_processing_and_sending Thread start.
2023-12-20 20:29:18.999 Status: zigbeeE: Start Web Server connection
2023-12-20 20:29:19.048 Status: zigbeeE: Web backend for Web User Interface started on port: 9440
2023-12-20 20:29:19.293 Status: zigbeeE: Plugin looks to upgrade the Certified Device package
2023-12-20 20:29:19.931 Status: zigbeeE: Started radio ezsp port: /dev/ttyUSB-ZIGBEE
2023-12-20 20:29:21.317 Status: zigbeeE: Bellows Radio register default Ep
2023-12-20 20:29:22.006 Status: zigbeeE: Network settings
2023-12-20 20:29:22.008 Status: zigbeeE: Device IEEE: e0:79:8d:ff:fe:74:19:50
2023-12-20 20:29:22.014 Status: zigbeeE: Device NWK: 0x0000
2023-12-20 20:29:22.015 Status: zigbeeE: Network Update Id: 0x0000
2023-12-20 20:29:22.018 Status: zigbeeE: PAN ID: 0x1A62
2023-12-20 20:29:22.019 Status: zigbeeE: Extended PAN ID: dd:dd:dd:dd:dd:dd:dd:dd
2023-12-20 20:29:22.021 Status: zigbeeE: Channel: 11
2023-12-20 20:29:22.026 Status: zigbeeE: Untested Zigbee adaptater model. If this is a Sonoff USB Dongle E that is known issue, otherwise please report to the Zigbee for Domoticz team
2023-12-20 20:29:22.028 Status: zigbeeE: Installer Version Number: 6.10.3.0 build 297
2023-12-20 20:29:22.030 Status: zigbeeE: Branch Version: ==> Unknown Silicon Labs <==
2023-12-20 20:29:22.033 Status: zigbeeE: Zigbee Coordinator ieee: e0798dfffe741950 , short addr: 0000
2023-12-20 20:29:22.035 Status: zigbeeE: Network state UP, PANID: 1a62 extPANID: 0xdddddddddddddddd Channel: 11
2023-12-20 20:29:32.091 Status: zigbeeE: Domoticz Widgets usage is at 9.8 % (230 units free)
2023-12-20 20:29:41.109 Status: zigbeeE: Request Disabling Accepting new Hardware
2023-12-20 20:29:46.080 Status: zigbeeE: coordinator set to Certification : 1/CE -> CE
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigbee for Dz vers Xmas release

Message par Keros »

Tu peux revenir sur la branche stable :

Code : Tout sélectionner

git checkout stable7
git pull
sudo python3 -m pip install -r requirements.txt --upgrade
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
hestia
Messages : 397
Inscription : 12 sept. 2018, 22:36

Re: Zigbee for Dz vers Xmas release

Message par hestia »

git checkout stable7

Code : Tout sélectionner

error: Your local changes to the following files would be overwritten by checkout:
        plugin.py
Please commit your changes or stash them before you switch branches.
Aborting
(je n'ai pas de connaissance en git... comme cela doit se voir)
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigbee for Dz vers Xmas release

Message par Keros »

On va faire un reset :

Code : Tout sélectionner

git reset --hard
git pull --force
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
hestia
Messages : 397
Inscription : 12 sept. 2018, 22:36

Re: Zigbee for Dz vers Xmas release

Message par hestia »

merci Keros!

Successfully installed bellows-0.37.3 zigpy-0.60.1 zigpy-deconz-0.22.2 zigpy-znp-0.12.0

Plugin: 7.1.007 [3.164]

C'était un env. de test.
Pour la prod et le passage directement de 7.1.003 à 7.1.007, ce serait donc:

Code : Tout sélectionner

sudo chown -R pihestia:pihestia . (si besoin)
git reset --hard
git pull --force

git checkout stable7
git pull

sudo python3 -m pip install -r requirements.txt --upgrade

sudo chmod +x plugin.py (si besoin)
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigbee for Dz vers Xmas release

Message par Keros »

C'est ce que l'on a fait pour y arriver cette fois-ci, mais ton environnement de prod est différent.

Si tu es sur la branche stable7, un git pull et la mise à jour des plugins python doit normalement être suffisant.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
hestia
Messages : 397
Inscription : 12 sept. 2018, 22:36

Re: Zigbee for Dz vers Xmas release

Message par hestia »

Mon env. de prod était identique jusqu'à aujourd'hui (c'est un clone!).
Mais pour zigbeefordz j'avais fait qq manip, en particulier la màj par l'IHM.
hestia
Messages : 397
Inscription : 12 sept. 2018, 22:36

Re: Zigbee for Dz vers Xmas release

Message par hestia »

J'ai passé ces commandes sur la prod
et la mise à jour est ok (je n'ai pas eu tout à fait les mêmes log)

J'ai ces erreurs dans les log dz

Code : Tout sélectionner

2023-12-20 22:58:35.878 Error: zigbeeE: ReadCluster - Error/unknow 64a7/02 Cluster: 0406 Attribute: 0041 Status: 00 DataType: 23 DataSize: 0004 Data: 00000898
2023-12-20 22:58:36.024 Error: zigbeeE: ReadCluster - Error/unknow 64a7/02 Cluster: 0406 Attribute: 0040 Status: 00 DataType: 20 DataSize: 0001 Data: 00
2023-12-20 23:03:35.706 Error: zigbeeE: ReadCluster - Error/unknow 64a7/02 Cluster: 0406 Attribute: 0044 Status: 00 DataType: 23 DataSize: 0004 Data: 000000dc
2023-12-20 23:03:35.926 Error: zigbeeE: ReadCluster - Error/unknow 64a7/02 Cluster: 0406 Attribute: 0043 Status: 00 DataType: 23 DataSize: 0004 Data: 00000898
2023-12-20 23:03:36.106 Error: zigbeeE: ReadCluster - Error/unknow 64a7/02 Cluster: 0406 Attribute: 0042 Status: 00 DataType: 23 DataSize: 0004 Data: 00000898
2023-12-20 23:03:36.304 Error: zigbeeE: ReadCluster - Error/unknow 64a7/02 Cluster: 0406 Attribute: 0041 Status: 00 DataType: 23 DataSize: 0004 Data: 00000898
Je les avais avant.
Si ce n'est pas un sujet annexe, je ferai une autre post
Répondre