feat(S5): add PET_RULE_TRIGGERED event type and rule config fields
This commit is contained in:
parent
cdc13e05f6
commit
e91744ec84
@ -280,6 +280,9 @@ class PetsConfig(BaseModel):
|
||||
min_training_images: int = 20
|
||||
wildlife: WildlifeConfig = Field(default_factory=WildlifeConfig)
|
||||
activity: PetActivityConfig = Field(default_factory=PetActivityConfig)
|
||||
max_pets: int = 8
|
||||
max_rules_per_pet: int = 32
|
||||
rule_eval_interval_s: int = 60
|
||||
|
||||
|
||||
# --- Location Config ---
|
||||
|
||||
@ -48,6 +48,7 @@ class EventType(StrEnum):
|
||||
PACKAGE_DELIVERED = "PACKAGE_DELIVERED"
|
||||
PACKAGE_REMINDER = "PACKAGE_REMINDER"
|
||||
PACKAGE_COLLECTED = "PACKAGE_COLLECTED"
|
||||
PET_RULE_TRIGGERED = "PET_RULE_TRIGGERED"
|
||||
|
||||
|
||||
# --- Sensor Types ---
|
||||
@ -203,6 +204,7 @@ class Topics:
|
||||
SYSTEM_ARM_STATE = "vigilar/system/arm_state"
|
||||
SYSTEM_ALERT = "vigilar/system/alert"
|
||||
SYSTEM_SHUTDOWN = "vigilar/system/shutdown"
|
||||
SYSTEM_RULES_UPDATED = "vigilar/system/rules_updated"
|
||||
|
||||
# Wildcard subscriptions
|
||||
ALL = "vigilar/#"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user