Bonjour Tout le monde, je viens de craquer et d’acheter une mangeoire pour animaux ( https://fr.aliexpress.com/item/4001161998306.html?spm=a2g0s.9042311.0.0.2f076c37QszMHu )
A savoir que cette machine permet soit de faire un programme avec des heures et un nombre de portion, soit d’envoyer directement un nombre de portion
Connexion à tuya sans souci, j’ai récupérer mon token et le local ID, la communication avec Jeedom fonctionne bien, par contre j’aurais besoin de votre avis pour m’aider a créer les interactions en manuel!
Voici ce que j’ai récupérer en même temps que le localkay:
dps": {
"1": "fwYAAwF/CA0CAX8LDwMBfw8RAwF/Eg8DAQ\u003d\u003d",
"3": 12,
"14": 0,
"4": "standby",
"15": 3,
"9": false
Voici le log de wifilight quand je lance une portion en manuel avec lapplication sur le téléphone:
[2021-03-25 20:54:22][DEBUG] : Receive from:192.168.2.150
[2021-03-25 20:54:22][DEBUG] : Mess: {"dps":{"4":"feeding"},"t":1616702061}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 20:54:22][DEBUG] : mangeoire @192.168.2.150 Mess: {"dps":{"4":"feeding"},"t":1616702061}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 20:54:22][DEBUG] : Update devices @192.168.2.150 canal:1
[2021-03-25 20:54:22][DEBUG] : No dps states to update
[2021-03-25 20:54:22][DEBUG] : No other states to update
[2021-03-25 20:54:24][DEBUG] : Receive from:192.168.2.150
[2021-03-25 20:54:24][DEBUG] : Mess: {"dps":{"15":1},"t":1616702063}[1][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 20:54:24][DEBUG] : mangeoire @192.168.2.150 Mess: {"dps":{"15":1},"t":1616702063}[1][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 20:54:24][DEBUG] : Update devices @192.168.2.150 canal:1
[2021-03-25 20:54:24][DEBUG] : No dps states to update
[2021-03-25 20:54:24][DEBUG] : No other states to update
[2021-03-25 20:54:24][DEBUG] : Receive from:192.168.2.150
[2021-03-25 20:54:24][DEBUG] : Mess: {"dps":{"4":"standby"},"t":1616702063}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 20:54:24][DEBUG] : mangeoire @192.168.2.150 Mess: {"dps":{"4":"standby"},"t":1616702063}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 20:54:24][DEBUG] : Update devices @192.168.2.150 canal:1
[2021-03-25 20:54:24][DEBUG] : No dps states to update
[2021-03-25 20:54:24][DEBUG] : No other states to update
[2021-03-25 20:54:24][DEBUG] : Mess: {"dps":{"3":1},"t":1616702063}[2][2][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 20:54:24][DEBUG] : mangeoire @192.168.2.150 Mess: {"dps":{"3":1},"t":1616702063}[2][2][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 20:54:24][DEBUG] : Update devices @192.168.2.150 canal:1
[2021-03-25 20:54:24][DEBUG] : No dps states to update
[2021-03-25 20:54:24][DEBUG] : No other states to update
Et voici le log quand je lance 2 portions en manuel:
[2021-03-25 21:14:41][DEBUG] : Receive from:192.168.2.150
[2021-03-25 21:14:41][DEBUG] : Mess: {"dps":{"4":"feeding"},"t":1616703281}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:14:41][DEBUG] : mangeoire @192.168.2.150 Mess: {"dps":{"4":"feeding"},"t":1616703281}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:14:41][DEBUG] : Update devices @192.168.2.150 canal:1
[2021-03-25 21:14:41][DEBUG] : No dps states to update
[2021-03-25 21:14:41][DEBUG] : No other states to update
[2021-03-25 21:14:46][DEBUG] : Receive from:192.168.2.150
[2021-03-25 21:14:46][DEBUG] : Mess: {"dps":{"15":2},"t":1616703285}[1][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:14:46][DEBUG] : mangeoire @192.168.2.150 Mess: {"dps":{"15":2},"t":1616703285}[1][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:14:46][DEBUG] : Update devices @192.168.2.150 canal:1
[2021-03-25 21:14:46][DEBUG] : No dps states to update
[2021-03-25 21:14:46][DEBUG] : No other states to update
[2021-03-25 21:14:46][DEBUG] : Receive from:192.168.2.150
[2021-03-25 21:14:46][DEBUG] : Mess: {"dps":{"4":"standby"},"t":1616703285}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:14:46][DEBUG] : mangeoire @192.168.2.150 Mess: {"dps":{"4":"standby"},"t":1616703285}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:14:46][DEBUG] : Update devices @192.168.2.150 canal:1
[2021-03-25 21:14:46][DEBUG] : No dps states to update
[2021-03-25 21:14:46][DEBUG] : No other states to update
[2021-03-25 21:14:46][DEBUG] : Mess: {"dps":{"3":2},"t":1616703285}[2][2][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:14:46][DEBUG] : mangeoire @192.168.2.150 Mess: {"dps":{"3":2},"t":1616703285}[2][2][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:14:46][DEBUG] : Update devices @192.168.2.150 canal:1
[2021-03-25 21:14:46][DEBUG] : No dps states to update
[2021-03-25 21:14:46][DEBUG] : No other states to update
[2021-03-25 21:14:50][DEBUG] : << Ping of: mangeoire @192.168.2.150 diff:21
[2021-03-25 21:14:50][DEBUG] : Cmd to 192.168.2.150 - Try:192.168.2.150 6668 - Connect OK!
[2021-03-25 21:14:50][DEBUG] : Receive from:192.168.2.150
[2021-03-25 21:14:50][DEBUG] : Mess: [221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - not decoded
et enfin le log sur un cycle en auto de 5 portions:
[2021-03-25 21:17:59][DEBUG] : << Ping of: mangeoire @192.168.2.150 diff:21
[2021-03-25 21:17:59][DEBUG] : Cmd to 192.168.2.150 - Try:192.168.2.150 6668 - Connect OK!
[2021-03-25 21:17:59][DEBUG] : Receive from:192.168.2.150
[2021-03-25 21:17:59][DEBUG] : Mess: [221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - not decoded
[2021-03-25 21:18:01][DEBUG] : Receive from:192.168.2.150
[2021-03-25 21:18:01][DEBUG] : Mess: {"dps":{"4":"feeding"},"t":1616703480}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:18:01][DEBUG] : mangeoire @192.168.2.150 Mess: {"dps":{"4":"feeding"},"t":1616703480}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:18:01][DEBUG] : Update devices @192.168.2.150 canal:1
[2021-03-25 21:18:01][DEBUG] : No dps states to update
[2021-03-25 21:18:01][DEBUG] : No other states to update
[2021-03-25 21:18:13][DEBUG] : Mess: {"dps":{"15":5},"t":1616703492}[1][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:18:13][DEBUG] : mangeoire @192.168.2.150 Mess: {"dps":{"15":5},"t":1616703492}[1][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:18:13][DEBUG] : Update devices @192.168.2.150 canal:1
[2021-03-25 21:18:13][DEBUG] : No dps states to update
[2021-03-25 21:18:13][DEBUG] : No other states to update
[2021-03-25 21:18:13][DEBUG] : Receive from:192.168.2.150
[2021-03-25 21:18:13][DEBUG] : Mess: {"dps":{"4":"standby"},"t":1616703492}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:18:13][DEBUG] : mangeoire @192.168.2.150 Mess: {"dps":{"4":"standby"},"t":1616703492}[10][10][10][10][10][10][10][10][10][10][221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - Read Json OK
[2021-03-25 21:18:13][DEBUG] : Update devices @192.168.2.150 canal:1
[2021-03-25 21:18:13][DEBUG] : No dps states to update
[2021-03-25 21:18:13][DEBUG] : No other states to update
[2021-03-25 21:18:20][DEBUG] : << Ping of: mangeoire @192.168.2.150 diff:21
[2021-03-25 21:18:20][DEBUG] : Cmd to 192.168.2.150 - Try:192.168.2.150 6668 - Connect OK!
[2021-03-25 21:18:20][DEBUG] : Receive from:192.168.2.150
[2021-03-25 21:18:20][DEBUG] : Mess: [221]7[168][143][27][31]s[236][27][236]b:[136])[241]. - not decoded
Alors ce que je pense quand je compare a l’application:
Le dps 4 passe en feeding pour lancer le nombre de portion qui est inscrit dans le dps15.
Ensuite il repasse le dps en standby.
Par contre je ne comprends pas pourquoi il lit le dps3 a la fin des modes manuel.
Voilà si quelqu’un est prêt à m’aider, ce serait cool de rendre une nouvelle machine compatible Jeedom!