I would like to create a flow that opens my shutters when sun rises but not before 7h. This only from monday to friday and not in summer.
My flow should be like : IF (time = 7h) OR (sunrise AND time > 7h) THEN open shutters
I have tried IF (sunrise) AND [ (time > 7h) AND (day in week) AND (it’s not summer) ] THEN open shutters. It’s working fine when sun rises after 7h but I think it will not next spring when for exmple sun rises at 6h…
I have RTS curtains and blinds and they don’t mind having the commands sent twice. The actual device knows if it’s open or closed so they just ignore the second command.
Adrian is right, I can send several UP signals, if it’s already opened, no matter (in my case it’s opened twice a day), and disabling flow would not change a lot.
Finally, I keep the solution with 2 flows : one to open at 7 if sunrised already, and one to open when sunrise if time is later than 7.
Extra question : can someone give me an example of the ELSE function ? I understand this:
WHEN something
AND (conditions OR other conditions) -> is it right ?
THEN action
ELSE alternative action which happens when conditions are not verified ?
The conditions in the “And…” section must be fulfilled for the action part in the “Then…” section to be executed.
If there is an “Or” in the “And…” section, then one of the two conditions or groups of conditions must be fulfilled for the action part in the “Then…” section to be executed.
If no condition or group of conditions is fulfilled in the “And…” section, then the action part in the “Else…” section will be executed.
A simple example is to set a variable. In my case I switch a Yes/No variable to know if the TV is on or not.
If the energie of the smart plug is more than 25 W then the variable is set to Yes.
If the energie of the smart plug is less than 25 W then the variable is set to No.