Sanity check on rule: using the sun as a condition for Group reactions
-
Goal: When in
away
mode I would like the blinds to shift from tilted to closed if I happen to still be out at the point sunset passes.The reason this is an ask for sanity check is I'm trying to use Groups in my Reaction.
So I'm triggering on
mode
=away
but also trying to see if I can trigger on the sun......to trigger my Reaction groups:
In MY mind this reads as "mode must be
away
and the sun is between sunrise > sunset use the first group Reactionor
sunset > sunrise and if that happens whilst inaway
then use the second group Reaction.Worst case I'm already sipping eggnog and can just split it apart into two rules but I wanted to see if this would work and make it all self-containable.
And about eggnog. What is
nog
, exactly...? Until I know for certain, I'm not drinking the stuff. -
The 'can I fool the sun' condition group is basically useless in this scenario. You have two conditions, one being between sunrise and sunset and the other being between sunset and sunrise. At any time of day one of those conditions will be true so there's no real need to have it there.
If I am following correctly you want your blinds to close either if you are away or if the sunsets? If that's the case in your triggers you want to make it an OR group and in there one trigger should be the away trigger and the other trigger should be between sunset and sunrise.
In the actions settings you just wanna have the blinds close and in the reaction if so pleased you can have them open but I assume you don't want them to auto open.
-
The 'can I fool the sun' condition group is basically useless in this scenario. You have two conditions, one being between sunrise and sunset and the other being between sunset and sunrise. At any time of day one of those conditions will be true so there's no real need to have it there.
If I am following correctly you want your blinds to close either if you are away or if the sunsets? If that's the case in your triggers you want to make it an OR group and in there one trigger should be the away trigger and the other trigger should be between sunset and sunrise.
In the actions settings you just wanna have the blinds close and in the reaction if so pleased you can have them open but I assume you don't want them to auto open.
@Pabla Maybe explaining in this way will help:
Daytime, blinds open. I leave, house flips to
away
and the blinds tilt to 20% open. If I come back, no problem, they open again. Easy.BUT.
What if I'm away for the bulk of the day and the sun sets and now it's after dark?
My usual
evening
mode has the blinds closing and I'd like that to happen here.So:
away
during the day, blinds tilt to 20% open
away
continuing uninterrupted after sunset, blinds should close like they would if I were home inevening
mode
My sunrise/sunset
OR
is simply to act as the Condition noting the sun has "changed". -
@Pabla Maybe explaining in this way will help:
Daytime, blinds open. I leave, house flips to
away
and the blinds tilt to 20% open. If I come back, no problem, they open again. Easy.BUT.
What if I'm away for the bulk of the day and the sun sets and now it's after dark?
My usual
evening
mode has the blinds closing and I'd like that to happen here.So:
away
during the day, blinds tilt to 20% open
away
continuing uninterrupted after sunset, blinds should close like they would if I were home inevening
mode
My sunrise/sunset
OR
is simply to act as the Condition noting the sun has "changed".@gwp1 said in Sanity check on rule: using the sun as a condition for Group reactions:
My sunrise/sunset OR is simply to act as the Condition noting the sun has "changed".
Yeah... doesn't work that way. between sunrise and sunset is true during the configured period, so the parent OR group is true. When sunset arrives, the first condition goes false but the second condition goes true in the same evaluation/instant, so the group remains true because both conditions were never false at the same instant, you just traded one for the other. There is no "dead period" between the two conditions, one changes to the other instantly, so the OR group never changes state (remains true forever with the conditions given).
There are many choices to get to what you want. I'm going to leave it to your creativity to imagine/solve. Hint: you can do it without changing the structure of this rule or its conditions and reactions, just by choosing condition options carefully in the right places.
-
T toggledbits locked this topic on