alextoft / sureflap

Basic PHP Examples for SureFlap API (IoT cat flap)
73 stars 17 forks source link

Add support for listing pet permissions #14

Closed dwmw2 closed 3 years ago

dwmw2 commented 4 years ago

The 'Intruder' status is learned by asking their support staff to set next door's cat to 'out only' mode, then observing that they set it to {"profile":5}. The normal indoor/outdoor modes can be set through the app normally.

lorenzulrich commented 4 years ago

Hi @dwmw2 I just found this pull request and wanted to ask you about more background information. Do I unterstand you correctly that Sure Petcare support can improve the "intruder" situation somehow?

We deactivated the DualScan feature completely because once one of our cats was followed by an "intruder" that made it through the door because it was too close in pursuit and the flap couldn't close. This cat would then be trapped inside our apartment. I was asking support if they planned something like non-registered cats can always leave while for registered cats the curfew settings apply. If you have a solution for that, please let me know.

Thanks in advance!

dwmw2 commented 4 years ago

Yes, and we have watched it let the intruder cat leave.

They told me not to rely on it being 5, but I suspect that it's OK to do so.

Hoefnix commented 4 years ago

Yes, and we have watched it let the intruder cat leave.

They told me not to rely on it being 5, but I suspect that it's OK to do so.

So you need to scan the intruder and then assign the 'intruder' classification 5 to it? Then it might be able to leave the home but is not allowed to come in. We have a ( friendly ) neighbour cat that wanders in when the door is open. But every now and then we dont know, leave the home, closing all doors and hours later the poor sod is sill in. This would help indeed.

dwmw2 commented 4 years ago

Yes, and we have watched it let the intruder cat leave. They told me not to rely on it being 5, but I suspect that it's OK to do so.

So you need to scan the intruder and then assign the 'intruder' classification 5 to it? Then it might be able to leave the home but is not allowed to come in. We have a ( friendly ) neighbour cat that wanders in when the door is open. But every now and then we dont know, leave the home, closing all doors and hours later the poor sod is sill in. This would help indeed.

Yes. I believe it will work just by assigning '5' to it. Their support did it for me the first time and it's vaguely possible they did something else to flag my account to enable that, but unlikely. Please let us know if it works for you.

Hoefnix commented 4 years ago

Yes, and we have watched it let the intruder cat leave. They told me not to rely on it being 5, but I suspect that it's OK to do so.

So you need to scan the intruder and then assign the 'intruder' classification 5 to it? Then it might be able to leave the home but is not allowed to come in. We have a ( friendly ) neighbour cat that wanders in when the door is open. But every now and then we dont know, leave the home, closing all doors and hours later the poor sod is sill in. This would help indeed.

Yes. I believe it will work just by assigning '5' to it. Their support did it for me the first time and it's vaguely possible they did something else to flag my account to enable that, but unlikely. Please let us know if it works for you. I need support for assigning that code to the cat?

dwmw2 commented 4 years ago

I need support for assigning that code to the cat?

I don't think so. Just apply the cat to the catflap (or the flap to the cat, as I did before actually installing it) as normal to learn its microchip.

dwmw2 commented 4 years ago

I was asking support if they planned something like non-registered cats can always leave while for registered cats the curfew settings apply. If you have a solution for that, please let me know.

I stopped using their curfew because I wanted to let our adult cat out at night while still keeping the kitten in. So I hooked it up to my home automation system which can make changes for individual cats on its own time schedule. unnamed

Integration code at https://github.com/domoticz/domoticz/pull/3961 FWIW.

Hoefnix commented 4 years ago

I was asking support if they planned something like non-registered cats can always leave while for registered cats the curfew settings apply. If you have a solution for that, please let me know.

I stopped using their curfew because I wanted to let our adult cat out at night while still keeping the kitten in. So I hooked it up to my home automation system which can make changes for individual cats on its own time schedule. unnamed

Integration code at domoticz/domoticz#3961 FWIW.

Ok, thank you. I will have to look into it. I used the calls only to visualise the whereabouts of my cats in homekit, never tried to change the information and/or status of the flap.

lorenzulrich commented 4 years ago

Thanks for your clarifications. Unfortunately it looks as if it wouldn't apply on my solution. I would like to let any intruder (non-registered or even without chip) leave the house at any time while keeping our cats in based on the curfew settings. It seems that there is still no solution for this.

dwmw2 commented 4 years ago

Right. You could ask support, but I'm not currently aware that it can do this.

Hoefnix commented 4 years ago

I need support for assigning that code to the cat?

I don't think so. Just apply the cat to the catflap (or the flap to the cat, as I did before actually installing it) as normal to learn its microchip.

Thank you for the hint, extended my sureflap python library and now, finally, the neighbour cat can get out of his own 😀. Realising I can also write status, being able to (un)lock the flap from homekit is a nice extra.