http requests for open/close/stop window blinds?

Moderator: leecollings

Post Reply
tne7laa
Posts: 30
Joined: Sunday 05 March 2017 10:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

http requests for open/close/stop window blinds?

Post by tne7laa »

Hello,
I have window blinds which can be controlled via the dominica website: Open, Close and Stop and are of type Blinds.
Now I want to control them to Open and stop after some seconds. I'm trying a unix shell script with an virtual switch to do this.
The only thing is that I only have On/Off http request of type 'switchlight':

Code: Select all

http://192.168.1.11:5901/json.htm?type=command&param=switchlight&idx=109&switchcmd=On
http://192.168.1.11:5901/json.htm?type=command&param=switchlight&idx=109&switchcmd=Off
With this I can only open/close but not Stop.

I want something like for my blinds:

Code: Select all

#!/bin/sh
curl "http://192.168.1.11:5901/json.htm?type=command&param=blinds&idx=116&switchcmd=On"
sleep(3)
curl "http://192.168.1.11:5901/json.htm?type=command&param=blinds&idx=116&switchcmd=Stop"
Are there http requests for blinds directly? I can't find them.
Thanks.
tne7laa
Posts: 30
Joined: Sunday 05 March 2017 10:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: http requests for open/close/stop window blinds?

Post by tne7laa »

Ok, I figured it out myself with the help of Fiddler:

Blinds Up:

Code: Select all

http://192.168.1.11:5901/json.htm?type=command&param=switchlight&idx=109&switchcmd=Off
Blinds Stop:

Code: Select all

http://192.168.1.11:5901/json.htm?type=command&param=switchlight&idx=109&switchcmd=Stop
Blinds Down:

Code: Select all

http://192.168.1.11:5901/json.htm?type=command&param=switchlight&idx=109&switchcmd=On
Hope it will help someone else...
gerbala
Posts: 1
Joined: Monday 10 July 2017 23:00
Target OS: Windows
Domoticz version:
Contact:

Re: http requests for open/close/stop window blinds?

Post by gerbala »

Yes, it helped me. Thank you, pal!
I'm using Domoticz to make my life more comfortable. Because time which I was spending to house keeping now I spend to play with my kids
salopette
Posts: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Re: http requests for open/close/stop window blinds?

Post by salopette »

Thanks for your help
How can I set it to stop the blind after 10, 20, 30 seconds?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest