benleb / sureha

SureHA 🐾 monitor & control your Sure Petcare devices via Home Assistant
Apache License 2.0
20 stars 13 forks source link

Feature Request: get some alert if pet 'looks through the door' #40

Open netphantm opened 1 year ago

netphantm commented 1 year ago

Is it possible to add a sensor that would trigger when the cat looks through the door if it's locked outside? I noticed that surepetcare has that logged with something like "Leon looked through Front Door". I would like to 'graylist' my cat, so that the door locks when he gets out and unlocks after some time when he's trying to get in again. This would prevent him to get in when he brings back some mice or other critters. He tries to get in with it, but if it's locked, he stays outside (and eats it?), without trying again to bring it in. After that, he can come in again. Works (kind of) like the graylist filter on a mail server that prevents a lot of automated spam. Like with spam, if he is hungry or just wants to get in, he will try again a few times, until I unlock (I have a camera mounted over the catflap, which I check beforehand). (I would also automate the door to lock again after some time, if he doesn't try again, but returns a few hours later, perhaps with another mouse).

netphantm commented 1 year ago

also useful to just alert you if (you know that) pet is locked and it wants to get in or out