[Résolu] Ajout matériel ZEMISMART SPM01 (compteur énergie)

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Ajout matériel ZGMISMART SPM01 (compteur énergie)

Message par pipiche »

j'ai bien avancé.
Malheureusement j'ai du faire des modifs du coté du plugin, car juste coté config file ce n'etait pas suffisant.

Donc il faudrait que tu bascules sur une branche specifique

Code : Tout sélectionner

git pull
git checkout stable7-7.1.002
git pull
sudo python3 -m pip install -r requirements.txt --upgrade
puis relancer le plugin

tu actives debug Tuya0601

et on voit ce qu'il se passe. Surveilles les logs Domoticz et ceux du plugin. on est pas à l'abris d'erreur
Bibi49
Messages : 367
Inscription : 11 mars 2018, 12:42
Localisation : 49

Re: Ajout matériel ZGMISMART SPM01 (compteur énergie)

Message par Bibi49 »

maj du plugin faite :
un simple redemarrage du plugin m'a fait planter domoticz (freeze). redémarrage raspberry : OK

le plugin affiche la version 7.1.001 [2.82] mais la tension s'affiche bien dans domoticz (ce qui n'était pas la cas avant)

Log de domoticz au démarrage

Code : Tout sélectionner

2023-08-05 15:22:59.729 Z4D: Worker thread started.
2023-08-05 15:22:59.729 Status: Z4D: Started.
2023-08-05 15:22:59.741 Status: Z4D: Entering work loop.
2023-08-05 15:23:43.309 Status: Z4D: Initialized version 7.1, author 'pipiche38'
2023-08-05 15:23:43.374 Status: Z4D: Zigbee for Domoticz plugin starting
2023-08-05 15:23:43.374 Status: Z4D: Z4D plugin requires python3 3.8 or above and you are running 3.9
2023-08-05 15:23:43.376 Status: Z4D: Checking Python modules /home/pi/domoticz/plugins/Domoticz-Zigbee/requirements.txt
2023-08-05 15:23:58.930 Z4D: load PluginConf
2023-08-05 15:23:58.954 Z4D: Loading PluginConf - from Domoticz sqlite Db
2023-08-05 15:23:58.956 Z4D: /home/pi/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-08.json timestamp is 1691152420.8085272
2023-08-05 15:23:58.957 Z4D: Dz PluginConf is older than Json Dz: 0 Json: 1691152420.8085272
2023-08-05 15:23:58.990 Z4D: Installing plugin custom page /home/pi/domoticz/www/templates/Z4D.html
2023-08-05 15:23:58.994 Z4D: Starting LoggingManagement thread
2023-08-05 15:23:58.995 Z4D: zigpy_login_mode(30)
2023-08-05 15:23:58.979 Status: Z4D: PluginAnalytics set to 1
2023-08-05 15:23:58.980 Status: Z4D: Wiser2 set to 1
2023-08-05 15:23:58.980 Status: Z4D: autoRestore set to 0
2023-08-05 15:23:58.980 Status: Z4D: checkFirmwareAgainstZigbeeOTARepository set to 0
2023-08-05 15:23:58.981 Status: Z4D: blueLedOnOff set to 0
2023-08-05 15:23:58.982 Status: Z4D: channel set to 15
2023-08-05 15:23:58.982 Status: Z4D: filename set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-08.json
2023-08-05 15:23:58.982 Status: Z4D: pluginHome set to /home/pi/domoticz/plugins/Domoticz-Zigbee
2023-08-05 15:23:58.983 Status: Z4D: homedirectory set to /home/pi/domoticz/plugins/Domoticz-Zigbee
2023-08-05 15:23:58.983 Status: Z4D: pluginData set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Data
2023-08-05 15:23:58.983 Status: Z4D: pluginConfig set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Conf
2023-08-05 15:23:58.984 Status: Z4D: pluginOTAFirmware set to /home/pi/domoticz/plugins/Domoticz-Zigbee/OTAFirmware
2023-08-05 15:23:58.984 Status: Z4D: pluginReports set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Reports
2023-08-05 15:23:58.984 Status: Z4D: pluginWWW set to /home/pi/domoticz/plugins/Domoticz-Zigbee/www
2023-08-05 15:23:58.984 Status: Z4D: pluginLogs set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Logs
2023-08-05 15:23:58.985 Status: Z4D: logDeviceUpdate set to 0
2023-08-05 15:23:58.986 Status: Z4D: Schneider set to 1
2023-08-05 15:23:58.987 Status: Z4D: ControllerInRawMode set to True
2023-08-05 15:23:58.987 Status: Z4D: expJsonDatabase set to 0
2023-08-05 15:23:58.987 Status: Z4D: ControllerInRawMode set to True
2023-08-05 15:23:59.027 Z4D: start_logging_thread
2023-08-05 15:23:59.032 Z4D: logging_thread - listening
2023-08-05 15:23:59.035 Status: Z4D: Please watch plugin log into /home/pi/domoticz/plugins/Domoticz-Zigbee/Logs/PluginZigbee_08.log
2023-08-05 15:23:59.086 Status: Z4D: Zigbee for Domoticz (z4d) plugin stable7-7.1.001 started
2023-08-05 15:23:59.397 Status: Z4D: Loading ZCL Cluster definitions
2023-08-05 15:23:59.428 Status: Z4D: - ZCL Cluster 0000 - (V1) Basic loaded
2023-08-05 15:23:59.444 Status: Z4D: - ZCL Cluster 0001 - (V1) Power loaded
2023-08-05 15:23:59.458 Status: Z4D: - ZCL Cluster 0002 - (V1) Device Temperature Configuration loaded
2023-08-05 15:23:59.469 Status: Z4D: - ZCL Cluster 0003 - (V1) Identify loaded
2023-08-05 15:23:59.480 Status: Z4D: - ZCL Cluster 0004 - (V1) Groups loaded
2023-08-05 15:23:59.495 Status: Z4D: - ZCL Cluster 0005 - (V1) Scenes loaded
2023-08-05 15:23:59.507 Status: Z4D: - ZCL Cluster 0006 - (V1) On/Off loaded
2023-08-05 15:23:59.516 Status: Z4D: - ZCL Cluster 0008 - (V1) Level loaded
2023-08-05 15:23:59.528 Status: Z4D: - ZCL Cluster 0009 - (V1) Alarms loaded
2023-08-05 15:23:59.541 Status: Z4D: - ZCL Cluster 000a - (V1) Time loaded
2023-08-05 15:23:59.553 Status: Z4D: - ZCL Cluster 000d - (V1) Analog Output loaded
2023-08-05 15:23:59.564 Status: Z4D: - ZCL Cluster 000f - (V1) Binary Input loaded
2023-08-05 15:23:59.576 Status: Z4D: - ZCL Cluster 0013 - (V1) Multistate Output loaded
2023-08-05 15:23:59.588 Status: Z4D: - ZCL Cluster 0019 - (V1) OTA Upgrade loaded
2023-08-05 15:23:59.600 Status: Z4D: - ZCL Cluster 0020 - (V1) Poll Control loaded
2023-08-05 15:23:59.614 Status: Z4D: - ZCL Cluster 0102 - (V1) Window Covering loaded
2023-08-05 15:23:59.626 Status: Z4D: - ZCL Cluster 0202 - (V1) Fan Control loaded
2023-08-05 15:23:59.638 Status: Z4D: - ZCL Cluster 0204 - (V1) Thermostat User Interface Configuration loaded
2023-08-05 15:23:59.654 Status: Z4D: - ZCL Cluster 0300 - (V1) Color Control loaded
2023-08-05 15:23:59.668 Status: Z4D: - ZCL Cluster 0301 - (V1) Ballast Configuration loaded
2023-08-05 15:23:59.680 Status: Z4D: - ZCL Cluster 0400 - (V1) Illuminance Level Sensing loaded
2023-08-05 15:23:59.693 Status: Z4D: - ZCL Cluster 0402 - (V1) Temperature Measurement loaded
2023-08-05 15:23:59.706 Status: Z4D: - ZCL Cluster 0403 - (V1) Pressure Measurement loaded
2023-08-05 15:23:59.718 Status: Z4D: - ZCL Cluster 0405 - (V1) Relative Humidity Measurement loaded
2023-08-05 15:23:59.732 Status: Z4D: - ZCL Cluster 0406 - (V1) Occupancy Sensing loaded
2023-08-05 15:23:59.774 Status: Z4D: - ZCL Cluster 0700 - (V1) Price loaded
2023-08-05 15:23:59.796 Status: Z4D: - ZCL Cluster 0702 - (V1) Metering (Smart Energy) loaded
2023-08-05 15:23:59.810 Status: Z4D: - ZCL Cluster 0b01 - (V1) Meter Identification loaded
2023-08-05 15:23:59.833 Status: Z4D: - ZCL Cluster 0b04 - (V1) Electrical Measurement loaded
2023-08-05 15:23:59.850 Status: Z4D: - ZCL Cluster 0b05 - (V1) Diagnostics loaded
2023-08-05 15:23:59.862 Status: Z4D: - ZCL Cluster e000 - (V1) Tuya E000 Private Cluster loaded
2023-08-05 15:23:59.874 Status: Z4D: - ZCL Cluster e001 - (V1) Tuya E001 Private Cluster loaded
2023-08-05 15:23:59.886 Status: Z4D: - ZCL Cluster e002 - (V1) Tuya E002 Private Cluster loaded
2023-08-05 15:23:59.899 Status: Z4D: - ZCL Cluster fcc0 - (V1) LUMI Private Cluster loaded
2023-08-05 15:23:59.916 Status: Z4D: - ZCL Cluster ff66 - (V1) Lixee Zlinky private cluster loaded
2023-08-05 15:23:59.963 Status: Z4D: DeviceConf loaded - 16 confs loaded
2023-08-05 15:24:00.050 Status: Z4D: Local-Device conf loaded - 22 confs loaded
2023-08-05 15:24:00.674 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:24:05.514 Status: Z4D: Certified Devices loaded - 501 confs loaded
2023-08-05 15:24:05.518 Status: Z4D: load ListOfDevice
2023-08-05 15:24:06.215 Status: Z4D: 6 Entries loaded from /home/pi/domoticz/plugins/Domoticz-Zigbee/Data/DeviceList-8.txt
2023-08-05 15:24:06.469 Status: Z4D: Transport mode: ZigpydeCONZ
2023-08-05 15:24:14.681 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:24:24.499 Status: Z4D: Start Zigpy Transport on deCONZ
2023-08-05 15:24:24.577 Status: Z4D: Starting radio deCONZ port: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2669869-if00
2023-08-05 15:24:24.597 Status: Z4D: ZigpyTransport: thread_processing_and_sending Thread start.
2023-08-05 15:24:24.613 Status: Z4D: Start Web Server connection
2023-08-05 15:24:25.277 Status: Z4D: Web backend for Web User Interface started on port: 9440
2023-08-05 15:24:25.313 Status: Z4D: Plugin looks to upgrade the Certified Device package
2023-08-05 15:24:25.722 Status: Z4D: Started radio deCONZ port: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2669869-if00
2023-08-05 15:24:28.689 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:24:36.443 Status: Z4D: Adding Wiser2 Endpoint 0x3
2023-08-05 15:24:42.700 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:24:55.593 Status: Z4D: deConz Radio manufacturer: dresden elektronik
2023-08-05 15:24:55.615 Status: Z4D: deConz Radio board model: ConBee II
2023-08-05 15:24:55.619 Status: Z4D: deConz Radio version: 0x26790700
2023-08-05 15:24:55.698 Status: Z4D: Network settings
2023-08-05 15:24:55.739 Status: Z4D: Device IEEE: 00:21:2e:ff:ff:09:7f:a1
2023-08-05 15:24:55.760 Status: Z4D: Device NWK: 0x0000
2023-08-05 15:24:55.780 Status: Z4D: Network Update Id: 0x0000
2023-08-05 15:24:55.815 Status: Z4D: PAN ID: 0x6CFF
2023-08-05 15:24:55.819 Status: Z4D: Extended PAN ID: 34:85:e9:ed:6b:f9:f3:79
2023-08-05 15:24:55.854 Status: Z4D: Channel: 15
2023-08-05 15:24:55.962 Status: Z4D: ConBee II
2023-08-05 15:24:55.967 Status: Z4D: Installer Version Number: 0x26790700
2023-08-05 15:24:55.971 Status: Z4D: Branch Version: ==> ConBee II <==
2023-08-05 15:24:56.406 Status: Z4D: Zigbee Coordinator ieee: 00212effff097fa1 , short addr: 0000
2023-08-05 15:24:56.411 Status: Z4D: Network state UP, PANID: 6cff extPANID: 0x3485e9ed6bf9f379 Channel: 15
2023-08-05 15:24:56.714 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:25:14.244 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:25:28.254 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:25:42.294 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:25:56.302 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:26:10.323 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:26:24.332 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:26:38.355 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:26:52.373 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:27:06.393 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:27:20.406 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:27:34.428 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:27:48.443 Error: Z4D hardware (8) thread seems to have ended unexpectedly
2023-08-05 15:27:54.027 Status: Z4D: Domoticz Widgets usage is at 6.7 % (238 units free)
2023-08-05 15:28:02.188 Status: Z4D: Request Disabling Accepting new Hardware
2023-08-05 15:28:07.163 Status: Z4D: coordinator set to Certification : 1/CE -> CE
2023-08-05 15:28:08.308 Status: Z4D: ota_scan_folder Following Firmware have been loaded
2023-08-05 15:28:08.315 Status: Z4D: Plugin with Zigpy, Coordinator ConBee II firmware deCONZ - 0x26790700 correctly initialized
export.json
(26.86 Kio) Téléchargé 65 fois
_PluginZigbee_08.zip
(56.37 Kio) Téléchargé 56 fois

Aucun problème en cas d'erreur ;)
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
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Ajout matériel ZGMISMART SPM01 (compteur énergie)

Message par pipiche »

y-avait pas de charge a ce moment ?
Bibi49
Messages : 367
Inscription : 11 mars 2018, 12:42
Localisation : 49

Re: Ajout matériel ZGMISMART SPM01 (compteur énergie)

Message par Bibi49 »

Si, j'ai allumer le four puis actualisé la page du plugin avant de récupérer l'export.json...

Je recommence plus longtemps si tu veux...
Capture d’écran 2023-08-05 155557.png
Capture d’écran 2023-08-05 155557.png (120.78 Kio) Consulté 496 fois
3372W
Dernière modification par Bibi49 le 05 août 2023, 15:57, modifié 1 fois.
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
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Ajout matériel ZGMISMART SPM01 (compteur énergie)

Message par pipiche »

du coup est-ce que les Watts, Ampere et Meter fonctionnent ?
Bibi49
Messages : 367
Inscription : 11 mars 2018, 12:42
Localisation : 49

Re: Ajout matériel ZGMISMART SPM01 (compteur énergie)

Message par Bibi49 »

Watts, Amperes, et Volts OK

Meter a des valeurs aberrante pour le Samedi 5 Aout a minuit : je pense que c'est hors sujet...
Capture d’écran 2023-08-05 160038.png
Capture d’écran 2023-08-05 160038.png (152.43 Kio) Consulté 491 fois
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
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Ajout matériel ZGMISMART SPM01 (compteur énergie)

Message par pipiche »

surveille le Meter, il est possible qu'il manque une division par 10, 100, 1000

en tous les cas, canon que ca fonctionne ;-)
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
Bibi49
Messages : 367
Inscription : 11 mars 2018, 12:42
Localisation : 49

Re: Ajout matériel ZGMISMART SPM01 (compteur énergie)

Message par Bibi49 »

sur un petit laps de temps c'est réaliste
Capture d’écran 2023-08-05 161316.png
Capture d’écran 2023-08-05 161316.png (19.24 Kio) Consulté 483 fois
Capture d’écran 2023-08-05 161515.png
Capture d’écran 2023-08-05 161515.png (19.8 Kio) Consulté 483 fois
avec environ 2 minute d'ecarts entre les deux captures, ça semble realiste

3400/60 =56,66 watts par minutes théorique.

Apres je connais pas la fréquence de rafraichissement des info remonté a Domoticz

je ferais des tests plus pousser ce soir (madame n'est pas tres contente que le four soit allumé :oops: )



Edit 16h36

Apres réflexion, je parle en Watts et les captures sont en KW... :roll:

Donc division par 1 000
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
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Ajout matériel ZGMISMART SPM01 (compteur énergie)

Message par pipiche »

en fait sur ce widget tu as 2 informations

La puissance instantannée affichée en Watts et la puissance cummulée en Kw
Bibi49
Messages : 367
Inscription : 11 mars 2018, 12:42
Localisation : 49

Re: Ajout matériel ZGMISMART SPM01 (compteur énergie)

Message par Bibi49 »

tu as aussi "Last Seen" avec l'heures...

Tu a environ 50 kW d'ajouté en 2 minutes (la théorie serait de 112w en 120 secondes)
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