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

Moderator: leecollings

Post Reply
quack3d
Posts: 86
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 »

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: 247
Joined: Sunday 29 November 2015 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9639
Location: Spain
Contact:

Re: Stopping blinds after 10 seconds?

Post by elmortero »

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 1460 times
quack3d
Posts: 86
Joined: Sunday 26 March 2017 17:03
Target OS: -
Domoticz version:
Contact:

Re: Stopping blinds after 10 seconds?

Post by quack3d »

Huh? I think you misunderstood but I tried anyways without success:
Domo.png
Domo.png (54.09 KiB) Viewed 1435 times
That's what you meant?
elmortero
Posts: 247
Joined: Sunday 29 November 2015 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9639
Location: Spain
Contact:

Re: Stopping blinds after 10 seconds?

Post by elmortero »

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: 86
Joined: Sunday 26 March 2017 17:03
Target OS: -
Domoticz version:
Contact:

Re: Stopping blinds after 10 seconds?

Post by quack3d »

I see. No, I have to send the Stop command for it to stop.
User avatar
capman
Posts: 153
Joined: Friday 12 July 2013 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Stopping blinds after 10 seconds?

Post by capman »

Make a scene that you can use in your blockly.
Example:
blinds1.JPG
blinds1.JPG (102.49 KiB) Viewed 1419 times
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Re: Stopping blinds after 10 seconds?

Post by ben53252642 »

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
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
CaesarPL
Posts: 104
Joined: Tuesday 08 November 2016 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: Stopping blinds after 10 seconds?

Post by CaesarPL »

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: 86
Joined: Sunday 26 March 2017 17:03
Target OS: -
Domoticz version:
Contact:

Re: Stopping blinds after 10 seconds?

Post by quack3d »

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: 86
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 »

Any suggestions?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest