mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 10:28:01 +00:00
Extend smartcam detection support (#1552)
New detection added with tests: - bark detection - glass detection - line crossing detection - meow detection - vehicle detection
This commit is contained in:

committed by
GitHub

parent
e21ab90e96
commit
0cd0434160
24
kasa/smartcam/modules/barkdetection.py
Normal file
24
kasa/smartcam/modules/barkdetection.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""Implementation of bark detection module."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
from kasa.smartcam.detectionmodule import DetectionModule
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class BarkDetection(DetectionModule):
|
||||
"""Implementation of bark detection module."""
|
||||
|
||||
REQUIRED_COMPONENT = "barkDetection"
|
||||
|
||||
QUERY_GETTER_NAME = "getBarkDetectionConfig"
|
||||
QUERY_MODULE_NAME = "bark_detection"
|
||||
QUERY_SECTION_NAMES = "detection"
|
||||
|
||||
DETECTION_FEATURE_ID = "bark_detection"
|
||||
DETECTION_FEATURE_NAME = "Bark detection"
|
||||
QUERY_SETTER_NAME = "setBarkDetectionConfig"
|
||||
QUERY_SET_SECTION_NAME = "detection"
|
Reference in New Issue
Block a user