TUYA Zigbee GW et appareil Zigbee

donc refaire tous les tests

J’avais écrit cela :
Donc ça c’est réglé, mais c’était juste ta config.
maintenant je vais envoyer une beta avec moins de logs et il faudra tester avec la config custom V2. Ce que tu as fait j’ai l’impression.
mais j’aurais du dire xiaomi passerelle.

Ah ok je comprends mieux.

Donc normalement la config doit être bonne, mais même résultat.

Voici les logs

[2020-05-22 21:58:46][DEBUG] : >>>>Daemon Started
[2020-05-22 21:58:46][DEBUG] :    Memory used :2124 ko 888 o
[2020-05-22 21:58:46][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 21:58:46][DEBUG] : ****** Device listenable Barillet Salon - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 21:58:46][DEBUG] :    Key not set
[2020-05-22 21:58:46][DEBUG] :    Socket created  @192.168.0.57
[2020-05-22 21:58:46][DEBUG] :    ADD New device @192.168.0.57 channel:1
[2020-05-22 21:58:46][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:1 diff:0
[2020-05-22 21:58:46][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 21:58:46][DEBUG] :   Memory used :2227 ko 552 o
[2020-05-22 21:58:46][DEBUG] :    Update state @192.168.0.57
[2020-05-22 21:58:46][DEBUG] :     Cmd to 192.168.0.57 : {"gwId":"ec1bbdfffe781b28","cid":"ec1bbdfffe781b28"} - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 21:58:46][DEBUG] :     Update state
[2020-05-22 21:58:46][DEBUG] :     Receive after decode :{"dps":{"107":3,"161":"Esc"},"cid":"ec1bbdfffe781b28"}
[2020-05-22 21:58:46][DEBUG] :      dps:
[2020-05-22 21:58:46][DEBUG] :     Read Json OK
[2020-05-22 21:58:46][DEBUG] :     Cid in state
[2020-05-22 21:58:46][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781b28
[2020-05-22 21:58:46][DEBUG] :     Update state - Dps107:3 - Dps161:Esc
[2020-05-22 21:58:46][DEBUG] :    update GW
[2020-05-22 21:58:55][DEBUG] :     Cmd to 127.0.0.1: {"t":"1590177535","cid":"ec1bbdfffe781b28","dps":{"161":''Enter"}} - Try:127.0.0.1  6900 - Connect OK!
[2020-05-22 21:58:55][DEBUG] :     Cmd to 192.168.0.57 : AABVqgAAAAAAAAAHAAAAZzMuMwAAAAAAAAAAAAAAAN7kYtkDXcV2vIWrIApjFeNt/iIdLqO2fHlY0D4rnWVGjqsPgkjahe1yOlGNGparThvHVfpGX3SQAR29dFEYzPoMy3J4ZHhJdtR/IdR7bl3+O49CRgAAqlU= - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 21:58:55][DEBUG] :    No state update
[2020-05-22 21:58:55][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-22 21:58:55][DEBUG] :     Receive after decode :d
[2020-05-22 21:59:02][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 21:59:02][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 21:59:02][DEBUG] :     Receive after decode :Y
[2020-05-22 21:59:18][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 21:59:18][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 21:59:18][DEBUG] :     Receive after decode :Y
[2020-05-22 21:59:33][DEBUG] : >>>>Daemon Started
[2020-05-22 21:59:33][DEBUG] :    Memory used :2124 ko 888 o
[2020-05-22 21:59:33][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 21:59:33][DEBUG] : ****** Device listenable Barillet Salon - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 21:59:33][DEBUG] :    Key not set
[2020-05-22 21:59:33][DEBUG] :    Socket created  @192.168.0.57
[2020-05-22 21:59:33][DEBUG] :    ADD New device @192.168.0.57 channel:1
[2020-05-22 21:59:33][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:1 diff:0
[2020-05-22 21:59:33][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 21:59:33][DEBUG] :   Memory used :2227 ko 552 o
[2020-05-22 21:59:33][DEBUG] :    Update state @192.168.0.57
[2020-05-22 21:59:33][DEBUG] :     Cmd to 192.168.0.57 : {"gwId":"ec1bbdfffe781b28","cid":"ec1bbdfffe781b28"} - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 21:59:33][DEBUG] :     Update state
[2020-05-22 21:59:33][DEBUG] :     Receive after decode :{"dps":{"107":3,"161":"Esc"},"cid":"ec1bbdfffe781b28"}
[2020-05-22 21:59:33][DEBUG] :      dps:
[2020-05-22 21:59:33][DEBUG] :     Read Json OK
[2020-05-22 21:59:33][DEBUG] :     Cid in state
[2020-05-22 21:59:33][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781b28
[2020-05-22 21:59:33][DEBUG] :     Update state - Dps107:3 - Dps161:Esc
[2020-05-22 21:59:33][DEBUG] :    update GW
[2020-05-22 21:59:40][DEBUG] :     Cmd to 127.0.0.1: {"t":"1590177580","cid":"ec1bbdfffe781b28","dps":{"161":"Esc"}} - Try:127.0.0.1  6900 - Connect OK!
[2020-05-22 21:59:40][DEBUG] :     Cmd to 192.168.0.57 : AABVqgAAAAAAAAAHAAAAVzMuMwAAAAAAAAAAAAAAAHURzrSwguFaX8qUsATSjJdt/iIdLqO2fHlY0D4rnWVGjqsPgkjahe1yOlGNGparTrcwP52103TKdIchmQ/1r03g/3tmAACqVQ== - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 21:59:40][DEBUG] :    No state update
[2020-05-22 21:59:40][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-22 21:59:40][DEBUG] :     Receive after decode :Y
[2020-05-22 21:59:40][DEBUG] :     Receive after decode :{"dps":{"161":"Esc"},"cid":"ec1bbdfffe781b28","t":1590177579}
[2020-05-22 21:59:40][DEBUG] :      dps:
[2020-05-22 21:59:40][DEBUG] :     Read Json OK
[2020-05-22 21:59:40][DEBUG] :     Cid in state
[2020-05-22 21:59:40][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781b28
[2020-05-22 21:59:40][DEBUG] :     Update state - Dps161:Esc
[2020-05-22 21:59:40][DEBUG] :    update GW

peux tu mettre 1 double guillemet au lieu de 2 simple à gauche de Enter ?

:unamused: c’est vraiment navrant de faire une erreur aussi nul. Merci ça fonctionne.

peux tu faire tous les tests verifier le contrôle des 2 serrures et le retour d’état ainsi que connectedget (ce dernier je pense sera ko)
quel est l’intérêt de mettre la gateway dans le plugin ?

et peux tu me donner le lien vers la serrure ?

Alors j’ai désactivé le barillet salon, pour tester le ss sol. Tout fonctionne y compris le Connectget.

J’ai ensuite laissé les 2 activés mais dans ce cas le salon fonctionne à 100% mais le ss sol lui n’ a pas le retour d’état à tous les coups.

Je précise que les 2 périphériques sont biens en Gateway, mais dans les logs c’est indiqué Custom.

Voici les logs

[2020-05-22 22:29:09][DEBUG] : >>>>Daemon Started
[2020-05-22 22:29:09][DEBUG] :    Memory used :2124 ko 888 o
[2020-05-22 22:29:09][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 22:29:09][DEBUG] : ****** Device listenable Barillet Salon - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 22:29:09][DEBUG] :    Key not set
[2020-05-22 22:29:09][DEBUG] :    Socket created  @192.168.0.57
[2020-05-22 22:29:09][DEBUG] :    ADD New device @192.168.0.57 channel:1
[2020-05-22 22:29:10][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:1 diff:1
[2020-05-22 22:29:10][DEBUG] : ****** Device listenable Barillet ss Sol - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 22:29:10][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:1 diff:1
[2020-05-22 22:29:10][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 22:29:10][DEBUG] :   Memory used :2227 ko 672 o
[2020-05-22 22:29:10][DEBUG] :    Update state @192.168.0.57
[2020-05-22 22:29:10][DEBUG] :     Cmd to 192.168.0.57 : {"gwId":"ec1bbdfffe781b28","cid":"ec1bbdfffe781b28"} - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 22:29:10][DEBUG] :     Update state
[2020-05-22 22:29:10][DEBUG] :     Receive after decode :{"dps":{"107":3,"161":"Esc"},"cid":"ec1bbdfffe781b28"}
[2020-05-22 22:29:10][DEBUG] :      dps:
[2020-05-22 22:29:10][DEBUG] :     Read Json OK
[2020-05-22 22:29:10][DEBUG] :     Cid in state
[2020-05-22 22:29:10][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781b28
[2020-05-22 22:29:10][DEBUG] :     Update state - Dps107:3 - Dps161:Esc
[2020-05-22 22:29:10][DEBUG] :    update GW
[2020-05-22 22:29:26][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 22:29:26][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 22:29:26][DEBUG] :     Receive after decode :Y
[2020-05-22 22:29:40][DEBUG] :     Cmd to 127.0.0.1: {"t":"1590179380","cid":"ec1bbdfffe781b28","dps":{"161":"Enter"}} - Try:127.0.0.1  6900 - Connect OK!
[2020-05-22 22:29:40][DEBUG] :     Cmd to 192.168.0.57 : AABVqgAAAAAAAAAHAAAAZzMuMwAAAAAAAAAAAAAAAKVEzUVEphZ7Q5hI7A2XWmtt/iIdLqO2fHlY0D4rnWVGjqsPgkjahe1yOlGNGparTr5TyFFee3SE2ghBpC90i28/95fJlWeSPePfM0BgXaHGbQg51gAAqlU= - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 22:29:40][DEBUG] :    No state update
[2020-05-22 22:29:40][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-22 22:29:40][DEBUG] :     Receive after decode :Y
[2020-05-22 22:29:42][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 22:29:42][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 22:29:42][DEBUG] :     Receive after decode :Y
[2020-05-22 22:29:45][DEBUG] :     Receive after decode :{"dps":{"161":"Enter"},"cid":"ec1bbdfffe781b28","t":1590179384}
[2020-05-22 22:29:45][DEBUG] :      dps:
[2020-05-22 22:29:45][DEBUG] :     Read Json OK
[2020-05-22 22:29:45][DEBUG] :     Cid in state
[2020-05-22 22:29:45][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781b28
[2020-05-22 22:29:45][DEBUG] :     Update state - Dps161:Enter
[2020-05-22 22:29:45][DEBUG] :    update GW
[2020-05-22 22:29:49][DEBUG] :     Cmd to 127.0.0.1: {"t":"1590179389","cid":"ec1bbdfffe781b28","dps":{"161":"Esc"}} - Try:127.0.0.1  6900 - Connect OK!
[2020-05-22 22:29:49][DEBUG] :     Cmd to 192.168.0.57 : AABVqgAAAAAAAAAHAAAAVzMuMwAAAAAAAAAAAAAAAMmOtosP7PF5rusF+Tv/CGFt/iIdLqO2fHlY0D4rnWVGjqsPgkjahe1yOlGNGparTrcwP52103TKdIchmQ/1r039A07oAACqVQ== - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 22:29:49][DEBUG] :    No state update
[2020-05-22 22:29:49][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-22 22:29:49][DEBUG] :     Receive after decode :Y
[2020-05-22 22:29:50][DEBUG] :     Receive after decode :{"dps":{"161":"Esc"},"cid":"ec1bbdfffe781b28","t":1590179390}
[2020-05-22 22:29:50][DEBUG] :      dps:
[2020-05-22 22:29:50][DEBUG] :     Read Json OK
[2020-05-22 22:29:50][DEBUG] :     Cid in state
[2020-05-22 22:29:50][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781b28
[2020-05-22 22:29:50][DEBUG] :     Update state - Dps161:Esc
[2020-05-22 22:29:50][DEBUG] :    update GW
[2020-05-22 22:29:58][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 22:29:58][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 22:29:58][DEBUG] :     Receive after decode :Y
[2020-05-22 22:29:58][DEBUG] :     Cmd to 127.0.0.1: {"t":"1590179398","cid":"ec1bbdfffe781d57","dps":{"161":"Enter"}} - Try:127.0.0.1  6900 - Connect OK!
[2020-05-22 22:29:58][DEBUG] :     Cmd to 192.168.0.57 : AABVqgAAAAAAAAAHAAAAZzMuMwAAAAAAAAAAAAAAACID8nVmyvy4GQruT6CWtAVt/iIdLqO2fHlY0D4rnWVG9kgC6CJqz4dNgrmAWJqzHr5TyFFee3SE2ghBpC90i28/95fJlWeSPePfM0BgXaHG/MVBWgAAqlU= - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 22:29:58][DEBUG] :    No state update
[2020-05-22 22:29:58][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-22 22:29:58][DEBUG] :     Receive after decode :Y
[2020-05-22 22:29:59][DEBUG] :     Receive after decode :{"dps":{"161":"Enter"},"cid":"ec1bbdfffe781d57","t":1590179398}
[2020-05-22 22:29:59][DEBUG] :      dps:
[2020-05-22 22:29:59][DEBUG] :     Read Json OK
[2020-05-22 22:29:59][DEBUG] :     Cid in state
[2020-05-22 22:29:59][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781d57
[2020-05-22 22:29:59][DEBUG] :    Not found
[2020-05-22 22:30:11][DEBUG] :     Cmd to 127.0.0.1: {"t":"1590179411","cid":"ec1bbdfffe781d57","dps":{"161":"Esc"}} - Try:127.0.0.1  6900 - Connect OK!
[2020-05-22 22:30:11][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 22:30:11][DEBUG] : ****** Device listenable Barillet Salon - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 22:30:11][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:1 diff:12
[2020-05-22 22:30:11][DEBUG] : ****** Device listenable Barillet ss Sol - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 22:30:11][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:1 diff:12
[2020-05-22 22:30:11][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 22:30:11][DEBUG] :   Memory used :2310 ko 72 o
[2020-05-22 22:30:11][DEBUG] :     Cmd to 192.168.0.57 : AABVqgAAAAAAAAAHAAAAVzMuMwAAAAAAAAAAAAAAAIc4hpNqyotPmTAWQTP9QlZt/iIdLqO2fHlY0D4rnWVG9kgC6CJqz4dNgrmAWJqzHrcwP52103TKdIchmQ/1r01ujkzFAACqVQ== - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 22:30:11][DEBUG] :    No state update
[2020-05-22 22:30:11][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-22 22:30:11][DEBUG] :     Receive after decode :Y
[2020-05-22 22:30:14][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 22:30:14][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 22:30:14][DEBUG] :     Receive after decode :Y
[2020-05-22 22:30:30][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 22:30:30][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 22:30:30][DEBUG] :     Receive after decode :Y
[2020-05-22 22:30:35][DEBUG] :     Receive after decode :{"dps":{"161":"Esc"},"cid":"ec1bbdfffe781d57","t":1590179434}
[2020-05-22 22:30:35][DEBUG] :      dps:
[2020-05-22 22:30:35][DEBUG] :     Read Json OK
[2020-05-22 22:30:35][DEBUG] :     Cid in state
[2020-05-22 22:30:35][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781d57
[2020-05-22 22:30:35][DEBUG] :    Not found

Ps : c’est normal que je n’ai pas les DPS pour chaque info/action?

Pour moi :

tu es sûr ?

Oui c’est celui que les logs me donnent quand je lance une modification d’état depuis l’application.

cid:ec1bbdfffe781d57

c’est bon il va y avoir une nouvelle beta
il faudra reprendre chaque périphérique et lui attribuer un n° de canal (n’importe lequel mais tous différents)

Ok merci.

J’ai remarqué un changement, je ne sais pas si c’est ton plugin ou la gateway.

En fait maintenant dès qu’il y a une MAJ du statut de la DPS 161 (Enter ou Esc) il y a également une MAJ de la DPS 107 avec le numéro de la clé, le souci c’est que du coup mes scénarios qui fonctionnent en cas d’insertion de clé fonctionne toutes les 5 mins.

le retour d’état est KO
voir nouvelle beta maintenant et retester
attention : attribuer un n° de canal (n’importe lequel de 1 à 100)

Tout fonctionne

[2020-05-22 23:15:27][DEBUG] : >>>>Daemon Started
[2020-05-22 23:15:27][DEBUG] :    Memory used :2124 ko 888 o
[2020-05-22 23:15:27][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 23:15:27][DEBUG] : ****** Device listenable Barillet Salon - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 23:15:27][DEBUG] :    Key not set
[2020-05-22 23:15:28][DEBUG] :    Socket created  @192.168.0.57
[2020-05-22 23:15:28][DEBUG] :    ADD New device @192.168.0.57 channel:2
[2020-05-22 23:15:28][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:2 diff:0
[2020-05-22 23:15:28][DEBUG] : ****** Device listenable Gateway Tuya - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 23:15:28][DEBUG] :    Key:0  time diff:0
[2020-05-22 23:15:28][DEBUG] :    Socket already created @192.168.0.57
[2020-05-22 23:15:28][DEBUG] :    ADD New device @192.168.0.57 channel:1
[2020-05-22 23:15:28][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:1 diff:0
[2020-05-22 23:15:28][DEBUG] : ****** Device listenable Barillet ss Sol - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 23:15:28][DEBUG] :    Key:0  time diff:0
[2020-05-22 23:15:28][DEBUG] :    Socket already created @192.168.0.57
[2020-05-22 23:15:28][DEBUG] :    ADD New device @192.168.0.57 channel:3
[2020-05-22 23:15:28][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:3 diff:0
[2020-05-22 23:15:28][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 23:15:28][DEBUG] :   Memory used :2254 ko 808 o
[2020-05-22 23:15:28][DEBUG] :    Update state @192.168.0.57
[2020-05-22 23:15:28][DEBUG] :     Cmd to 192.168.0.57 : {"gwId":"ec1bbdfffe781b28","cid":"ec1bbdfffe781b28"} - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 23:15:28][DEBUG] :     Update state
[2020-05-22 23:15:28][DEBUG] :     Receive after decode :{"dps":{"107":3,"161":"Esc"},"cid":"ec1bbdfffe781b28"}
[2020-05-22 23:15:28][DEBUG] :      dps:
[2020-05-22 23:15:28][DEBUG] :     Read Json OK
[2020-05-22 23:15:28][DEBUG] :     Cid in state
[2020-05-22 23:15:28][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781b28
[2020-05-22 23:15:28][DEBUG] :     Update state - Dps107:3 - Dps161:Esc
[2020-05-22 23:15:28][DEBUG] :    update GW
[2020-05-22 23:15:44][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 23:15:44][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 23:15:44][DEBUG] :     Receive after decode :Y
[2020-05-22 23:16:00][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 23:16:00][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 23:16:00][DEBUG] :     Receive after decode :Y
[2020-05-22 23:16:16][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 23:16:16][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 23:16:16][DEBUG] :     Receive after decode :Y
[2020-05-22 23:16:19][DEBUG] :     Cmd to 127.0.0.1: {"t":"1590182179","cid":"ec1bbdfffe781d57","dps":{"161":"Enter"}} - Try:127.0.0.1  6900 - Connect OK!
[2020-05-22 23:16:19][DEBUG] :     Cmd to 192.168.0.57 : AABVqgAAAAAAAAAHAAAAZzMuMwAAAAAAAAAAAAAAAJYZvkHyBFWrdxsvcTOGPKxt/iIdLqO2fHlY0D4rnWVG9kgC6CJqz4dNgrmAWJqzHr5TyFFee3SE2ghBpC90i28/95fJlWeSPePfM0BgXaHGeZxtkQAAqlU= - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 23:16:19][DEBUG] :    No state update
[2020-05-22 23:16:19][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-22 23:16:19][DEBUG] :     Receive after decode :Y
[2020-05-22 23:16:23][DEBUG] :     Receive after decode :{"dps":{"161":"Enter"},"cid":"ec1bbdfffe781d57","t":1590182182}
[2020-05-22 23:16:23][DEBUG] :      dps:
[2020-05-22 23:16:23][DEBUG] :     Read Json OK
[2020-05-22 23:16:23][DEBUG] :     Cid in state
[2020-05-22 23:16:23][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781d57
[2020-05-22 23:16:23][DEBUG] :     Update state - Dps161:Enter
[2020-05-22 23:16:23][DEBUG] :    update GW
[2020-05-22 23:16:28][DEBUG] :     Cmd to 127.0.0.1: {"t":"1590182188","cid":"ec1bbdfffe781d57","dps":{"161":"Esc"}} - Try:127.0.0.1  6900 - Connect OK!
[2020-05-22 23:16:28][DEBUG] :     Cmd to 192.168.0.57 : AABVqgAAAAAAAAAHAAAAVzMuMwAAAAAAAAAAAAAAANzUUvzVEu0nEB91eQEpzrdt/iIdLqO2fHlY0D4rnWVG9kgC6CJqz4dNgrmAWJqzHrcwP52103TKdIchmQ/1r03f70PiAACqVQ== - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 23:16:28][DEBUG] :    No state update
[2020-05-22 23:16:28][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-22 23:16:28][DEBUG] :     Receive after decode :Y
[2020-05-22 23:16:29][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Search for devices <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 23:16:29][DEBUG] : ****** Device listenable Barillet Salon - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 23:16:29][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:2 diff:1
[2020-05-22 23:16:29][DEBUG] : ****** Device listenable Gateway Tuya - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 23:16:29][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:1 diff:1
[2020-05-22 23:16:29][DEBUG] : ****** Device listenable Barillet ss Sol - Class: TuyaCustom2_V2 @192.168.0.57 *****
[2020-05-22 23:16:29][DEBUG] :    Device and socket exist : key:0 @192.168.0.57 channel:3 diff:1
[2020-05-22 23:16:29][DEBUG] : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> End <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[2020-05-22 23:16:29][DEBUG] :   Memory used :2335 ko 568 o
[2020-05-22 23:16:32][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 23:16:32][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 23:16:32][DEBUG] :     Receive after decode :Y
[2020-05-22 23:16:33][DEBUG] :     Receive after decode :{"dps":{"161":"Esc"},"cid":"ec1bbdfffe781d57","t":1590182193}
[2020-05-22 23:16:33][DEBUG] :      dps:
[2020-05-22 23:16:33][DEBUG] :     Read Json OK
[2020-05-22 23:16:33][DEBUG] :     Cid in state
[2020-05-22 23:16:33][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781d57
[2020-05-22 23:16:33][DEBUG] :     Update state - Dps161:Esc
[2020-05-22 23:16:33][DEBUG] :    update GW
[2020-05-22 23:16:41][DEBUG] :     Cmd to 127.0.0.1: {"t":"1590182201","cid":"ec1bbdfffe781b28","dps":{"161":"Enter"}} - Try:127.0.0.1  6900 - Connect OK!
[2020-05-22 23:16:41][DEBUG] :     Cmd to 192.168.0.57 : AABVqgAAAAAAAAAHAAAAZzMuMwAAAAAAAAAAAAAAADmE+JuDKP1cz/vyLbsseult/iIdLqO2fHlY0D4rnWVGjqsPgkjahe1yOlGNGparTr5TyFFee3SE2ghBpC90i28/95fJlWeSPePfM0BgXaHGtpZ9uQAAqlU= - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 23:16:41][DEBUG] :    No state update
[2020-05-22 23:16:41][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-22 23:16:41][DEBUG] :     Receive after decode :Y
[2020-05-22 23:16:43][DEBUG] :     Receive after decode :{"dps":{"161":"Enter"},"cid":"ec1bbdfffe781b28","t":1590182202}
[2020-05-22 23:16:43][DEBUG] :      dps:
[2020-05-22 23:16:43][DEBUG] :     Read Json OK
[2020-05-22 23:16:43][DEBUG] :     Cid in state
[2020-05-22 23:16:43][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781b28
[2020-05-22 23:16:43][DEBUG] :     Update state - Dps161:Enter
[2020-05-22 23:16:43][DEBUG] :    update GW
[2020-05-22 23:16:47][DEBUG] :     Cmd to 127.0.0.1: {"t":"1590182207","cid":"ec1bbdfffe781b28","dps":{"161":"Esc"}} - Try:127.0.0.1  6900 - Connect OK!
[2020-05-22 23:16:47][DEBUG] :     Cmd to 192.168.0.57 : AABVqgAAAAAAAAAHAAAAVzMuMwAAAAAAAAAAAAAAAAWwO6j+znpkaUWxXqnM3PRt/iIdLqO2fHlY0D4rnWVGjqsPgkjahe1yOlGNGparTrcwP52103TKdIchmQ/1r00+AKhMAACqVQ== - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 23:16:47][DEBUG] :    No state update
[2020-05-22 23:16:47][DEBUG] : !!!!!!!!! End !!!!!!!!!!
[2020-05-22 23:16:47][DEBUG] :     Receive after decode :Y
[2020-05-22 23:16:48][DEBUG] : << Ping @192.168.0.57  diff:16
[2020-05-22 23:16:48][DEBUG] :     Cmd to 192.168.0.57 :  - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 23:16:48][DEBUG] :     Receive after decode :Y
[2020-05-22 23:16:48][DEBUG] :     Receive after decode :{"dps":{"161":"Esc"},"cid":"ec1bbdfffe781b28","t":1590182207}
[2020-05-22 23:16:48][DEBUG] :      dps:
[2020-05-22 23:16:48][DEBUG] :     Read Json OK
[2020-05-22 23:16:48][DEBUG] :     Cid in state
[2020-05-22 23:16:48][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781b28
[2020-05-22 23:16:48][DEBUG] :     Update state - Dps161:Esc
[2020-05-22 23:16:48][DEBUG] :    update GW

Franchement merci pour le temps et l’aide.

J’ai uniquement ce bug :

[2020-05-22 23:19:33][DEBUG] :    Update state @192.168.0.57
[2020-05-22 23:19:33][DEBUG] :     Cmd to 192.168.0.57 : {"gwId":"ec1bbdfffe781b28","cid":"ec1bbdfffe781b28"} - Try:192.168.0.57  6668 - Connect OK!
[2020-05-22 23:19:33][DEBUG] :     Update state
[2020-05-22 23:19:34][DEBUG] :     Receive after decode :{"dps":{"107":3,"161":"Esc"},"cid":"ec1bbdfffe781b28"}
[2020-05-22 23:19:34][DEBUG] :      dps:
[2020-05-22 23:19:34][DEBUG] :     Read Json OK
[2020-05-22 23:19:34][DEBUG] :     Cid in state
[2020-05-22 23:19:34][DEBUG] :    GW @192.168.0.57 cid:ec1bbdfffe781b28
[2020-05-22 23:19:34][DEBUG] :     Update state - Dps107:3 - Dps161:Esc
[2020-05-22 23:19:34][DEBUG] :    update GW

Après avoir relancé un Daemon ce device renvoi le statut de la DPS 107 alors qu’il ne devrait pas.

tu gardes cette version sans recharger de beta même s’il y a des mises à jour.
Si d’ici quelques jours tu vois des soucis, tu me dis.
Pour ta dernière remarque, au démarrage du demon, le plugin demande l’état de tous les périphériques. Par contre le plugin ne fait qu’interpréter ce que retourne le périphérique.

Très bien je te dis. Merci.