Lien tasker

Forum dédié à l'accès à DomoticZ depuis l'extérieur de chez vous : routage de ports, VPN, VPS ...
La sécurité, c'est important !!
Wolfen38
Messages : 1983
Inscription : 19 oct. 2017, 14:49

Lien tasker

Message par Wolfen38 »

Salut a tous
J'utilisais tasker sur Android pour contrôler ma domotique.
J'avais des liens de cette forme
http://IDENTIFIANT: MDP@IP:PORT/json.htm?type=command&param=switchlight&idx=560&switchcmd=Set%20Level&level=10
Dans ce cas ça allait une pièce chez moi
Mais ça ne fonctionne plus.
Vous savez pourquoi ?
Merci.
lost
Messages : 1511
Inscription : 12 nov. 2016, 11:01

Re: Lien tasker

Message par lost »

Hello, ca fonctionnait en quelle version et quelle est l'actuelle ?
2 options a mon sens. Les évolutions API http/json ou côté authentification.
Tasker ne donne pas l'erreur précise ? Personnellement j'utilise une app nommée http shortcuts pour ce type de job et il est possible au besoin d'afficher la réponse du serveur.
Wolfen38
Messages : 1983
Inscription : 19 oct. 2017, 14:49

Re: Lien tasker

Message par Wolfen38 »

Ça fonctionnait avant la modif des appels api.
J'ai essayé de les changer mais ça ne fonctionne pas.
Et tasker ne dit rien comme si la commande passait bien mais pas de résultat sur la domotique.

Envoyé de mon Mi 9T Pro en utilisant Tapatalk

jackslayter
Messages : 1040
Inscription : 30 sept. 2014, 14:40
Localisation : Isère (38)

Re: Lien tasker

Message par jackslayter »

le lien marche dans un navigateur ?
Raspberry Pi + RFLink + Domoticz Beta
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Wolfen38
Messages : 1983
Inscription : 19 oct. 2017, 14:49

Re: Lien tasker

Message par Wolfen38 »

Ça me retourne ça
"status" : "OK",
"title" : "SwitchLight"

Mais pas d'effet sur domotique

Envoyé de mon Mi 9T Pro en utilisant Tapatalk

lost
Messages : 1511
Inscription : 12 nov. 2016, 11:01

Re: Lien tasker

Message par lost »

Avec un status OK retourné ça semble bon pourtant... Une trace dans les logs domoticz peut-être? Au besoin, voir le wiki pour monter le niveau de log (stopper le service et lancer domoticz en ligne de commande avec les bons paramètres)...

En tout cas, l'appel semble correct et sauf à ce qu'il y ait erreur sur l'idx (mais existant, sinon on aurait un retour erreur) du sélecteur surveillé, je vois pas.
https://www.domoticz.com/wiki/Domoticz_ ... tain_level
jackslayter
Messages : 1040
Inscription : 30 sept. 2014, 14:40
Localisation : Isère (38)

Re: Lien tasker

Message par jackslayter »

ok donc ça ne marche pas.
avant de passer sur tasker il faut que ça marche sur navigateur ensuite cela marchera sur tasker
essai de juste on/off un interrupteur avec

Code : Tout sélectionner

http://IDENTIFIANT: MDP@IP:PORT/json.htm?type=command&param=switchlight&idx=TON_IDX&switchcmd=On'
voir si ça marche sur l'interface Dz
Raspberry Pi + RFLink + Domoticz Beta
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Wolfen38
Messages : 1983
Inscription : 19 oct. 2017, 14:49

Re: Lien tasker

Message par Wolfen38 »

Étrange en effet les logs
2024-01-24 09:38:08.898 Status: User: Wolfen38 (IP: MON_IP) initiated a switch command (560/Interrupteur cuisine/Set Level)
Comme si il recevait bien la commande mais ne l'exécutait pas

Envoyé de mon Mi 9T Pro en utilisant Tapatalk
Wolfen38
Messages : 1983
Inscription : 19 oct. 2017, 14:49

Re: Lien tasker

Message par Wolfen38 »

Oui ton lien a fonctionné.

Donc c'est ma syntaxe qui doit avoir un problème

Envoyé de mon Mi 9T Pro en utilisant Tapatalk


Dernière modification par Wolfen38 le 24 janv. 2024, 09:46, modifié 1 fois.
jackslayter
Messages : 1040
Inscription : 30 sept. 2014, 14:40
Localisation : Isère (38)

Re: Lien tasker

Message par jackslayter »

EDIT: j'ai enlevé ton IP public
Raspberry Pi + RFLink + Domoticz Beta
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Répondre