Hello,
I search a solution to avoid all my blinds close in the same time.
Because when sunset all my Blind close.
I see expire solution but there are not a simple delay way ?
Thx
Hello,
I search a solution to avoid all my blinds close in the same time.
Because when sunset all my Blind close.
I see expire solution but there are not a simple delay way ?
Thx
What have you go now?
What exactly do you want to achieve?
Items? Rules?
Probably a number of ways to go about this.
One way is to put your blinds in an OH group and have a rule sequence through the group, issuing commands with a delay in between.
Another way could be to trigger the start of one blind from the stop of a preceding one.
I have this rules where I want also add a delay.
I try but not ok, I want wait 2min before send my command.
rule "Home Absence"
when
Item PresenceV changed to OFF or
Item PresenceD changed to OFF
then
var Timer myTimer = createTimer(now.plusMinutes(5), [ |
if(PresenceV.state==OFF && PresenceD.state==OFF)
{
logInfo("RULE", "Absent")
Mode_Home.sendCommand(1)
}
])
end
it’s look like ok ?
Do you need the variable?
rule "Home Absence"
when
Item PresenceV changed to OFF or
Item PresenceD changed to OFF
then
if(PresenceV.state==OFF && PresenceD.state==OFF)
{
createTimer(now.plusMinutes(5), [ |
logInfo("RULE", "Absent")
Mode_Home.sendCommand(1)
}
])
end
Thx !
I don’t know if I need variable I just follow wiki info and try to understant I try like this
There are a error I adapt like this and I try tomorrow if it’s work =D
rule "Home Absence"
when
Item PresenceV changed to OFF or
Item PresenceD changed to OFF
then
createTimer(now.plusMinutes(5), [ |
if(PresenceV.state==OFF && PresenceD.state==OFF)
{
logInfo("RULE", "Absent")
Mode_Home.sendCommand(1)
}
])
end
What does the error say?