Sureflap Connect - Pet Door

The only sensor I see is the feeder battery.

That’s all I see. Has anyone else had any luck with this, perhaps using a custom component?

Hey,

this might be a little off-topic. I have been looking at buying a SureFlap Connect cat flap for quite some time and integrate it into my HA using this awesome integration :slight_smile:
However, some of the reviews I read online are still “scaring” me a little. People complaining about the flap not functioning, other than programmed cats being able to enter, programmed cats not being able to enter and so on.

Are these rather “user” errors or is this flap still performing like a “new” product?

Any feedback the HA community can give me around this?

Thanks a lot in advance!

I have three flaps, 2 feeders and three hubs.

It’s rare that I’d say this but they’ve all been faultless.

Only issues I e had were operator error or network issues.

Definitely recommended.

1 Like

So are the feeders now working? Or something special you got to do I’d love to have the feeders in HA want something like if 10% food left send notification etc.

Not got any flaps just two feeder.

I just tried adding the integration but only feeders and it says unable to set up integration when i reboot home assistant do i need pets? or is it because my id numbers are 6 digits instead of 5?

adding pets made it work.

any plans to add more data for feeders basically all this can do is battery and signal strength do you need data? i can send over data for 2 feeders and pets if you need.

looking through the data i cant see remaining food anywhere which is about the only thing i want can find amount last ate and the target weights for each food but nothing for food left.

found the data for food left its under in developer tools in chrome the number is the household id then in there there is data for each feeder the weight left in each bowl and last change in weight is also there.

if we can get target weight and current weight into HA then we could work out a percentage remaining then that would be very usefull.

Since the 0.107.5 update I’m getting a config error for surepet. Was there a breaking change between 0.107.4 and 0.107.5?

This is what I’m seeing:

The following integrations and platforms could not be set up:

* surepetcare

Please check your config.

And my config looks like this:

surepetcare:
  username: !secret surepet_user
  password: !secret surepet_password
#  household_id: 12345
  flaps: [12345, 12345, 12345]
  pets: [12345, 12345, 12345]
  feeders: [12345, 12345]

@ashscott it might be this - https://github.com/home-assistant/core/issues/32583 - ignore the bit at the start about interaction with other components. I get this pretty much all the time when I restart HA at the moment - it looks like there is an auth timeout. Maybe Sure Petcare’s servers are running slightly slower now…

Is the developer for this not active anymore?

Github profile says he’s on vacation, hopefully he’ll get to it once he is back.

Hi all,

After using a “hacked” cat door with glued-on sensor, I finally took the plunge and ordered the Sureflap Connect cat door and hub.

After setting up the integration in Home Assistant, I get the following error:

ValueError: None is not a valid SureLockStateID

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 434, in _async_add_entity
    await entity.async_update_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    state = self.state
  File "/usr/src/homeassistant/homeassistant/components/surepetcare/sensor.py", line 125, in state
    return SureLockStateID(self._state["locking"]["mode"]).name.capitalize()
  File "/usr/local/lib/python3.7/enum.py", line 310, in __call__
    return cls.__new__(cls, value)
  File "/usr/local/lib/python3.7/enum.py", line 564, in __new__
    raise exc
  File "/usr/local/lib/python3.7/enum.py", line 548, in __new__
    result = cls._missing_(value)
  File "/usr/local/lib/python3.7/enum.py", line 577, in _missing_
    raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: None is not a valid SureLockStateID

I’ve checked the source code and it seems the integration is not able to get the locking mode of the door.

(at 125:)

        return SureLockStateID(self._state["locking"]["mode"]).name.capitalize()

Anyone knows how I can fix this?

Thanks!

Found the solution!
As I freshly installed the Flap, I found out that I have to manually toggle the lock mode in the Android App for the variable to populate.

No issue with mine either. Having the hub a little further away and a dog that likes to just poke his head out results in higher than normal battery usage though. 5 months on 4 cheap C batteries.

1 Like

Very happy with this integration, set it up last night and it is working to view the current state of the flap and what it tracks from the little doggos.

I do have a feature request though…
Would be awesome to be able to also change the pet door lock status from Home Assistant. Its semi ok to do from the Android app, but the ultimate would be to do it from HA, especially if I can link it to other actions, like when I set the home alarm to arm away I would like the pet door to be checked and if not locked, to lock the dogs outside.

Any chance this can be added already with the integration or will I have to settle for creating a python script for now?

Per a previous post by the contributor:

Ok but wait a second.

What is this then? See https://github.com/alextoft/sureflap

There is the following push commands:

  • setLockMode.php in|out|both|none
  • setHubLedBrightness.php bright|dim|off
  • setEnableCurfew.php lockTime unlockTime (eg. 18:00 06:30)

Unfortunately thats in PHP but it looks like the same/similar API to me.
Worst case scenario I guess I will have to run that as an external script.

I’m sure it’s technically possible. AFAIK (not to speak for him of course) the contributor has opted not to offer it as this is an unofficial integration and gave the quoted explanation earlier in this very thread. I merely quoted it.

I was in the beta for the cat flap launch and campaigned strongly for the company to offer an API - however I know they had significant problems in the early days getting their infrastructure in a stable state for the scale of authorised demand. They went through a great number of significant back-end changes after the initial launch and had a significant amount of down-time.

Personally I’m simply using the SureFlap integration to provide additional features that we find useful:

  • Warnings when a cat has been out for too long (one of them likes to nose around people’s garages and gets trapped)
  • Warnings when the flap batteries are low and need replacing
  • Warnings when the equipment goes offline.
1 Like

Ok I understand. Its unfortunate because its a great integration. Will keep on using it and settle for running scripts to change the state.

My flap has just sent me a message from Surepet to say the battery is low. Its is still working.

Looking at the sensor it is showing -21% voltage is 4.69V and voltage per battery is 1.17V

What are the levels for 0% and 100% does this need to be lowered.

Anyone else having issues since 0.108.3 ?