{and}
Just as we can add additional {then}
actions to a flow we can also easily add additional conditions which must be met before the actions will trigger. These are called {and}
because {when}
a trigger happens {and}
another criteria is met {then}
the action happens.
It might be worth noting that if the {and}
criteria is not met then the action will not happen.
Or in our case, {when}
the sun sets {and}
we are not home {then}
turn on the porch light, {then}
set the homey to 100% brightness.
Ingredients
- [Fibaro Switch] (But you can use any smart light globe or switch.)
- [Date & Time] card, which give us access to time, date, day and even sun actions.
- [LED Ring] card, which gives us access to some homey LED ring actions.
- [Presence] card, which give us access to actions about peoples presence in the house.
Actions
{when}
{and}
{then}
x 2
Method
Just like the previous examples, we will be just adding a new card, this time though we will be adding it to the {and}
section.
- After clicking edit, slide up the
{and}
section. - Click the ⨁ Add Card and a list of possible conditions will load.
- Select the [Presence] condition and the options for that condition will be shown.
- Select the option [Nobody is home] then follow the normal process for saving.
{when}
Sunset{and}
Not Home{then}
Turn on light{then}
set Ring LED to 100% brightness.
Outcome
That’s it, now the porch light will only come on if no one is home.