2020-01-06 14:00:01 +00:00
|
|
|
"""Constants for the Sure Petcare component."""
|
|
|
|
DOMAIN = "surepetcare"
|
|
|
|
|
|
|
|
SPC = "spc"
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
# platforms
|
|
|
|
TOPIC_UPDATE = f"{DOMAIN}_data_update"
|
|
|
|
|
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
|
|
|
|
|
|
|
# lock state service
|
|
|
|
SERVICE_SET_LOCK_STATE = "set_lock_state"
|
|
|
|
ATTR_FLAP_ID = "flap_id"
|
|
|
|
ATTR_LOCK_STATE = "lock_state"
|