HTTP command from Domotiz from a scene ?

Moderator: leecollings

Post Reply
ProjektC
Posts: 67
Joined: Sunday 17 December 2017 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Germany
Contact:

HTTP command from Domotiz from a scene ?

Post 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.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: HTTP command from Domotiz from a scene ?

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ProjektC
Posts: 67
Joined: Sunday 17 December 2017 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Germany
Contact:

Re: HTTP command from Domotiz from a scene ?

Post 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 ?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: HTTP command from Domotiz from a scene ?

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ProjektC
Posts: 67
Joined: Sunday 17 December 2017 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Germany
Contact:

Re: HTTP command from Domotiz from a scene ?

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests