Sureflap Connect - Pet Door

preview :smile::v:

regarding the feeder… I will contact you soon, just improving the flap part a little more :slight_smile:

3 Likes

Happy to help where I can. My programming skill is mainly cut ‘n’ shut but can do some testing if you want

Not quite. If i select “Lock in”, “Lock Out” or " Lock both ways" then this changes the lock state and the lock mode to 1, 2, or 3 (0 for unlocked).
In the app I have the curfew set so that the cats can only come in at night and can only go out when the curfew is over in the morning.
This does not show the flap as locked (or in only) during this period.
I did look at the code and there seems to be a lock mode 4 for curfew but I cannot make it report this condition.
I also note that the app does not seem to report the curfew lock is on in any way.

Been in the electronics industry for more time than I like to remember. Brand new battries can oftern be upto 1.6V. They dont stay there long. As a quick fix you could limit the max value to 100% its only ever going to be wrong for a short amount of time and its the low battery we are most interested in.

I full understand your stance on this no need to break the functionality by upsetting sure petcare.
Might be interesting to add an independent state (not linked to petcare) for the pet location (home/away) this would mean if you are only using home assistant for the pet status then it could be be updated by the flap and corrected through HA if wrong.

Brilliant - I found using this as a custom component just slowed down restarting too much. Now it’s included it works really well for me. Only two minor comments being I needed to change the icon (default was showing as a house, wanted it to be a dog) via customize.yaml, and so far the flap hasn’t appeared in my list of available entities but I’m hoping it will in time. Thanks!

How do I swap to the included component from the custom one.

Do I just need to delete the surepet custom component folder.

That worked for me

This is a welcome addition to HA and thank you for your hard work. It’s much appreciated.

I have 3 hubs (all on the same account - additional hubs are added via email request to Surepet), 3 flaps and 2 feeders.

All three flaps and both feeders show up in HA but only 2 of the hubs. Is this limited somewhere?

Should I be seeing a hub status sensor? All I see is TX and RX.

One of my flaps shows a -44% battery level. The other two are both positive values.

Both feeders report battery levels, which is great. Both show as locked, however, It’ll be interesting to see if they show ‘unlocked’ when the cats feed. I appreciate that feeders aren’t yet supported. I just added the IDs as flaps.

Has anyone managed to get the Sureflap Connect to work without the silly-priced hub ? Zigbee2mqtt ?

Im aware of this and working on it, I hope I will get it ready before 0.105 will be released :slight_smile:

Fixed :slight_smile:

I do not really understand what you mean but this integration does not communicate with the Flap or Hub, it gets its information exclusively from the Sure Petcare API. Currently I am not aware of a reliable way to talk to the devices directly.

The icon is your part. Everyone has another pet so I choose a house. Otherwise I would have choosen a cat :stuck_out_tongue: Regarding the flap, how many sensor do you have? There should be 2 binary_sensors and one sensor.

Oh wow okay. I just own one flap and created this integration with this in mind. From now on I will try to make it usable with many devices, maybe I need some help from someone which has more and can show me the raw API responses and such things. Maybe the other issues below are related to this, I can just guess for now.

Oh what? My Integration should not show any Hub at all, as this is not implemented?! What sensors exactly do you have? And what do you mean by TX/RX? The hub/flap rssi maybe? Can you make me a screenshot of the “States” page in the developer tools in Home Assistant showing everything you got?

Crazy, what values do you get for the attrs “voltage” and “voltage per battery”? Are all free flaps the some product?

The same as for the hub, there is no code implemented to show feeders currently. So maybe Sure Petcare did something which makes the feeders to look like flaps for the integration or you have installed something completely different? :smiley: Could you please give me the API responses you get from the sure petcare API for your household? (Possible via curl for example or opening Sure Petcare in a browser, and copy the jsons shown in the dev console while you surf around there). Or if you don’t like such things, would you mind to give me a read-only account so that I can fetch the API responses and check whats going on? I just would need it 1-2 days :slight_smile: Yours is the most “interesting” account that I know of :smiley:

I am not aware of anything, probably its Zigbee yes, but also could be Wifi (because of the frequency). But the cheap china zigbee sticks used in zigbee2mqtt or similar are not reliable in my opinion. Personally I have no access to really professional zigbee hardware and so this is (unfortunately) something I do not care at the moment. If you find some more information about this, tell us :smiley:

Thanks!

edit: i just discovered a new API endpoint which allows me to get ALL data with one call as it looks - not really interesting for a user but for developing its much easier :slight_smile:

1 Like

Only 2 of the hubs show up as one was disconnected! My error.

The flap showing a -ve battery level is a pet door rather than a cat door.

Not sure how to see voltages.

I’ll need an email address to send you an invite.

Thanks to @ashscott for letting me look :slight_smile: :clap: Helps much to solve the issues and implement the feeder :slight_smile:

Thanks for creating this :slight_smile:

hi, trying to read through all this info but my big question is do i need the hub? does it work with Conbee and DeCONZ without the hub?

No. You’ll need the hub and a Surepet account.

1 Like

The integration came just at the right time, I’m migrating to HA, and Surepetcare integration was already on my to do list.

Finding the IDs was fairly easy if you know which ones are needed.

I now have indoor / outdoor status of my cat, cat flap locked or not and battery status.

on the integrations page i read something about customise the icon, i have tried icon: mdi:cat but that gave a error…

Are there even more options that can be read?
For example, the online status of the hub or flap?

Finally got round to implementing this component myself.

Looking at my sensors I assume some change would occur against the attributes of the binary sensor for the cat flap for rssi:

device_rssi: -70
hub_rssi: -72.8

Without taking the hub offline I’m not sure though - if anyone has a reliable way of determining online / offline status it would be good to know so I can add a suitable notification.

I am currently working on this PR, implementing much of the requested stuff: https://github.com/home-assistant/home-assistant/pull/31437

I have a json which shows all available information, I will strip out some personal/secret things and post it here so you can see whats available and maybe should be implemented (but after the mentioned PR above is done and merged :))

1 Like

awesome :slight_smile:

I have two feeders and two cats and would be happy to be involved in testing if/when you develop the feeder side.

Thanks,
Bruce.