Roller shutter control

Moderator: leecollings

Post Reply
salopette
Posts: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Roller shutter control

Post by salopette »

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: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: Roller shutter control

Post by astrapowerrr »

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: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Roller shutter control

Post by Egregius »

Create a shell script with the corresponding open/sleep/stop commands and execute those with the selector switch.
salopette
Posts: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Re: Roller shutter control

Post by salopette »

How do you do that?
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Roller shutter control

Post by Egregius »

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: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Re: Roller shutter control

Post by salopette »

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

Who is online

Users browsing this forum: Bing [Bot] and 1 guest