Sureflap Connect - Pet Door

Hi Ben, how do I manual install these files?

Thank you.

Was the version shipped with the most recent version of HA actually broken? What’s the best way to fix this until a new official update comes out?

Thanks again for all your work on this!

Seems so :roll_eyes: GitHub - benleb/surepetcare: dev branch of the Home Assistant surepetcare integration here is a working one :wink: also, PRs to integrate this in hacs is already open :+1:

To install now, create a folder /custom_components/surepetcare and put all files from the repo in, done

like this:

cd <home assistant config>/custom_components/
git clone https://github.com/benleb/surepetcare
2 Likes

Hi
I seem to be missing the flap status (unlocked etc) - does it take several different polls to the surepet API to grab all the sensor data? I am getting connectivity and battery sensors though

thanks for the great work getting this into HASS!

1 Like

ah right :wink: fixed in my repo now :slight_smile:

Thank you, I’ve tested the solution via HACS and I was able to manually change the flap locks to: unlocked, locked_in, locked_out, locked_all.
Unfortunately, the script still does not seem to update the status within HA entities, or HA itself does not register the change and does not update lovelace UI. Strange :frowning:

May I ask if you plan to add additional bindings to the code in the future, similar to those documented on Sure Petcare - Bindings | openHAB ?

One feature I would love to see in future is to be able to manually set the status of the pets to “outside” or “inside”, as we sometimes open the window to let them out.

Great work and thanks for prompt fixes :slight_smile:

Thank you for sharing and well done.
I doubt I have the skills and patience to deploy your solution, but its good to know a solution exists. Unfortunately, I am not very familiar with coding so cannot help much, sorry.

Hi,

I’ve put this dev branch in as a custom component.
It seems to be working. But I’m not getting any info on feeder status other than battery and connectivity. I thought the feeders were more integrated now.

Should weight and feeding info be available in home assistant with this dev component ?

Thanks.

not yet, but maybe I get it done today, I’m currently on it but I have to bake some sweets now :stuck_out_tongue: :wink:

@Blair_Pollard and the other felaqua owner… preview from my local HA :v: :smiley:
image

2 Likes

I ended up adding the repo via HACS, but is there something else I need to do? I don’t seem to be able to set the flap or cats.

@flyize Once you set the following, you should be presented with the various sensors, depending on your account:

#SurePetCare credentials set in configuration.yaml
surepetcare:
  username: !secret my_email_address
  password: !secret surepetcare_password

Replace/define the username/password credentials in your own Home Assistant secrets.yaml file, as per guide here

In my case I am presented with various entities for 1x hub, 1x cat connect flap, 2x pets. I can execute the “set_lock_state” service with all 4x values that are available as options (unlocked, locked_all, locked_in, locked_out). There are currently no other service calls defined in script, as far as I’m aware of.

If you do not have your flap_id value already, you may have to enter some dummy flap_id value first, and execute the service call. The error message should then indicate other (possible) correct values to try next. I am presented with 4x values, two of which are the IDs for my pets, and 1x each for the connect flap and the hub. Try each value out and one of them will work.

@benleb , I believe there is some clash/mix between the official surepetcare repo (which has some known issues) and the updated one that some of us loaded via HACS. The result seems to indicate to me that values/fields are not correctly updated and/or presented into lovelace.
In my case I get the updated (correct) data in lovelace after I manually change the hass:icons to something else. Once I select “Update”, the correct pet_status/lock_Status/battery_state is displayed. The manual update of the hass:icon seems to trigger a refresh of the values, which in turn presents the correct data.

Hope the above observation of mine makes some sense to you. I feel that once the updated code is within the official HA/HASSIO repo, it will all sort itself out.

Have a lovely mothers-day :slight_smile:

1 Like

exactly! do a fresh git pull and see here regarding the change to do in the configuration: GitHub - benleb/surepetcare: dev branch of the Home Assistant surepetcare integration

looking forward to your success reports :sweat_smile:

Looking ace can’t wait to try it out! Let us know when it’s in the Dev branch :+1::+1::+1:

I seem to be be getting A LOT of red ears on my hub. Is anyone else seeing this by chance? Any chance that maybe they’re rate limiting this somehow?

thanks @benleb!

Your latest surepetcarebeta version c615226 has been working perfectly on my HA OS 2021.05.0 setup.

Status is also updating almost instantly when a service call is executed, or with the expected delay in HA when I changed the pet status or flap status via the official Surepetcare app.

What is this entity looking at as I’ve tested it mine is stuck at 200ml even though a cat drank from it the attribute actual_weight changed and seems to match what is in the bowl.

So might be worth making the entity show the value from actual weight then I think it might be correct.

Good progress though this integration is coming along :+1:

Edit it’s now updated to 148 which matches actual weight no idea why it was stuck at 200ml for so long when everything else was updating correctly bit weird

@benleb thanks for this update.
I’m able to use your dev branch in the Home Assistant Operating System
by introducing HACS
by activating ssl terminal and follow your steps to git clone / git pull in the submap ‘custom_components’
by using the surepetcarebeta tag in configuration.yaml

It looks that the integration works this way as I used before in 2012.3.4

Running into the code I see you are able to read the remaining water for a Felaqua.
As you are already able to obtain information on battery level, is it a big job to read the amount food left in feeders and store it in a separated entity?

I think I got the beta working! Thanks @benleb!

Just to confirm, there isn’t a way to set the pets inside/outside through this integration - correct?

1 Like

already done :slight_smile: everything… felaqua battery should be already available as sensor… food / bowls in next hours :slight_smile:

1 Like

not yet, water/food is (or was) more important :slight_smile: please open an issue with the feature request in the surepetcare repo about to keep track and nobody forgets :wink: thats also the advice for bug/problem issues btw…

and another btw… its all open source, I would be really happy if someone wants to help with the code! its not really complicated code I would say and if there are questions or something, no problem! Im happy to introduce you to the codebase :smiley:

3 Likes