Hi, is there a way to configure the following:
Uneven times uses of Aqara window door sensor = notify (or show on dashboard) cat is outside house.
Even times uses of Aqara window door sensor = notify (or show on dashboard) cat is inside house.
I’m still learning my way around in Home Assisant so your help is much appreciated. Thanks!
The simplest way I would approach it is by toggling an input boolean when the cat flap is triggered, then use that input in a binary template sensor.
In fact a quick search shows someone has already done it:
Your binary sensor template wouldn’t be “open/closed” - it would be “in/out”
My only issue is - knowing the way cat flaps work - I would probably put a delay in the automation to debounce any false signals from the cat flap swinging and triggering the sensor, after the initial one when the cat went through.