mirror of https://github.com/home-assistant/core
24 lines
555 B
Python
24 lines
555 B
Python
"""Constants for the Sure Petcare component."""
|
|
|
|
DOMAIN = "surepetcare"
|
|
|
|
CONF_FEEDERS = "feeders"
|
|
CONF_FLAPS = "flaps"
|
|
CONF_PETS = "pets"
|
|
|
|
# sure petcare api
|
|
SURE_API_TIMEOUT = 60
|
|
|
|
# flap
|
|
SURE_BATT_VOLTAGE_FULL = 1.6 # voltage
|
|
SURE_BATT_VOLTAGE_LOW = 1.25 # voltage
|
|
SURE_BATT_VOLTAGE_DIFF = SURE_BATT_VOLTAGE_FULL - SURE_BATT_VOLTAGE_LOW
|
|
|
|
# state service
|
|
SERVICE_SET_LOCK_STATE = "set_lock_state"
|
|
SERVICE_SET_PET_LOCATION = "set_pet_location"
|
|
ATTR_FLAP_ID = "flap_id"
|
|
ATTR_LOCATION = "location"
|
|
ATTR_LOCK_STATE = "lock_state"
|
|
ATTR_PET_NAME = "pet_name"
|