[Résolu] Ajout matériel - Compteur énergie "Zigbee Smart Meter with CT"

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
vinchz31
Messages : 312
Inscription : 21 nov. 2016, 07:51

[Résolu] Ajout matériel - Compteur énergie "Zigbee Smart Meter with CT"

Message par vinchz31 »

Bonsoir à tous,

J'ai acheté un compteur d'énergie ci-dessous :
https://fr.aliexpress.com/item/10050049 ... pt=glo2fra

L'appairage se réalise mais l'objet remonte dans l'interface comme modèle TS0601 et en "Objet non optimisé pour le pluggin" avec les infos suivantes :

Code : Tout sélectionner

{"PluginInfos":{"HardwareID":14,"HomeFolder":"/home/vinchz31/domoticz/plugins/Domoticz-Zigbee/","StartupFolder":"/home/vinchz31/domoticz/","UserDataFolder":"/home/vinchz31/domoticz/","WebRoot":"","Database":"/home/vinchz31/domoticz/domoticz.db","Language":"fr","Version":"6.3","Author":"pipiche38","Name":"Passerelle_Zigbee","Address":"0.0.0.0","Port":"9999","SerialPort":"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_8a0cf0620645ec11a39996fd6f14af06-if00-port0","Key":"Zigate","Mode1":"ZigpyZNP","Mode2":"USB","Mode3":"False","Mode4":"9440","Mode6":"2","DomoticzVersion":"2022.2","DomoticzHash":"eea9db734","DomoticzBuildTime":"2022-11-05 13:05:35","PluginBranch":"stable6","PluginVersion":"6.3.011","TimeStamp":1679077942,"available":"6.3.011","available-firmMajor":0,"available-firmMinor":0,"FirmwareVersion":"Z-Stack 3.30+ (build 20220219)","FirmwareUpdate":false,"PluginUpdate":false,"LogLevel":7,"Zigpy":true,"CoordinatorModel":"CC1352/CC2652, Z-Stack 3.30+ (znp)","CoordinatorFirmwareVersion":"Z-Stack 3.30+ (build 20220219)","DisplayFirmwareVersion":"Znp - Z-Stack 3.30+ (build 20220219)","CoordinatorIEEE":"00124b0024c989ef","NetworkSize":"Total: 40 | Routers: 26 | End Devices: 14","NetworkDevices":{"1002":{"_TZ3000_tqlv4ug4":["TS0001"],"_TZ3000_odzoiovu":["TS0003_relay_switch"],"_TZ3000_zmy4lslw":["TS0002_relay_switch"],"_TZ3000_dfgbtub0":["TS0042"]},"1037":{"LUMI":["lumi.weather"]},"1141":{"_TZ3000_tqlv4ug4":["TS0001"],"_TZE200_bjawzodf":["TS0601-temphumi"],"_TZ3000_xr3htd96":["TS0201"],"_TZ3000_zirycpws":["TS130F-_TZ3000_zirycpws"],"_TZE200_3towulqd":["TS0601-motion"],"_TZ3000_hdopuwv6":["TS011F-plug"]},"0000":{"eWeLink":["ZB-SW02"]}}},"Analytics":1,"Device":{"Version":"3","ZDeviceName":"CompteurEnergie","Status":"UNKNOW","SQN":"1e","Ep":{"01":{"0000":{"0004":"_TZE204_cjbofhxw","0005":"TS0601","0001":"70","ffe2":"31","ffe4":"1"},"0004":{},"0005":{},"ef00":{},"0019":{},"000a":{}}},"Heartbeat":"133","RIA":"4","LQI":149,"Battery":{},"Model":"TS0601","ForceAckCommands":[],"MacCapa":"8e","IEEE":"70ac08fffed03e20","Type":{},"ProfileID":"0104","ZDeviceID":"0051","App Version":"70","Attributes List":{},"DeviceType":"FFD","HW Version":"","Last Cmds":[],"LogicalType":"Router","Manufacturer":"1002","Manufacturer Name":"_TZE204_cjbofhxw","NbEp":"1","PowerSource":"Main","ReadAttributes":{"Ep":{"01":{"0000":{"TimeStamp":1679077290,"iSQN":{"0004":"00","0005":"00"},"Attributes":{"0004":"00","0005":"00","0001":"00","ffe2":"00","ffe4":"00"},"ZigateRequest":{}}}}},"ReceiveOnIdle":"On","Stack Version":"","Stamp":{"time":1679077941.4498253,"Time":"2023-03-17 19:32:21","MsgType":"8011","LastSeen":1679077941},"ZCL Version":"","Health":"Live","Capability":["Full-Function Device","Main Powered","Receiver during Idle","Standard security","NwkAddr should be allocated"],"ZDPSQN":"03","ZCL-IN-SQN":{"ef00":"1e","000a":"02","0000":"79"},"RollingLQI":[145,145,145,145,145,145,145,145,149,149,149],"Epv2":{"01":{"ClusterIn":{"0000":{},"0004":{},"0005":{},"ef00":{}},"ClusterOut":{"0019":{},"000a":{}},"ProfileID":"0104","ZDeviceID":"0051"}},"ZCLSQN":"00","WriteAttributes":{"Ep":{"01":{"0000":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}}}}},"ZDeviceVersion":"0001","ConfigSource":"8043","PairingInProgress":true,"_rawNodeDescriptor":"1002005200522c00008e524001","Max Buffer Size":"52","Max Rx":"0052","Max Tx":"0052","macapa":"8e","bitfield":"4001","server_mask":"2c00","descriptor_capability":"00","Tuya":{"TUYA_MCU_VERSION_RSP":"40"},"SQN_000a":"02","Param":{},"CheckParam":true}}
- je suis en Plugin: Plugin: 6.3.011 / Firmware: Znp - Z-Stack 3.30+ (build 20220219
- J'utilise le module SonOff (https://www.amazon.fr/gp/product/B09KXT ... UTF8&psc=1) que j'ai flashé selon le tuto Zigbee2MQTT (https://www.zigbee2mqtt.io/guide/adapters/#recommended ), avec la version : CC1352P2_CC2652P_launchpad_coordinator_20220219
- la liste des objets raw est jointe en fichier rar
- le compteur est nommé "CompteurEnergie"

Est-il possible de regarder pour reconnaitre le compteur ?
Merci d'avance pour votre aide.

Très bonne soirée !
Pièces jointes
export-CompteurEnergie.json
(225.21 Kio) Téléchargé 58 fois
Dernière modification par vinchz31 le 02 avr. 2023, 16:53, modifié 1 fois.
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Ajout matériel - Compteur énergie "Zigbee Smart Meter with CT"

Message par pipiche »

merci de basculer sur la branche develop

Code : Tout sélectionner

git checkout develop
git pull
sudo python3 -m pip install -r requirements.txt --upgrade
relancer le plugin
et refaire l'appairage
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
vinchz31
Messages : 312
Inscription : 21 nov. 2016, 07:51

Re: Ajout matériel - Compteur énergie "Zigbee Smart Meter with CT"

Message par vinchz31 »

TOut se passe bien jusqu'à la dernière commande qui me renvoie :

Code : Tout sélectionner

sudo python3 -m pip install -r requirements.txt --upgrade
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting bellows==0.34.10 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/b7/97/dec9d4b072f2167c6ef2018b2405eabc2ab082a7b854be6f7660d64c985b/bellows-0.34.10-py3-none-any.whl (216kB)
    100% |████████████████████████████████| 225kB 860kB/s
Collecting dnspython==2.3.0 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/12/86/d305e87555430ff4630d729420d97dece3b16efcbf2b7d7e974d11b0d86c/dnspython-2.3.0-py3-none-any.whl (283kB)
    100% |████████████████████████████████| 286kB 854kB/s
Requirement already up-to-date: pyserial>=3.5 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 3)) (3.5)
Collecting z4d-certified-devices (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/90/a0/f82ca769c138806d33e22e891fd13e79f36980114baadfe9a4512a253506/z4d_certified_devices-1.13-py3-none-any.whl (280kB)
    100% |████████████████████████████████| 286kB 940kB/s
Collecting zigpy==0.53.3 (from -r requirements.txt (line 5))
  Could not find a version that satisfies the requirement zigpy==0.53.3 (from -r requirements.txt (line 5)) (from versions: 0.0.1, 0.0.2, 0.0.3, 0.1.0, 0.2.0, 0.20.0a1, 0.20a2, 0.20.0, 0.20.1a1, 0.20.1a2, 0.20.1a3, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.21.0, 0.22.0, 0.22.1, 0.22.2, 0.23.0, 0.23.1, 0.23.2, 0.24.0, 0.24.1, 0.24.2, 0.24.3, 0.25.0, 0.26.0, 0.27.0, 0.27.1, 0.28.0, 0.28.1, 0.28.2, 0.29.0, 0.30.0, 0.30.1, 0.31.0, 0.32.0, 0.33.0, 0.34.0, 0.35.0, 0.35.1, 0.35.2, 0.36.0, 0.36.1, 0.36.2, 0.37.0, 0.37.1, 0.37.2, 0.38.0, 0.39.0, 0.40.0, 0.41.0, 0.42.0, 0.43.0, 0.44.1, 0.44.2, 0.45.0.dev0, 0.45.0, 0.45.1, 0.46.0, 0.47.0, 0.47.1, 0.47.2, 0.50.1, 0.50.2, 0.50.3, 0.51.0, 0.51.1, 0.51.2, 0.51.3, 0.51.4, 0.51.5, 0.51.6)
No matching distribution found for zigpy==0.53.3 (from -r requirements.txt (line 5))
J'ai ensuite des erreurs au démarrage du module dans domoticz :

Code : Tout sélectionner

2023-03-18 08:01:54.413 Passerelle_Zigbee: Worker thread started.
2023-03-18 08:01:54.413 Status: Passerelle_Zigbee: Entering work loop.
2023-03-18 08:01:54.414 Status: Passerelle_Zigbee: Started.
2023-03-18 08:01:56.284 Error: Passerelle_Zigbee: (Zigate) failed to load 'plugin.py', Python Path used was '/home/vinchz31/domoticz/plugins/Domoticz-Zigbee/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2023-03-18 08:01:56.287 Error: Passerelle_Zigbee: Traceback (most recent call last):
2023-03-18 08:01:56.287 Error: Passerelle_Zigbee: File "/home/vinchz31/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 96, in <module>
2023-03-18 08:01:56.288 Error: Passerelle_Zigbee: from importlib.metadata import version as import_version
2023-03-18 08:01:56.288 Error: Passerelle_Zigbee: ModuleNotFoundError: No module named 'importlib.metadata'
Il n'y a rien dans le fichier "PluginZigbee_14.log" (je suppose que comme le pluggin ne démarre plus il ne log rien)...
J'essaye de repasser sur l'ancienne version...
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Ajout matériel - Compteur énergie "Zigbee Smart Meter with CT"

Message par pipiche »

Il semble que tu sois en python3.7 qui ne va plus etre supporté


peux-tu faire la commande

Code : Tout sélectionner

sudo python3 -m pip --no-input install -r requirements.txt --ignore-requires-python --upgrade
vinchz31
Messages : 312
Inscription : 21 nov. 2016, 07:51

Re: Ajout matériel - Compteur énergie "Zigbee Smart Meter with CT"

Message par vinchz31 »

Testé, même retour :-(
Juste pour rappel, j'ai bien fait un upgrade sur Python 3.9.9 (j'ai bien contrôlé mes liens symboliques qui sont bons et j'ai testé la version avec "python --version" qui me donne bien "Python 3.9.9" ) mais il ne semble pas pris en compte. Dans un autre post, tu m'avais indiqué "pour passer en 3.9 il faut impérativement passer à bullseye" et effectivement je suis en Buster. Bizarre toutefois que tout se passe bien lors de l'upgrade Python réalisé manuellement...

Code : Tout sélectionner

sudo python3 -m pip --no-input install -r requirements.txt --ignore-requires-python --upgrade
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting bellows==0.34.10 (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/b7/97/dec9d4b072f2167c6ef2018b2405eabc2ab082a7b854be6f7660d64c985b/bellows-0.34.10-py3-none-any.whl
Collecting dnspython==2.3.0 (from -r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/12/86/d305e87555430ff4630d729420d97dece3b16efcbf2b7d7e974d11b0d86c/dnspython-2.3.0-py3-none-any.whl
Requirement already up-to-date: pyserial>=3.5 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 3)) (3.5)
Collecting z4d-certified-devices (from -r requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/90/a0/f82ca769c138806d33e22e891fd13e79f36980114baadfe9a4512a253506/z4d_certified_devices-1.13-py3-none-any.whl
Collecting zigpy==0.53.3 (from -r requirements.txt (line 5))
  Could not find a version that satisfies the requirement zigpy==0.53.3 (from -r requirements.txt (line 5)) (from versions: 0.0.1, 0.0.2, 0.0.3, 0.1.0, 0.2.0, 0.20.0a1, 0.20a2, 0.20.0, 0.20.1a1, 0.20.1a2, 0.20.1a3, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.21.0, 0.22.0, 0.22.1, 0.22.2, 0.23.0, 0.23.1, 0.23.2, 0.24.0, 0.24.1, 0.24.2, 0.24.3, 0.25.0, 0.26.0, 0.27.0, 0.27.1, 0.28.0, 0.28.1, 0.28.2, 0.29.0, 0.30.0, 0.30.1, 0.31.0, 0.32.0, 0.33.0, 0.34.0, 0.35.0, 0.35.1, 0.35.2, 0.36.0, 0.36.1, 0.36.2, 0.37.0, 0.37.1, 0.37.2, 0.38.0, 0.39.0, 0.40.0, 0.41.0, 0.42.0, 0.43.0, 0.44.1, 0.44.2, 0.45.0.dev0, 0.45.0, 0.45.1, 0.46.0, 0.47.0, 0.47.1, 0.47.2, 0.50.1, 0.50.2, 0.50.3, 0.51.0, 0.51.1, 0.51.2, 0.51.3, 0.51.4, 0.51.5, 0.51.6)
No matching distribution found for zigpy==0.53.3 (from -r requirements.txt (line 5))

pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Ajout matériel - Compteur énergie "Zigbee Smart Meter with CT"

Message par pipiche »

Il faut bullseye car avec Domoticz ce qui est important c'est la librairie python3 et a ce stade tu es toujours sur une lib 3.7 et non pas 3.9.
vinchz31
Messages : 312
Inscription : 21 nov. 2016, 07:51

Re: Ajout matériel - Compteur énergie "Zigbee Smart Meter with CT"

Message par vinchz31 »

Du coup pas de solution à part tout réinstaller avec bullseye ? (Très lourd pour moi car j'ai beaucoup de choses qui tournent sur le raspberry) ?
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Ajout matériel - Compteur énergie "Zigbee Smart Meter with CT"

Message par pipiche »

Oui pas d'autre solution que de mettre à jour
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Ajout matériel - Compteur énergie "Zigbee Smart Meter with CT"

Message par Keros »

C'est réinstallation obligatoire du Bullseye ou on peut passer de Buster à Bullseye ? Je pense que oui.
Je ne l'ai pas fait car mon Pi avait crashé et j'en avais profité pour passer sous Bullseye à ce moment-là (en me mettre sur une béta de DomoticZ car, à l'époque, la stable n'avait pas le correctif pour que les plugins Python fonctionnent avec python >3.7).
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
Bibi49
Messages : 367
Inscription : 11 mars 2018, 12:42
Localisation : 49

Re: Ajout matériel - Compteur énergie "Zigbee Smart Meter with CT"

Message par Bibi49 »

Bonjour,

Si je peux me permettre, passer de Buster a Bulleyes via les lignes de commandes m'a causé énormément de soucis de compatibilité... (ok je suis pas doué en linux)

une installation a neuf depuis Raspberry Pi Imager m'aurais évité de nombreuses heures a galérer pour rien au final....

La version Lite avec l'installation de git-all, python3-dev et python3-pip est suffisant pour Domoticz et Z4D.
RPI 2 -> Bullseye Lite
DomoticZ -> 2024.7
RFXCom 433E -> Pro1 1041
DongleP - Z-Stack 3.30+ (build 20240710) /Z4D 7.1.025 [7.489]
CC1101 433Mhz "Itron EverBlue Cyble"
PiTInfo v1.4
USB->ùSD = Rpi-clones
Répondre