Page 4 sur 15

Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"

Publié : 27 janv. 2025, 12:59
par salinois
en cherchant, j'ai trouvé ça à executer.
git stash
Saved working directory and index state WIP on stable7: 8694b202 Release 7.1.016 - Hotfix for EZSP chipset
patrick@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ git pull
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.
Updating 8694b202..af1d9e18
Fast-forward
.hidden/VERSION | 2 +-
Classes/PluginConf.py | 8 +-
Classes/WebServer/WebServer.py | 56 ++--
Classes/WebServer/com.py | 2 +
Classes/WebServer/dispatcher.py | 222 ++++++++--------
Classes/WebServer/rest_PluginUpgrade.py | 7 +-
Classes/WebServer/rest_device_params.py | 94 +++++++
Classes/ZigpyTransport/AppGeneric.py | 2 +-
DevicesModules/custom_zlinky.py | 478 ++++++++++++++++++++--------------
Modules/actuators.py | 32 ++-
Modules/checkingUpdate.py | 8 +-
Modules/database.py | 4 +-
Modules/heartbeat.py | 11 +-
Modules/readAttributes.py | 50 +++-
Modules/tools.py | 4 +
Modules/zlinky.py | 255 ++++++++++++------
ReleaseNotes.md | 22 ++
Tools/big-clean-git.sh | 19 --
Tools/clean-git.sh | 6 -
Tools/cleaning-repository.sh | 50 ++++
Tools/plugin-auto-upgrade.sh | 250 ++++++++++++------
Tools/printLOD.py | 90 ++++---
Zigbee/zclDecoders.py | 1 -
plugin.py | 11 +
sonar-project.properties | 3 +
www/z4d/{12.445878b6b97c587c.js => 12.9b43b1ddebc052a8.js} | 2 +-
www/z4d/{317.59bbe14d2339e649.js => 317.8348e1df39faeac7.js} | 2 +-
www/z4d/3rdpartylicenses.txt | 3 -
www/z4d/521.3fdfd13040e64239.js | 1 +
www/z4d/521.4a2e700ea1ed6d2d.js | 1 -
www/z4d/{577.d8ab166ec1c4b8d8.js => 577.fa69d399ab88eb5c.js} | 2 +-
www/z4d/{644.e5bbcc7e1d18b79d.js => 644.06ec887a183e3377.js} | 2 +-
www/z4d/{837.e9d5b18d020927e4.js => 837.bb9840a9999b6259.js} | 2 +-
www/z4d/{846.273fca847945652d.js => 846.79a43d02dda5caf6.js} | 2 +-
www/z4d/{908.08c26a5f1272a6a5.js => 908.bcd45ae997039883.js} | 2 +-
www/z4d/index.html | 2 +-
www/z4d/main.c415fca447920f26.js | 1 +
www/z4d/main.dc6bb7d4a99f0738.js | 1 -
www/z4d/{runtime.d2f1aeee7ac9ef47.js => runtime.d5745d958be89c98.js} | 2 +-
39 files changed, 1120 insertions(+), 592 deletions(-)
create mode 100644 Classes/WebServer/rest_device_params.py
delete mode 100644 Tools/big-clean-git.sh
delete mode 100644 Tools/clean-git.sh
create mode 100644 Tools/cleaning-repository.sh
create mode 100644 sonar-project.properties
rename www/z4d/{12.445878b6b97c587c.js => 12.9b43b1ddebc052a8.js} (99%)
rename www/z4d/{317.59bbe14d2339e649.js => 317.8348e1df39faeac7.js} (99%)
create mode 100644 www/z4d/521.3fdfd13040e64239.js
delete mode 100644 www/z4d/521.4a2e700ea1ed6d2d.js
rename www/z4d/{577.d8ab166ec1c4b8d8.js => 577.fa69d399ab88eb5c.js} (99%)
rename www/z4d/{644.e5bbcc7e1d18b79d.js => 644.06ec887a183e3377.js} (99%)
rename www/z4d/{837.e9d5b18d020927e4.js => 837.bb9840a9999b6259.js} (99%)
rename www/z4d/{846.273fca847945652d.js => 846.79a43d02dda5caf6.js} (99%)
rename www/z4d/{908.08c26a5f1272a6a5.js => 908.bcd45ae997039883.js} (99%)
create mode 100644 www/z4d/main.c415fca447920f26.js
delete mode 100644 www/z4d/main.dc6bb7d4a99f0738.js
rename www/z4d/{runtime.d2f1aeee7ac9ef47.js => runtime.d5745d958be89c98.js} (57%)
mais pour la commande suivante , j'ai toujours une erreur
/domoticz/plugins/Domoticz-Zigbee $ git checkout rc-stable7-7.1.021
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
salinois

Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"

Publié : 27 janv. 2025, 14:32
par pipiche
il faut le faire depuis le home directory du plugin
en voyant les messages il semble en plus que tu ne sois pas sur la dernière

tu peux faire la manip suivante

Code : Tout sélectionner

git reset --hard
git pull
git checkout rc-stable7-7.1.021
puis après

Code : Tout sélectionner

sudo python3 -m pip install -r requirements.txt --upgrade
et enfin restart de Domoticz

Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"

Publié : 27 janv. 2025, 14:44
par salinois
ok

je mets mes commandes: ( pour etre sur)
patrick@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ git reset --hard
HEAD is now at af1d9e18 Hot fix - Release 7.1.020
patrick@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ git pull
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.
Already up to date.
patrick@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ git checkout rc-stable7-7.1.021
Branch 'rc-stable7-7.1.021' set up to track remote branch 'rc-stable7-7.1.021' from 'origin'.
Switched to a new branch 'rc-stable7-7.1.021'
sudo python3 -m pip install -r requirements.txt --upgrade ( je mets que la fin )
Installing collected packages: z4d-certified-devices
Attempting uninstall: z4d-certified-devices
Found existing installation: z4d-certified-devices 5.358
Uninstalling z4d-certified-devices-5.358:
Successfully uninstalled z4d-certified-devices-5.358
Successfully installed z4d-certified-devices-5.359
patrick@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ sudo service domoticz.sh restart
patrick@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $
fait, donc apres je choisis "Socket" à la place de TCP/IP

salinois

Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"

Publié : 27 janv. 2025, 14:50
par pipiche
ca donne quoi en résultat ?

Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"

Publié : 27 janv. 2025, 14:54
par salinois
Est-ce que je dois mettre " Silicon Lab ..." en coordinateur Model ?

salinois

Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"

Publié : 27 janv. 2025, 14:54
par pipiche
non restes en Texas , car si j'ai bien compris c'est un chipset TI

Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"

Publié : 27 janv. 2025, 14:56
par salinois
Donc, voilà , j'ai une relance du plugin aussi.
2025-01-27 14:45:50.933 Status: ZigbeeSLZB06: Stop directive received.
2025-01-27 14:45:50.933 ZigbeeSLZB06: onStop()
2025-01-27 14:45:50.934 Error: ZigbeeSLZB06: Call to function 'onStop' failed, exception details:
2025-01-27 14:45:50.936 Error: ZigbeeSLZB06: Traceback (most recent call last):
2025-01-27 14:45:50.936 Error: ZigbeeSLZB06: File "/home/patrick/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1585, in onStop
2025-01-27 14:45:50.936 Error: ZigbeeSLZB06: _plugin.onStop()
2025-01-27 14:45:50.936 Error: ZigbeeSLZB06: File "/home/patrick/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 623, in onStop
2025-01-27 14:45:50.936 Error: ZigbeeSLZB06: WriteDeviceList(self, 0) # write immediatly
2025-01-27 14:45:50.936 Error: ZigbeeSLZB06: File "/home/patrick/domoticz/plugins/Domoticz-Zigbee/Modules/database.py", line 331, in WriteDeviceList
2025-01-27 14:45:50.937 Error: ZigbeeSLZB06: self.log.logging("Database", "Debug", "WriteDeviceList %s %s" %(self.HBcount, count))
2025-01-27 14:45:50.937 Error: ZigbeeSLZB06: AttributeError: 'NoneType' object has no attribute 'logging'
2025-01-27 14:45:51.056 Status: ZigbeeSLZB06: Exiting work loop.
2025-01-27 14:45:51.134 Status: ZigbeeSLZB06: Stopping threads.
2025-01-27 14:45:51.134 Status: ZigbeeSLZB06: Stopped.
2025-01-27 14:45:57.235 Error: WebServer:8080 thread seems to have ended unexpectedly (last update 108.000000 seconds ago)
2025-01-27 14:46:11.238 Error: WebServer:8080 thread seems to have ended unexpectedly (last update 122.000000 seconds ago)
2025-01-27 14:46:15.114 Status: ZigbeeSLZB06: Entering work loop.
2025-01-27 14:46:15.114 ZigbeeSLZB06: Worker thread started.
2025-01-27 14:46:15.114 Status: ZigbeeSLZB06: Started.
2025-01-27 14:46:15.976 Status: ZigbeeSLZB06: Initialized version 7.1, author 'pipiche38'
2025-01-27 14:46:15.978 Status: ZigbeeSLZB06: Welcome to Zigbee for Domoticz (Z4D) plugin.
2025-01-27 14:46:15.978 Status: ZigbeeSLZB06: PYTHONPATH is not set
2025-01-27 14:46:15.978 Status: ZigbeeSLZB06: Z4D requires python3.9 or above and you are running 3.9
2025-01-27 14:46:15.979 ZigbeeSLZB06: Z4D loading PluginConf
2025-01-27 14:46:15.980 ZigbeeSLZB06: Loading PluginConf - from Domoticz sqlite Db
2025-01-27 14:46:15.980 ZigbeeSLZB06: /home/patrick/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-03.json timestamp is 1737974889.0
2025-01-27 14:46:15.980 ZigbeeSLZB06: Dz PluginConf is older than Json Dz: 0 Json: 1737974889.0
2025-01-27 14:46:15.981 Error: ZigbeeSLZB06: Call to function 'onStart' failed, exception details:
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: Traceback (most recent call last):
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: File "/home/patrick/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1580, in onStart
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: _plugin.onStart()
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: File "/home/patrick/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 401, in onStart
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: self.pluginconf = PluginConf(
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: File "/home/patrick/domoticz/plugins/Domoticz-Zigbee/Classes/PluginConf.py", line 493, in __init__
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: _load_Settings(self)
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: File "/home/patrick/domoticz/plugins/Domoticz-Zigbee/Classes/PluginConf.py", line 572, in _load_Settings
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: _pluginConf = json.load(handle)
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: File "/usr/lib/python3.9/json/__init__.py", line 293, in load
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: return loads(fp.read(),
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: return _default_decoder.decode(s)
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: obj, end = self.scan_once(s, idx)
2025-01-27 14:46:15.984 Error: ZigbeeSLZB06: json.decoder.JSONDecodeError: Expecting ',' delimiter: line 16 column 3 (char 924)
2025-01-27 14:46:25.240 Error: WebServer:8080 thread seems to have ended unexpectedly (last update 136.000000 seconds ago)
2025-01-27 14:46:39.244 Error: WebServer:8080 thread seems to have ended unexpectedly (last update 150.000000 seconds ago)

Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"

Publié : 27 janv. 2025, 15:10
par pipiche
t'as du faire des erreurs de syntax dans le fichier de Conf, peux-tu le partager

Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"

Publié : 27 janv. 2025, 15:14
par salinois
Peux-tu me donner le nom exact ? que je te donne le bon fichier.

ou est-ce la copie ecran du plugin ?

Re: Plugin Z4D avec new matériel "passerelle Zigbee SLZB 06"

Publié : 27 janv. 2025, 15:17
par pipiche
/home/patrick/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-03.json