surepetcare component allows you to get information on your Sure Petcare Connect Pet or Cat Flap.
To add a flap, feeder or pet, add the following to your
configuration.yaml file. The Hubs a flap or feeder is connected to, will be discovered automatically.
# Example configuration.yaml entry surepetcare: username: YOUR_SURE_PETCARE_LOGIN password: YOUR_SURE_PETCARE_PASSWORD feeders: [12345, 67890] flaps:  pets: 
This service lets you change the locking state of a flap.
|Service data attribute||Required||Type||Description|
||integer||Flap ID to change - see below for instructions on finding device IDs|
||string||New state to change the flap to|
lock_state should be one of:
unlocked- flap is unlocked, pets are allowed both in and out.
locked_in- flap is ‘in only’ - pets can come in but not go back out.
locked_out- flap is ‘out only’ - pets can go out, but not back in.
locked_all- flap is locked both ways.
There are (at least) three ways, sorted in “descending convenience order”:
- Use the surepy tool (uses the same library as this integration) from @benleb. A Python tool to get your token simply by running a single command (check
surepy --helpfor the exact command).
- Use the sp_cli.py from @rcastberg to fetch the IDs from the Sure Petcare API. With the default setting, the IDs will be written as JSON to
- Visit surepetcare.io and log in with your Sure Petcare credentials. Open the developer tools in Chrome/Firefox, switch to the “Network” tab and refresh the page. Now look for calls to
<household id>and others are also possible, but
startshows you all information at once). Click on this call and in the JSON displayed you will find all the needed IDs.
Suggest an edit to this page, or provide/view feedback for this page.