A second click within 10 seconds to freeze blinds going up/down?

Post Reply
quack3d
Posts: 97
Joined: Sunday 26 March 2017 17:03
Target OS: -
Domoticz version:
Contact:

A second click within 10 seconds to freeze blinds going up/down?

Post by quack3d » Monday 06 August 2018 9:26

I have a blockly that opens blinds if closed and close them if open. How can I have the same switch stop the blinds going up/down if pressed within 10 seconds after open/close?
Last edited by quack3d on Tuesday 07 August 2018 14:19, edited 1 time in total.

elmortero
Posts: 233
Joined: Sunday 29 November 2015 21:46
Target OS: Raspberry Pi
Domoticz version: 3.9639
Location: Spain
Contact:

Re: Stopping blinds after 10 seconds?

Post by elmortero » Monday 06 August 2018 11:33

You can do that by repeating the command (works with most blinds, I am not 100% if it works with all of them)
Anyways, this how you can do that:
blind10.JPG
blind10.JPG (21.01 KiB) Viewed 550 times

quack3d
Posts: 97
Joined: Sunday 26 March 2017 17:03
Target OS: -
Domoticz version:
Contact:

Re: Stopping blinds after 10 seconds?

Post by quack3d » Monday 06 August 2018 17:27

Huh? I think you misunderstood but I tried anyways without success:
Domo.png
Domo.png (54.09 KiB) Viewed 525 times
That's what you meant?

elmortero
Posts: 233
Joined: Sunday 29 November 2015 21:46
Target OS: Raspberry Pi
Domoticz version: 3.9639
Location: Spain
Contact:

Re: Stopping blinds after 10 seconds?

Post by elmortero » Monday 06 August 2018 19:26

My blinds stop if you send the command a second time. The stop command does not work in my case.
So I send "close" and 10 seconds later I send another "close".
But as I said, maybe not all blinds controllers work like that.

quack3d
Posts: 97
Joined: Sunday 26 March 2017 17:03
Target OS: -
Domoticz version:
Contact:

Re: Stopping blinds after 10 seconds?

Post by quack3d » Monday 06 August 2018 19:47

I see. No, I have to send the Stop command for it to stop.

User avatar
capman
Posts: 202
Joined: Friday 12 July 2013 20:48
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Belgium
Contact:

Re: Stopping blinds after 10 seconds?

Post by capman » Monday 06 August 2018 20:12

Make a scene that you can use in your blockly.
Example:
blinds1.JPG
blinds1.JPG (102.49 KiB) Viewed 509 times

ben53252642
Posts: 498
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Re: Stopping blinds after 10 seconds?

Post by ben53252642 » Monday 06 August 2018 20:20

It's really easy with a Lua device script, I've got a "Blinds Cat Mode" which stops the blinds after 19 seconds which is just high enough for them not to be able to paw at them.

eg:

Code: Select all

commandArray = {}

if (devicechanged['Living Room Blinds Cat Mode'] == 'On' and otherdevices['Living Room Left Blind'] == 'Open') then
commandArray['Living Room Left Blind'] = 'On FOR 19 SECONDS'
commandArray['Living Room Right Blind'] = 'On FOR 19 SECONDS AFTER 1'
end

return commandArray

CaesarPL
Posts: 128
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: Stopping blinds after 10 seconds?

Post by CaesarPL » Tuesday 07 August 2018 9:49

Or dzVents:

Code: Select all

return {
    active = true,
    on = {
        devices = {
            'Screen'
        }
    },
    execute = function(domoticz,switch)
        
        if (switch.state == 'On') then
            switch.stop().afterSec(50)
        end
    end
}
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge

quack3d
Posts: 97
Joined: Sunday 26 March 2017 17:03
Target OS: -
Domoticz version:
Contact:

Re: Stopping blinds after 10 seconds?

Post by quack3d » Tuesday 07 August 2018 14:18

Thanks guys but it's not exactly what I need. I see the topic is a bit misleading (edited now). I press a button for blinds to go down and I want the same button to stop the blinds if I press it within 10 seconds of the first press. So if I press the button only one time, the blinds would go completely down.

quack3d
Posts: 97
Joined: Sunday 26 March 2017 17:03
Target OS: -
Domoticz version:
Contact:

Re: A second click within 10 seconds to freeze blinds going up/down?

Post by quack3d » Wednesday 29 August 2018 11:17

Any suggestions?

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests