Page 1 of 1
A second click within 10 seconds to freeze blinds going up/down?
Posted: Monday 06 August 2018 9:26
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?
Re: Stopping blinds after 10 seconds?
Posted: Monday 06 August 2018 11:33
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 (21.01 KiB) Viewed 1537 times
Re: Stopping blinds after 10 seconds?
Posted: Monday 06 August 2018 17:27
by quack3d
Huh? I think you misunderstood but I tried anyways without success:

- Domo.png (54.09 KiB) Viewed 1512 times
That's what you meant?
Re: Stopping blinds after 10 seconds?
Posted: Monday 06 August 2018 19:26
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.
Re: Stopping blinds after 10 seconds?
Posted: Monday 06 August 2018 19:47
by quack3d
I see. No, I have to send the Stop command for it to stop.
Re: Stopping blinds after 10 seconds?
Posted: Monday 06 August 2018 20:12
by capman
Make a scene that you can use in your blockly.
Example:

- blinds1.JPG (102.49 KiB) Viewed 1496 times
Re: Stopping blinds after 10 seconds?
Posted: Monday 06 August 2018 20:20
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
Re: Stopping blinds after 10 seconds?
Posted: Tuesday 07 August 2018 9:49
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
}
Re: Stopping blinds after 10 seconds?
Posted: Tuesday 07 August 2018 14:18
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.
Re: A second click within 10 seconds to freeze blinds going up/down?
Posted: Wednesday 29 August 2018 11:17
by quack3d
Any suggestions?