A second click within 10 seconds to freeze blinds going up/down?
Moderator: leecollings
A second click within 10 seconds to freeze blinds going up/down?
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.
-
- 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?
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:
Anyways, this how you can do that:
Re: Stopping blinds after 10 seconds?
Huh? I think you misunderstood but I tried anyways without success:
That's what you meant?
That's what you meant?
-
- 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?
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.
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?
I see. No, I have to send the Stop command for it to stop.
- 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?
Make a scene that you can use in your blockly.
Example:
Example:
-
- Posts: 543
- Joined: Saturday 02 July 2016 5:17
- Target OS: Linux
- Domoticz version: Beta
- Contact:
Re: Stopping blinds after 10 seconds?
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:
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
-
- 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?
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
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge
Re: Stopping blinds after 10 seconds?
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?
Any suggestions?
Who is online
Users browsing this forum: No registered users and 1 guest