I’m new to Home Assistant and really need some hints, in how to achieve my goal.
- Is it possible with AppDeamon?
- Can I solve it with something else?
- Is there a tutorial which covers my problem (see below) with states and variables,…?
This is my setup:
In my kitchen I have ZigBee lights, and if I enter the kitchen the first motion sensor in the door (IKEA)
starts a timer for 1 minute, this is usually enough to do something and then leave the kitchen again.
Then, I have a second motion sensor (IKEA), which points to the sitting area in the kitchen.
If this sensor is triggered a 10 minutes timer starts, because, if I decide to sit there I usually
don’t move enough for “a minute timer”.
Both timers control the same lights and the ten minute timer “overrides” the one minute timer.
Up to now, I use two IKEA motion sensors for this:
Both sensors a coupled, simply by pairing one to another (IKEA handles this even without the TRADFRI gateway). Thus the 10 minute timer overrides the 1 minute timer and the one minute timer controls the lights.
This already works, but I like to implement this “hidden” behavior in Home Assistant.
I think, I need something like a node which gets events from both motion sensors.
Each of them, pass the time and the source (motin1,motion2) into the node.
In the node there is some state handling, which implements the IKEA logic.
In the Home Assistant documentation I cannot find any solution for my problem.
I’m a bit lost, and ask myself how to implement this behavior?