Sureflap Connect - Pet Door

Has many other people bothered to get the password from their hub?? As I am not sure if anyone else has received the latest firmware update as I am interested to see if anyone has captured the messages sent from the cloud to the hub to initiate the firmware update. Also wondering if I should go down the full home assistant component path or change my code to return the same JSON payload as the cloud service for laughs.

Are you using the custom component version (installed via HACs or other methods) that is referenced in the latter part of this thread rather than the core integration?

AFAIK there has been no movement on fixes for the core integration: Issues · home-assistant/core · GitHub

I think some of the issues in github are fixed in 2021.7. (Surepetcare, Use entity class vars and some clean up by Danielhiversen · Pull Request #52205 · home-assistant/core · GitHub, Clean up surepetcare binary sensor by Danielhiversen · Pull Request #52217 · home-assistant/core · GitHub, Clean up Surepetcare sensor by Danielhiversen · Pull Request #52219 · home-assistant/core · GitHub )

I can not reproduce the “I/O must be done in the executor” issue and the entities are now updated,

Good to know - thank you for your efforts on the component.

I’m currently running the beta repo via HACs as I’ve integrated two bowls into HA - am I right in thinking that the core integration does not yet support the feeder sensors (other than connectivity) as at release 2021.7.4?

I’d appreciate it if anyone can confirm.

Considering the outages that Sureflap seemed to have over the last 24 hours… time for another plug of my project. :slight_smile:
https://community.home-assistant.io/t/local-cloud-service-for-sureflap-connect-pet-cat-door-and-feeder
I am planning to add full Cat Flap support as I am going to purchase one for testing purposes and I have a Felaqua on the way so will have the complete set and also have been including all the undocumented custom modes based on the ones I have figured out for the Feeder and Pet Door.

2 Likes

hm outages? I implemented some stuff in my sureha integration… lets hope there is no relation :sweat_smile:

@the others… Surepetcare integration update & config flow by benleb · Pull Request #53399 · home-assistant/core · GitHub that’s the PR pushing the core integration to almost the level of GitHub - benleb/sureha: dev branch of the Home Assistant surepetcare integration - but I think that one will not go through without some remarks in the review, so could take some days :confused:

3 Likes

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.

Hi all.

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.

   - platform: composite
     name: Vaska
     entity_id:
      - binary_sensor.pet_vaska 

I would really like to update but don’t want to lose this integration! as it is one of my most important integrations.

Thanks

I’m using the beta, and it works fine.

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?

Thanks

Sure, the lock service works as expected.

Ok so I have done the update and downloaded the code and put it in my custom_components folder

A step closer. Still not working though:

Logger: homeassistant.helpers.integration_platform
Source: loader.py:503
First occurred: 14:36:28 (6 occurrences)
Last logged: 14:37:08

Unexpected error importing sureha/system_health.py
Unexpected error importing sureha/logbook.py
Unexpected error importing sureha/group.py
Unexpected error importing sureha/media_source.py
Unexpected error importing sureha/significant_change.py
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 33, in _process
    platform = integration.get_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 498, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 503, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.sureha-dev.recorder'

Think I’ve got it

1 Like

Is composite no longer working in the latest HA?

I had a lovely badge for my cat that changed based on his location but I get an error now:

Platform error device_tracker.composite - Integration 'composite' not found.

Is this the way to sort out composite?

Thanks

Couldn’t you just use the binary_sensor created for the pet to show home/away?

All it shows is a picture of the cat

image

The fist badge is the composite I had before. The last badge is the binary sensor which doesn’t show anything…

Ahhh, maybe I don’t understand how badges work then, as I don’t use them. If you’re interested, here’s what mine looks like.

image

2 Likes

Thanks man got it working :slight_smile:

1 Like

How much delay are you experiencing?

I’ve tested setting the cat to inside on the Sure Petcare app and watching HA, there is at least a 2/3 min delay on mine