redbug26 / jeedom-tahoma

10 stars 26 forks source link

"errorCode":"INCOMPATIBLE_VALUE","error" #44

Closed GTU63 closed 2 years ago

GTU63 commented 2 years ago

Bonjour sur un Raspberry pi4 + Jeedom Version 4.3.10 + Tahoma Version 2022-11-07 15:29:36 fresh install avec seulement les 2 Plugins : Tahoma et OpenVPN quand je lance un Open/Close/My or cancel sur un boitier "Somfy CENTRALIS UNO RTS" relié à un moteur "lt 50 - apollo - 35/17 - somfy 1047025" pour commander le rideau d'une baie vitrée -> voir post de mopn test [https://community.jeedom.com/t/errorcode-incompatible-value-error-open/94067/2] j'ai le message ci-dessous

0000|[2022-11-08 17:46:38]DEBUG : send command close to rts://XXXX-XXXX-XXXX/XXXXXXXX
0001|[2022-11-08 17:46:38]DEBUG : {"label":"close","actions":[{"deviceURL":"rts:\/\/XXXX-XXXX-XXXX\/XXXXXXXX","commands":[{"name":"close","parameters":[""]}]}]}
0002|[2022-11-08 17:46:38]DEBUG : send command: {"errorCode":"INCOMPATIBLE_VALUE","error":"close() : Invalid value for command parameter p1 : expected (optional) integer value between 0 and 30 but got  (String)"}
0003|[2022-11-08 17:46:38]DEBUG : return cancelExecutions: ()
0004|[2022-11-08 17:46:38]DEBUG : set cancelExecutions: ()
0005|[2022-11-08 17:48:38]DEBUG : send command open to rts://XXXX-XXXX-XXXX/XXXXXXXX
0006|[2022-11-08 17:48:38]DEBUG : {"label":"open","actions":[{"deviceURL":"rts:\/\/XXXX-XXXX-XXXX\/XXXXXXXX","commands":[{"name":"open","parameters":[""]}]}]}
0007|[2022-11-08 17:48:39]DEBUG : send command: {"errorCode":"INCOMPATIBLE_VALUE","error":"open() : Invalid value for command parameter p1 : expected (optional) integer value between 0 and 30 but got  (String)"}
0008|[2022-11-08 17:48:39]DEBUG : return cancelExecutions: ()
0009|[2022-11-08 17:48:39]DEBUG : set cancelExecutions: ()
0010|[2022-11-08 17:49:03]DEBUG : send command my to rts://XXXX-XXXX-XXXX/XXXXXXXX
0011|[2022-11-08 17:49:03]DEBUG : {"label":"my","actions":[{"deviceURL":"rts:\/\/XXXX-XXXX-XXXX\/XXXXXXXX","commands":[{"name":"my","parameters":[""]}]}]}
0012|[2022-11-08 17:49:04]DEBUG : send command: {"errorCode":"INCOMPATIBLE_VALUE","error":"my() : Invalid value for command parameter p1 : expected (optional) integer value between 0 and 30 but got  (String)"}
0013|[2022-11-08 17:49:04]DEBUG : return cancelExecutions: ()
0014|[2022-11-08 17:49:04]DEBUG : set cancelExecutions: ()
0015|[2022-11-08 17:49:06]DEBUG : send command stop to rts://XXXX-XXXX-XXXX/XXXXXXXX
0016|[2022-11-08 17:49:06]DEBUG : {"label":"stop","actions":[{"deviceURL":"rts:\/\/XXXX-XXXX-XXXX\/XXXXXXXX","commands":[{"name":"stop","parameters":[""]}]}]}
0017|[2022-11-08 17:49:06]DEBUG : send command: {"errorCode":"INCOMPATIBLE_VALUE","error":"stop() : Invalid value for command parameter p1 : expected (optional) integer value between 0 and 30 but got  (String)"}
0018|[2022-11-08 17:49:06]DEBUG : return cancelExecutions: ()
0019|[2022-11-08 17:49:06]DEBUG : set cancelExecutions: ()
0020|[2022-11-08 17:49:08]DEBUG : will cancelExecutions: () from tahoma.class
0021|[2022-11-08 17:49:08]DEBUG : cancelExecutions: () from tahoma.inc
0022|[2022-11-08 17:49:08]DEBUG : return http cancelExecutions: ({"errorCode":"INVALID_API_CALL","error":"No such resource"})
0023|[2022-11-08 18:01:16]DEBUG : send command: ko: 401. Will retry
0024|[2022-11-08 18:01:16]DEBUG : logon with xxxxx.xxxxx@xxxxxx.eu and cookie /tmp/tahomacurlcookie
0025|[2022-11-08 18:01:17]DEBUG : new cookie - logon: ok: 200

Merci pour votre aide. Guillaume

redbug26 commented 2 years ago

Je viens de faire une mise a jour. Peux-tu tester si cela fonctionne mieux ?

redbug26 commented 2 years ago

https://github.com/redbug26/jeedom-tahoma/commit/b113fb526c5462bc14a24a1932d874788ba5d57e

GTU63 commented 2 years ago

Bonjour, SUPER ... ça marche ..... Merci pour ta réactivité, désolé j'ai testé seulement ce matin . Bravo . Guillaume

redbug26 commented 2 years ago

La modification a entrainé une régression.. Est-ce que tu pourrais tester la beta pour voir si cela fonctionne encore ?

GTU63 commented 2 years ago

Salut, je suis ok pour tester la beta mais je n'ai jamais fait ça peux-tu me dire comment l'installer ou si je fais juste un écrasement d'un fichier ...

redbug26 commented 2 years ago

https://market.jeedom.com/index.php?v=d&p=profils <- tu actives beta Et après, dans le market Outils / gestion des plugin / market, tu vois une option installer beta pour le plugin tahoma

GTU63 commented 2 years ago

Super merci j'ai compris donc j'ai installé 2022-11-17 10:50:17 Et catastrophe

0494|[2022-11-17 19:16:05]DEBUG : send command close to rts://XXXX-XXXX-XXXX/XXXXXXXX
0495|[2022-11-17 19:16:05]DEBUG : 254:array (   0 => '', )
0496|[2022-11-17 19:16:05]DEBUG : {"label":"close","actions":[{"deviceURL":"rts:\/\/XXXX-XXXX-XXXX\/XXXXXXXX","commands":[{"name":"close","parameters":[""]}]}]}
0497|[2022-11-17 19:16:05]DEBUG : send command: {"errorCode":"INCOMPATIBLE_VALUE","error":"close() : Invalid value for command parameter p1 : expected (optional) integer value between 0 and 30 but got  (String)"}
0498|[2022-11-17 19:16:05]DEBUG : return cancelExecutions: ()
0499|[2022-11-17 19:16:05]DEBUG : set cancelExecutions: ()
GTU63 commented 2 years ago

et en remettant la version 2022-11-08 19:41:45

0482|[2022-11-17 19:18:39]DEBUG : eqlabel: ActionGroups
0483|[2022-11-17 19:18:46]DEBUG : send command close to rts://XXXX-XXXX-XXXX/XXXXXXXX
0484|[2022-11-17 19:18:46]DEBUG : {"label":"close","actions":[{"deviceURL":"rts:\/\/XXXX-XXXX-XXXX\/XXXXXXXX","commands":[{"name":"close"}]}]}
0485|[2022-11-17 19:18:46]DEBUG : send command: {"execId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"}
0486|[2022-11-17 19:18:46]DEBUG : return cancelExecutions: (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx)
0487|[2022-11-17 19:18:46]DEBUG : set cancelExecutions: (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx)