surepetcare component allows you to get information on your Sure Petcare Connect Pet or Cat Flap.
To add a flap and pet, add the following to your
# Example configuration.yaml entry surepetcare: username: YOUR_SURE_PETCARE_LOGIN password: YOUR_SURE_PETCARE_PASSWORD feeders: [12345, 67890] flaps:  pets: 
The Sure Petcare Username/Email
The Sure Petcare Password
The Sure Petcare flaps
The Sure Petcare feeders
Pets managed by Sure Petcare flap(s)
Icon to display (e.g.,
Minimum time interval between updates. Supported formats:
scan_interval: 'HH:MM'and Time period dictionary (see example below).
The type/class of the sensor to set the icon in the frontend.
There are (at least) two ways:
- 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.