Page 1 of 1

HTTP command from Domotiz from a scene ?

Posted: Wednesday 09 March 2022 21:49
by ProjektC
Can you see how the HTTP Commando from Domoticz when you switch a switch or scenze ?
Can I get a link from Domoticz directly in the browser to switch a lamp or scene without being in Domoticz ?

I have a shelly button and somehow I don't get along with it.
Now I would enter a Domoticz circuit as HTTP in the Shelly Button, if that is possible.

Re: HTTP command from Domotiz from a scene ?

Posted: Thursday 10 March 2022 1:01
by waltervl
Here is all the info you need: https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s

To check in your environment use F12 in a browser and check the URL's in the console

Re: HTTP command from Domotiz from a scene ?

Posted: Sunday 13 March 2022 18:16
by ProjektC
Hi

http://192.168.0.184:8085/json.htm?user ... 0&api-call

{
status: "ERR"
}

IP = 192.168.0.184
Port = 8085
User = admin
Passwort = 111014

I have translated user and password with it
https://www.base64encode.org/

With the user name and password I can log in without problems.
Where is the error ?

Re: HTTP command from Domotiz from a scene ?

Posted: Sunday 13 March 2022 20:04
by waltervl
I don't know.
To (temporary) switch off log in from local network fill in the local network IP (192.168.0.*) in menu setup - settings - local network (no username/password).
Then you can see if the problem is the user log in or the API call that gives the error.

Re: HTTP command from Domotiz from a scene ?

Posted: Sunday 13 March 2022 21:28
by ProjektC
After several attempts it worked.
I suspect that once it was on Error, it stays on Error, even if the path was correct.
With an Error one must wait probably something and then he takes the next attempt.
Thanks a lot, now I can switch the HTTP link with Shelly Button 1.

http://192.168.0.184:8085/json.htm?user ... cmd=Toggle