[Tuto] Esp Easy + Nextion + DomoticZ
-
jackslayter
- Messages : 1040
- Inscription : 30 sept. 2014, 14:40
- Localisation : Isère (38)
Re: TUTO Esp Easy + Nextion + Domoticz
Dans les rules du wemos j'ai des sendhttp en /json.htm?type=command¶m=switchlight&idx=99&switchcmd=On qui marche très bien par contre /json.htm?type=command¶m=switchlight&idx=IDX&switchcmd=Set%20Level&level=LEVEL ne marche pas. Une idée ? J'ai essayé en mettant un espace à la place du %20, sans changement. Bien sur 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
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
Re: RE: Re: TUTO Esp Easy + Nextion + Domoticz
Oui, j'ai eu le même problème.jackslayter a écrit :Dans les rules du wemos j'ai des sendhttp en /json.htm?type=command¶m=switchlight&idx=99&switchcmd=On qui marche très bien par contre /json.htm?type=command¶m=switchlight&idx=IDX&switchcmd=Set%20Level&level=LEVEL ne marche pas. Une idée ? J'ai essayé en mettant un espace à la place du %20, sans changement. Bien sur le lien marche dans un navigateur.
Je ne suis pas chez moi donc je n'ai pas le truc sous les yeux mais il faut modifier l'url en mettant le switchcmd=Set%20Level en 1er après ?type
Si tu ne t'en sors pas je regarde en rentrant
Envoyé de mon SM-N9005 en utilisant Tapatalk
Re: TUTO Esp Easy + Nextion + Domoticz
Je t'avoue que j'ai passé 3h sur le sujet hier en voulant absolument mettre le plugin Nextion sur la version 2.0.0 dev12.
Et la le bug des Sentohttp mais avec les "On" de base, il ne veut pas des "&" entre "command¶m...". Je n'ai pas trouvé pourquoi...
Moi je n 'y arrive pas du tout, pas comme toi, cela résume les 3h d'hier
Bref mon cerveau a tilté et je suis passé par du MQTT et j'ai abandonné les envoi par http et maintenant je fais cela qui marche pour moi avec des "On":
Je viens de regarder, apparemment on ne peut pas dupliquer pour les levels, c'est ici, essaye !
https://www.domoticz.com/wiki/MQTT
Cela marche en fait, il y a une decalage de 1%, testé sur 50% (49%) et 20%(19%) !
Et la le bug des Sentohttp mais avec les "On" de base, il ne veut pas des "&" entre "command¶m...". Je n'ai pas trouvé pourquoi...
Moi je n 'y arrive pas du tout, pas comme toi, cela résume les 3h d'hier
Bref mon cerveau a tilté et je suis passé par du MQTT et j'ai abandonné les envoi par http et maintenant je fais cela qui marche pour moi avec des "On":
Code : Tout sélectionner
on NEXTION#code=4.00 do // Lumiere buanderie Off
Publish domoticz/in,{"command": "switchlight", "idx": 52, "switchcmd": "Off", "level": 100}
endonhttps://www.domoticz.com/wiki/MQTT
Edit :Sending a Switch Command
Optional: level (not when switchcmd = "Set Level")
{"command": "switchlight", "idx": 2450, "switchcmd": "On", "level": 100 }
Cela marche en fait, il y a une decalage de 1%, testé sur 50% (49%) et 20%(19%) !
Code : Tout sélectionner
Publish domoticz/in,{"command": "switchlight", "idx": 189, "switchcmd": "Set Level", "level": 50}
Code : Tout sélectionner
2017-10-18 20:58:31.037 MQTT: Topic: domoticz/in, Message: {"command": "switchlight", "idx": 189, "switchcmd": "Set Level", "level": 50}
Dernière modification par Jeff le 18 oct. 2017, 21:02, modifié 2 fois.
Version: 2023.1 sur VM Synology, docker Zwave Js UI (Z-stick GEN5, Fibaro...), Zigbeefordomoticz. Nextion RGB Led Screen
-
jackslayter
- Messages : 1040
- Inscription : 30 sept. 2014, 14:40
- Localisation : Isère (38)
Re: TUTO Esp Easy + Nextion + Domoticz
Au début cela ne marchait pas et ça c'est mis à marcher même si dans le log j'ai des erreurs de réponse JSON
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
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
Re: TUTO Esp Easy + Nextion + Domoticz
Cela marche chez toi en Http ou en MQTT ?
Regarde j'ai réédité mon post, cela marche nickel en MQTT en fait
Regarde j'ai réédité mon post, cela marche nickel en MQTT en fait
Version: 2023.1 sur VM Synology, docker Zwave Js UI (Z-stick GEN5, Fibaro...), Zigbeefordomoticz. Nextion RGB Led Screen
-
jackslayter
- Messages : 1040
- Inscription : 30 sept. 2014, 14:40
- Localisation : Isère (38)
Re: RE: Re: TUTO Esp Easy + Nextion + Domoticz
Non pas d'améliorationdokho a écrit :Oui, j'ai eu le même problème.jackslayter a écrit :Dans les rules du wemos j'ai des sendhttp en /json.htm?type=command¶m=switchlight&idx=99&switchcmd=On qui marche très bien par contre /json.htm?type=command¶m=switchlight&idx=IDX&switchcmd=Set%20Level&level=LEVEL ne marche pas. Une idée ? J'ai essayé en mettant un espace à la place du %20, sans changement. Bien sur le lien marche dans un navigateur.
Je ne suis pas chez moi donc je n'ai pas le truc sous les yeux mais il faut modifier l'url en mettant le switchcmd=Set%20Level en 1er après ?type
Si tu ne t'en sors pas je regarde en rentrant
Envoyé de mon SM-N9005 en utilisant Tapatalk
Ça marche en http mais en switch on off seulement
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
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
Re: TUTO Esp Easy + Nextion + Domoticz
Moi je n'ai plus de problème, je m'en suis sorti avec le MQTT en Publish et comme je te disais cela marche avec les Set Level.
Quand tu rentreras tu liras mon post au dessus
Quand tu rentreras tu liras mon post au dessus
Version: 2023.1 sur VM Synology, docker Zwave Js UI (Z-stick GEN5, Fibaro...), Zigbeefordomoticz. Nextion RGB Led Screen
Re: TUTO Esp Easy + Nextion + Domoticz
mais je suis aussi passé en MQTT que je trouve plus réactifon NEXTION#idx=273 do
sendtohttp 192.168.0.232,8080,/json.htm?param=switchlight&type=command&idx=847&switchcmd=Set%20Level&level=10
endon
-
jackslayter
- Messages : 1040
- Inscription : 30 sept. 2014, 14:40
- Localisation : Isère (38)
Re: TUTO Esp Easy + Nextion + Domoticz
Bon ba ça marche pas, je vais passer par un script.
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
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
Re: TUTO Esp Easy + Nextion + Domoticz
C'est étrange, ça fonctionne chez moi pour un interrupteur sélecteur
Envoyé de mon SM-N9005 en utilisant Tapatalk
Envoyé de mon SM-N9005 en utilisant Tapatalk