2020-01-06 14:00:01 +00:00
|
|
|
"""Constants for the Sure Petcare component."""
|
|
|
|
DOMAIN = "surepetcare"
|
|
|
|
|
2020-02-09 16:46:00 +00:00
|
|
|
CONF_FEEDERS = "feeders"
|
2020-01-06 14:00:01 +00:00
|
|
|
CONF_FLAPS = "flaps"
|
|
|
|
CONF_PETS = "pets"
|
|
|
|
|
2020-05-03 11:58:59 +00:00
|
|
|
# sure petcare api
|
2020-12-17 12:20:18 +00:00
|
|
|
SURE_API_TIMEOUT = 60
|
2020-05-03 11:58:59 +00:00
|
|
|
|
2020-01-06 14:00:01 +00:00
|
|
|
# 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
|
2021-01-03 12:43:16 +00:00
|
|
|
|
2021-09-18 15:48:58 +00:00
|
|
|
# state service
|
2021-01-03 12:43:16 +00:00
|
|
|
SERVICE_SET_LOCK_STATE = "set_lock_state"
|
2021-09-18 15:48:58 +00:00
|
|
|
SERVICE_SET_PET_LOCATION = "set_pet_location"
|
2021-01-03 12:43:16 +00:00
|
|
|
ATTR_FLAP_ID = "flap_id"
|
2021-09-18 15:48:58 +00:00
|
|
|
ATTR_LOCATION = "location"
|
2021-01-03 12:43:16 +00:00
|
|
|
ATTR_LOCK_STATE = "lock_state"
|
2021-09-18 15:48:58 +00:00
|
|
|
ATTR_PET_NAME = "pet_name"
|