Problème info prise Zigbee

Bonjour,

Je suis sous Jeedom 4.1.28 sur un NUC dédié avec WifilightV2 en 2021-12-22 09:57:14.

J’ai ajouté la nouvelle Gateway Zemismart Homekit en sélectionnant Passerelle Zigbee avec succés :

Jai ajouté 2 prises Zigbee Noname en sélectionnant plug 1 +conso avec succès :

Tout est fonctionnel avec retour d’état. Il y a juste un problème sur la mise à jour des valeurs info concernant la consommation des prises. En effet elles ne se mettent pas à jour d’elle même, mais uniquement lorsque j’ouvre la prise sur l’app Smartlife.

Une idée du problème et de comment le régler?

Voici un log où j’éteins la prise avec le plugin sans que la conso ne se mette à jour, puis j’ouvre l’app smartlife et la prise concerné qui se met à jour sur le plugin directement.

[2022-01-10 11:44:52][DEBUG] :     Cmd to 127.0.0.1: {"cid":"a4c138baa4f1525a","dps":{"1":false},"t":"1641811492"} - canal:3 - Try:127.0.0.1  6900 - Connect OK!
[2022-01-10 11:44:52][DEBUG] :     Receive from Jeedom to Send cmd to device @192.168.1.74 chanel:3
[2022-01-10 11:44:52][DEBUG] :     Cmd to 192.168.1.74 - Try:192.168.1.74  6668 - Connect OK!
[2022-01-10 11:44:52][DEBUG] :     No state update
[2022-01-10 11:44:52][DEBUG] : Receive from:192.168.1.74
[2022-01-10 11:44:52][DEBUG] :   Empty response
[2022-01-10 11:44:52][DEBUG] : Receive from:192.168.1.74
[2022-01-10 11:44:52][DEBUG] :  Mess: {"dps":{"1":false},"cid":"a4c138baa4f1525a","t":1641811492} - Read Json OK
[2022-01-10 11:44:52][DEBUG] :   found Zigbee:Prise TV
[2022-01-10 11:44:52][DEBUG] :      Dps1|SwOnOffGet:0
[2022-01-10 11:44:52][DEBUG] :      No other states to update
[2022-01-10 11:44:57][DEBUG] : << Ping of: Prise chambre @192.168.1.83  diff:16
[2022-01-10 11:44:57][DEBUG] :     Cmd to 192.168.1.83:  - Try:192.168.1.83  6668 - Connect OK!
[2022-01-10 11:44:57][DEBUG] : << Ping of: Prise Lyse @192.168.1.86  diff:16
[2022-01-10 11:44:57][DEBUG] :     Cmd to 192.168.1.86:  - Try:192.168.1.86  6668 - Connect OK!
[2022-01-10 11:44:57][DEBUG] : << Ping of: Prise garage @192.168.1.81  diff:16
[2022-01-10 11:44:57][DEBUG] :     Cmd to 192.168.1.81:  - Try:192.168.1.81  6668 - Connect OK!
[2022-01-10 11:44:57][DEBUG] : << Ping of: Prise guirlande @192.168.1.82  diff:16
[2022-01-10 11:44:57][DEBUG] :     Cmd to 192.168.1.82:  - Try:192.168.1.82  6668 - Connect OK!
[2022-01-10 11:44:57][DEBUG] : << Ping of: Hub Zemis @192.168.1.74  diff:16
[2022-01-10 11:44:57][DEBUG] :     Cmd to 192.168.1.74:  - Try:192.168.1.74  6668 - Connect OK!
[2022-01-10 11:44:57][DEBUG] : Receive from:192.168.1.74
[2022-01-10 11:44:57][DEBUG] :   Empty response
[2022-01-10 11:44:57][DEBUG] : Receive from:192.168.1.86
[2022-01-10 11:44:57][DEBUG] :   Empty response
[2022-01-10 11:44:57][DEBUG] : Receive from:192.168.1.82
[2022-01-10 11:44:57][DEBUG] :   Empty response
[2022-01-10 11:44:57][DEBUG] : Receive from:192.168.1.83
[2022-01-10 11:44:57][DEBUG] :   Empty response
[2022-01-10 11:44:57][DEBUG] : Receive from:192.168.1.81
[2022-01-10 11:44:57][DEBUG] :   Empty response
[2022-01-10 11:45:00][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices - V1.83 stable <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2022-01-10 11:45:00][DEBUG] : ** Interrupteur chambre - Ewelink @192.168.1.61 **
[2022-01-10 11:45:00][DEBUG] : ** Prise chambre - Tuya_SW_V2 @192.168.1.83 - c:1 **
[2022-01-10 11:45:00][DEBUG] :      key:0 @192.168.1.83 c:1 d:3
[2022-01-10 11:45:00][DEBUG] : ** Interrupteur Lucas - Ewelink @192.168.1.62 **
[2022-01-10 11:45:00][DEBUG] : ** Prise Lucas - Tuya_SW_V2 @192.168.1.85 - c:1 **
[2022-01-10 11:45:00][DEBUG] :      key:1 @192.168.1.85 c:1 d:9
[2022-01-10 11:45:00][DEBUG] : ** Interrupteur Lyse - Ewelink @192.168.1.63 **
[2022-01-10 11:45:00][DEBUG] : ** Prise Lyse - Tuya_SW_V2 @192.168.1.86 - c:1 **
[2022-01-10 11:45:00][DEBUG] :      key:2 @192.168.1.86 c:1 d:3
[2022-01-10 11:45:00][DEBUG] : ** Interrupteur couloir - Ewelink @192.168.1.60 **
[2022-01-10 11:45:00][DEBUG] : ** Prise garage - Tuya_SW_V2 @192.168.1.81 - c:1 **
[2022-01-10 11:45:00][DEBUG] :      key:3 @192.168.1.81 c:1 d:3
[2022-01-10 11:45:00][DEBUG] : ** Prise guirlande - Tuya_SW_V2 @192.168.1.82 - c:1 **
[2022-01-10 11:45:00][DEBUG] :      key:4 @192.168.1.82 c:1 d:3
[2022-01-10 11:45:00][DEBUG] : ** Hub Zemis - TuyaCustom2_Hub_V2 @192.168.1.74 - c:1 **
[2022-01-10 11:45:00][DEBUG] :      key:5 @192.168.1.74 c:1 d:3
[2022-01-10 11:45:00][DEBUG] : ** Prise BUFFET - TuyaCustom2_V2 @192.168.1.74 - c:2 **
[2022-01-10 11:45:00][DEBUG] :      key:5 @192.168.1.74 c:2 d:3
[2022-01-10 11:45:00][DEBUG] : ** Prise TV - TuyaCustom2_V2 @192.168.1.74 - c:3 **
[2022-01-10 11:45:00][DEBUG] :      key:5 @192.168.1.74 c:3 d:3
[2022-01-10 11:45:00][DEBUG] : ** Prise sapin - Tuya_SW_V2 @192.168.1.84 - c:1 **
[2022-01-10 11:45:00][DEBUG] :     Key:8 Diff:61  No connection wait:61
[2022-01-10 11:45:00][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  Memory used :3239 ko <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2022-01-10 11:45:07][DEBUG] : << Ping of: Prise Lucas @192.168.1.85  diff:16
[2022-01-10 11:45:07][DEBUG] :     Cmd to 192.168.1.85:  - Try:192.168.1.85  6668 - Connect OK!
[2022-01-10 11:45:07][DEBUG] : Receive from:192.168.1.85
[2022-01-10 11:45:07][DEBUG] :   Empty response
[2022-01-10 11:45:09][DEBUG] : Receive from:192.168.1.74
[2022-01-10 11:45:09][DEBUG] :  Mess: {"dps":{"18":0,"19":0,"20":2310},"cid":"a4c138baa4f1525a","t":1641811509} - Read Json OK
[2022-01-10 11:45:09][DEBUG] :   found Zigbee:Prise TV
[2022-01-10 11:45:09][DEBUG] :      Dps18|CurrentGet formula:#value#/1000 #value#:0 After:0 Dps19|PowerGet formula:#value#/10 #value#:0 After:0 Dps20|VoltageGet formula:#value#/10 #value#:2310 After:231
[2022-01-10 11:45:09][DEBUG] :      No other states to update

oui et le plugin n’y peut rien, la prise n’envoie ces informations que si l’appli est connectée.
Pour s’en sortir, il y a une option dans le plugin qui interroge la prise soutes les 20s.

AH ok! Je n’avais pas vu cette info dans la doc, je suis passer à côté? Merci pour ta réponse :wink:

J’ai forcé l’interrogation de l’état sans succès …

logs merci

[2022-01-11 09:36:53][DEBUG] : << Ping of: Prise chambre @192.168.1.83  diff:16
[2022-01-11 09:36:53][DEBUG] :     Cmd to 192.168.1.83:  - Try:192.168.1.83  6668 - Connect OK!
[2022-01-11 09:36:53][DEBUG] : << Ping of: Prise Lucas @192.168.1.85  diff:16
[2022-01-11 09:36:53][DEBUG] :     Cmd to 192.168.1.85:  - Try:192.168.1.85  6668 - Connect OK!
[2022-01-11 09:36:53][DEBUG] : << Ping of: Prise Lyse @192.168.1.86  diff:16
[2022-01-11 09:36:53][DEBUG] :     Cmd to 192.168.1.86:  - Try:192.168.1.86  6668 - Connect OK!
[2022-01-11 09:36:53][DEBUG] : << Ping of: Prise garage @192.168.1.81  diff:16
[2022-01-11 09:36:53][DEBUG] :     Cmd to 192.168.1.81:  - Try:192.168.1.81  6668 - Connect OK!
[2022-01-11 09:36:53][DEBUG] : << Ping of: Prise guirlande @192.168.1.82  diff:16
[2022-01-11 09:36:53][DEBUG] :     Cmd to 192.168.1.82:  - Try:192.168.1.82  6668 - Connect OK!
[2022-01-11 09:36:53][DEBUG] : << Ping of: Hub Zemis @192.168.1.74  diff:16
[2022-01-11 09:36:53][DEBUG] :     Cmd to 192.168.1.74:  - Try:192.168.1.74  6668 - Connect OK!
[2022-01-11 09:36:53][DEBUG] : << Update state of: Prise BUFFET @192.168.1.74
[2022-01-11 09:36:53][DEBUG] :     Cmd to 192.168.1.74: {"gwId":"a4c13816eb099b6e","cid":"a4c13816eb099b6e"} - Try:192.168.1.74  6668 - Connect OK!
[2022-01-11 09:36:53][DEBUG] :      No dps states to update
[2022-01-11 09:36:53][DEBUG] :      No other states to update
[2022-01-11 09:36:53][DEBUG] : << Update state of: Prise TV @192.168.1.74
[2022-01-11 09:36:53][DEBUG] :     Cmd to 192.168.1.74: {"gwId":"a4c138baa4f1525a","cid":"a4c138baa4f1525a"} - Try:192.168.1.74  6668 - Connect OK!
[2022-01-11 09:36:53][DEBUG] :      No dps states to update
[2022-01-11 09:36:53][DEBUG] :      No other states to update
[2022-01-11 09:36:53][DEBUG] : Receive from:192.168.1.74
[2022-01-11 09:36:53][DEBUG] :   Empty response
[2022-01-11 09:36:53][DEBUG] :  Mess: {"dps":{"1":false,"9":0,"17":210,"18":0,"19":0,"20":2300,"27":"off","28":"relay","29":false},"cid":"a4c13816eb099b6e"} - Read Json OK
[2022-01-11 09:36:53][DEBUG] :   found Zigbee:Prise BUFFET
[2022-01-11 09:36:53][DEBUG] :      Dps1|SwOnOffGet:0 Dps17|ConsumptionGet formula:#value#/1000 #value#:210 After:0.21 Dps18|CurrentGet formula:#value#/1000 #value#:0 After:0 Dps19|PowerGet formula:#value#/10 #value#:0 After:0 Dps20|VoltageGet formula:#value#/10 #value#:2300 After:230 Dps28|LedState:relay
[2022-01-11 09:36:53][DEBUG] :      No other states to update
[2022-01-11 09:36:53][DEBUG] : Receive from:192.168.1.74
[2022-01-11 09:36:53][DEBUG] :  Mess: {"dps":{"1":false,"9":0,"17":270,"18":70,"19":100,"20":2380,"27":"off","28":"relay","29":false},"cid":"a4c138baa4f1525a"} - Read Json OK
[2022-01-11 09:36:53][DEBUG] :   found Zigbee:Prise TV
[2022-01-11 09:36:53][DEBUG] :      Dps1|SwOnOffGet:0 Dps17|ConsumptionGet formula:#value#/1000 #value#:270 After:0.27 Dps18|CurrentGet formula:#value#/1000 #value#:70 After:0.07 Dps19|PowerGet formula:#value#/10 #value#:100 After:10 Dps20|VoltageGet formula:#value#/10 #value#:2380 After:238 Dps28|LedState:relay
[2022-01-11 09:36:53][DEBUG] :      No other states to update
[2022-01-11 09:36:53][DEBUG] : Receive from:192.168.1.83
[2022-01-11 09:36:53][DEBUG] :   Empty response
[2022-01-11 09:36:53][DEBUG] : Receive from:192.168.1.85
[2022-01-11 09:36:53][DEBUG] :   Empty response
[2022-01-11 09:36:53][DEBUG] : Receive from:192.168.1.86
[2022-01-11 09:36:53][DEBUG] :   Empty response
[2022-01-11 09:36:53][DEBUG] : Receive from:192.168.1.82
[2022-01-11 09:36:53][DEBUG] :   Empty response
[2022-01-11 09:36:53][DEBUG] : Receive from:192.168.1.81
[2022-01-11 09:36:53][DEBUG] :   Empty response

Le plugin fait bien son taf à priori, mais les valeurs ne sont pas à jour.

parce que les dps ne sont pas les bons
maintenant c’est une interprétation car je ne sais pas de quel périph il est question.
Utiliser le mode apprentissage Tuya après avoir changé le deviceId pour que le plugin recrée un autre périphérique
Voir la doc