Roller shutter control

Post Reply
salopette
Posts: 29
Joined: Tuesday 07 March 2017 22:03
Target OS: Raspberry Pi
Domoticz version: V3.6882
Location: Germany
Contact:

Roller shutter control

Post by salopette » Saturday 26 May 2018 12:46

hello, I can not get it to control the blinds with a dummy switch.
My intention was that I do dummy as a selector and then stop level 10, 20, 30 40 times the blind stops.
But do not get it set up in Blockly.

Could help with someone?

Image
Image

astrapowerrr
Posts: 59
Joined: Tuesday 31 January 2017 21:34
Target OS: -
Domoticz version:
Contact:

Re: Roller shutter control

Post by astrapowerrr » Monday 28 May 2018 14:19

i am also curiuos how this could work.
i have a somfy sunscreen that just can open and close and has a stop command to stop when i want that.
percentage like 25% 50% and 75% would be nice to configure in time.

User avatar
Egregius
Posts: 2677
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: Beta
Location: Beitem, BE
Contact:

Re: Roller shutter control

Post by Egregius » Monday 28 May 2018 14:41

Create a shell script with the corresponding open/sleep/stop commands and execute those with the selector switch.

salopette
Posts: 29
Joined: Tuesday 07 March 2017 22:03
Target OS: Raspberry Pi
Domoticz version: V3.6882
Location: Germany
Contact:

Re: Roller shutter control

Post by salopette » Monday 28 May 2018 18:44

How do you do that?

User avatar
Egregius
Posts: 2677
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: Beta
Location: Beitem, BE
Contact:

Re: Roller shutter control

Post by Egregius » Monday 28 May 2018 20:26

You start by searching the wiki.
And then you create a script, for example: /home/pi/openblind99.sh

Code: Select all

#!/bin/bash
curl -s 'http://127.0.0.1:8080/json.htm?type=command&param=switchlight&idx=99&switchcmd=On'
sleep 4
curl -s 'http://127.0.0.1:8080/json.htm?type=command&param=switchlight&idx=99&switchcmd=Stop'
make the script executable:

Code: Select all

chmod +x /home/pi/openblind99.sh
add the script to the selector switch with the full path

Code: Select all

scipt:///home/pi/openblind99.sh

salopette
Posts: 29
Joined: Tuesday 07 March 2017 22:03
Target OS: Raspberry Pi
Domoticz version: V3.6882
Location: Germany
Contact:

Re: Roller shutter control

Post by salopette » Monday 28 May 2018 20:36

Thank you! Did not understand it from the wiki, but your example is very helpful!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest