Salut @bernardfr.caron
Trop top ton plugin, je commence à bien maitriser le protocole tuya (3 thermostats et 5 controleurs leds), mais là je bloque sur une prise connectée.
Les infos remontent bien dans jeedom, mais impossible de la piloter :
[DEBUG] : Prise TV @192.168.1.5 Receive after decode :{"dps":{"1":true,"9":0,"17":1,"18":123,"19":148,"20":2315,"21":1,"22":619,"23":28771,"24":16570,"25":2510,"26":0,"38":"memory","41":"","42":"","46":false}}
[2021-01-08 10:54:56][DEBUG] : Multiple devices @192.168.1.5 canal:2
[2021-01-08 10:54:56][DEBUG] : Dps1|SwOnOffGet_TV:1 Dps18|CurrentGet formula:#value#/1000 #value#:123 After:0.123 Dps19|PowerGet formula:#value#/10 #value#:148 After:14.8 Dps20|VoltageGet formula:#value#/10 #value#:2315 After:231.5
[2021-01-08 10:54:56][DEBUG] : No other states to update
[2021-01-08 10:55:04][DEBUG] : Receive from:192.168.1.5 (No learning mode)
[2021-01-08 10:55:04][DEBUG] : Prise TV @192.168.1.5 Receive after decode :{"dps":{"18":122,"19":147,"20":2319},"t":1610099703}
[2021-01-08 11:02:05][DEBUG] : Prise TV @192.168.1.5 Receive after decode :{"dps":{"1":false},"t":1610100124}
[2021-01-08 11:02:05][DEBUG] : Multiple devices @192.168.1.5 canal:2
[2021-01-08 11:02:05][DEBUG] : Dps1|SwOnOffGet_TV:
[2021-01-08 11:02:05][DEBUG] : No other states to update
[2021-01-08 11:02:11][DEBUG] : Receive from:192.168.1.5 (No learning mode)
[2021-01-08 11:02:11][DEBUG] : Prise TV @192.168.1.5 Receive after decode :{"dps":{"18":0,"19":0,"20":2335},"t":1610100130}
[2021-01-08 11:02:11][DEBUG] : Multiple devices @192.168.1.5 canal:2
[2021-01-08 11:02:11][DEBUG] : Dps18|CurrentGet formula:#value#/1000 #value#:0 After:0 Dps19|PowerGet formula:#value#/10 #value#:0 After:0 Dps20|VoltageGet formula:#value#/10
On voit bien que le dps 1 change si je l’actionne à partir de l’appli, mais à partir de jeedom, rien ne se passe
[2021-01-09 10:02:02][DEBUG] : Cmd to 127.0.0.1: {"t":"1610182922","devId":"7cea0af0cdcf560c","dps":{"1":false},"uid":""} - Try:127.0.0.1 6900 - Connect OK!
[2021-01-09 10:02:20][DEBUG] : Receive from:192.168.1.5 (No learning mode)
[2021-01-09 10:02:20][DEBUG] : Prise TV @192.168.1.5 Receive after decode :{"dps":{"1":true,"9":0,"17":1,"18":0,"19":0,"20":2277,"21":1,"22":619,"23":28771,"24":16570,"25":2510,"26":0,"38":"memory","41":"","42":"","46":false}}
[2021-01-09 10:02:20][DEBUG] : Multiple devices @192.168.1.5 canal:2
[2021-01-09 10:02:20][DEBUG] : Dps1|SwOnOffGet_TV:1 Dps18|CurrentGet formula:#value#/1000 #value#:0 After:0 Dps19|PowerGet formula:#value#/10 #value#:0 After:0 Dps20|VoltageGet formula:#value#/10 #value#:2277 After:227.7
[2021-01-09 10:02:20][DEBUG] : No other states to update
Pour info : firmw mcu 1.0.3
Merci d’avance pour ton aide
Pour info, j’ai essayé de changer le dps 38 memroy en le passant à on ou off (comme dans l’appli), il ne bouge pas).
Pour le ON/OFF, j’ai essayé également 0 et 1 comme valeur