http command to shelly

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
paul402
Posts: 96
Joined: Monday 23 May 2016 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

http command to shelly

Post by paul402 »

I can send these two commands successfully in the browser and via python.

Code: Select all

http://192.168.2.41/rpc/Cover.Open?id=0
http://192.168.2.41/rpc/Cover.Close?id=0
but I have not been able to do in in dzVents.
The Wiki instructions I could not understand. Yes I'm probably not very clever.
Give me a hint please.
User avatar
waltervl
Posts: 5902
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: http command to shelly

Post by waltervl »

Search this forum for "dzvents shelly http" and you would have found somthing like topic https://www.domoticz.com/forum/viewtopi ... tp#p283937
Instead of using dzvents to open close a Shelly Cover you could also make a dummy Blinds device in Domoticz https://www.domoticz.com/wiki/Dummy_for ... l_Switches

Then put those 2 http commands as On Off action https://www.domoticz.com/wiki/Managing_ ... Off_Action
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
HvdW
Posts: 617
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: http command to shelly

Post by HvdW »

- setup -> hardware -> dummy (create the possibility to create dummy devices)
- setup -> hardware -> dummy -> create virtual sensors choose switch
- use the switch and edit it http://192.168.2.21/relay/0?turn=on for on and http://192.168.2.21/relay/0?turn=off for off
- in dzvents choose this device by name or by number.
- read the dzvents wiki

Enjoy learning to program. It's great fun.
Bugs bug me.
paul402
Posts: 96
Joined: Monday 23 May 2016 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: http command to shelly

Post by paul402 »

Thanks. Yes I have already been using python to send http commands from on/off actions but wanted to incorporate the functionality in Dzvents.
I now have another issue but I will post that seperately.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest