슈어 펫케어(Sure Petcare)


surepetcare 구성 요소를 사용하면 Sure Petcare Connect Pet 또는 Cat Flap에 대한 정보를 얻을 수 있습니다.

설정

Flap 과 pet을 추가하려면 configuration.yaml 파일에 다음을 추가하십시오.

# Example configuration.yaml entry
surepetcare:
  username: x@y.com
  password: v3rys3cr3t!
  household_id: 1337
  flaps: [{id: 2337, name: Flap}]
  pets: [{id: 3337, name: Pet}]

Configuration Variables

username

(string)(Required)

The Sure Petcare Username/Email

password

(string)(Required)

The Sure Petcare Password

household_id

(integer)(Required)

The Sure Petcare household_id

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

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

flaps 와 pets의 집안 ID 얻어내기

지금은 @rcastbergsp_cli.py를 사용하여 가져 오십시오. Sure Petcare API의 ID 기본 설정에서 ID는 JSON으로 ~/.surepet.cache에 기록됩니다.