#Creating an automation with Aqara FP2

1 messages · Page 1 of 1 (latest)

kind mauve
#

I'm completely new in HA.
I'm trying to create my first simple automation using Aqara FP2 as follows:

If both Kitchen Zone and Living Room Zone are not occupied for 5 min, turn off the TV.

I created two triggers as follows:

When:
FP2 Kitchen Zone became not occupied for 05 min
FP2 Living Room Zone became not occupied for 05 min

Then do:
Turn off TV

This doesn't work because if I sit in the Kitchen but the no one is in the Living room, the automation still turns the TV off.

What would be the right way to create that automation?

wild garden
#

But the same you have in the triggers into the condition.

kind mauve
#

Danke @wild garden Let me try.
By the way is it true that the relation between WHEN triggers is OR and for AND condition I should use "And if"?

#

In other words my When triggers from above are actually:

When:
FP2 Kitchen Zone became not occupied for 05 min
OR
FP2 Living Room Zone became not occupied for 05 min

Right?

mortal swan
#

Correct, triggers are essentially always OR

kind mauve
#

Do I need to put the 05 min delay in all "When" triggers and also in "And if " conditions?