Sure Petcare


The surepetcare component allows you to get information on your Sure Petcare Connect Pet or Cat Flap.

Configuration

To add a flap and pet, add the following to your configuration.yaml file:

# Example configuration.yaml entry
surepetcare:
  username: YOUR_SURE_PETCARE_LOGIN
  password: YOUR_SURE_PETCARE_PASSWORD
  feeders: [12345, 67890]
  flaps: [13579]
  pets: [24680]

Configuration Variables

username

(string)(Required)

The Sure Petcare Username/Email

password

(string)(Required)

The Sure Petcare Password

flaps

(map)(Required)

The Sure Petcare flaps

id

(integer)(Required)

The Sure Petcare id of a flap

name

(string)(Required)

A name for the flap

feeders

(map)(Required)

The Sure Petcare feeders

id

(integer)(Required)

The Sure Petcare id of a feeder

name

(string)(Required)

A name for the feeder

pets

(map)(Required)

Pets managed by Sure Petcare flap(s)

id

(integer)(Required)

The Sure Petcare id of a pet

name

(string)(Required)

The name of the pet

icon

(string)(Optional)

Icon to display (e.g., mdi:cat)

Default value:

mdi:cat

scan_interval

(time)(Optional)

Minimum time interval between updates. Supported formats: scan_interval: 'HH:MM:SS', scan_interval: 'HH:MM' and Time period dictionary (see example below).

Default value:

3 minutes

device_class

(device_class)(Optional)

The type/class of the sensor to set the icon in the frontend.

Default value:

lock

Getting the IDs of your flaps, feeders and pets

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 ~/.surepet.cache.
  • 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 start (pets, <household id> and others are also possible, but start shows you all information at once). Click on this call and in the JSON displayed you will find all the needed IDs.

Where to find the IDs vie Browser developer console