I just saw on their twitter timeline: https://twitter.com/SurePetcare/with_replies
Nothing to do with your integration I am sure, but who knows what surepet have done to the client API that you’re leveraging @benleb as they were saying you need to update the app.
Is this integration working on 2021.7.4? I’m still on 2021.5.0 as it works perfectly. I tried updating to 2021.7.4 but I had issues with locking/unlocking the door and the cats’ location wasn’t updating. Also in 2021.7.4 they’ve got rid of composite which I use for the cats’ location.
Are you able to call service to lock/unlock the door?
Where do I find this version?
I’m going to do a test update and try it out as this (and my custom component securitas_direct) did not work when I tried to update last time. Funny enough this and the securitas_direct integrations are the two most important that I use and were the two that broke on updating
I currently use composite for my cat. I believe this has been discontinued in later versions of HA.
What do you use for your cat to show home or not_home?
That’s not an unexpected delay, that’s simply how often we call the sure api (every 3min currently i think). This is some kind of „protection“ for us. Sure never agreed to this kind of usage but they also did nothing to stop or block us… So it’s something like an unspoken agreement at the moment and therefore I don’t want hammering their servers with calling the api every 10s or anything. For me that’s absolutely acceptable. If you have a case where that’s to much, we can talk about!
And about the device tracker… I also would like one and it’s partly implemented in my private repo but it’s not the highest prio task currently
Since I’ve seen a lot of homebrew software rely on polling an endpoint, is it safe to assume its hard/impossible to get push notifications like the app does?
yes… One would have to „emulate“ an iOS or Android device (against Apple/Google, not just Sure Petcare) to achieve this. Push notifications are sent from Apple/Google servers and not from Sure and they send it just to „registered devices“ from their view…
I don’t know if someone has achieved this in general?! Writing some code to trick apple or google that far that they think it’s really one of their(!) devices…?
And my opinion… if someone has the skill to do this, it probably wouldn’t burned (as they will patch it ;)) for a smart cat flap…
There is two ways to get more frequent updates. Either use my integration that takes the raw MQTT messages and use that or increasing to polling frequency but that may cause issues with sureflap getting grumpy with you.
The doors itself have around a 5-10 second delay from when the event occurs to when the MQTT message is sent anyway and it varies between devices connected to the hub from what I have seen.