mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 10:28:01 +00:00

New detection added with tests: - bark detection - glass detection - line crossing detection - meow detection - vehicle detection
25 lines
640 B
Python
25 lines
640 B
Python
"""Implementation of meow detection module."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import logging
|
|
|
|
from kasa.smartcam.detectionmodule import DetectionModule
|
|
|
|
_LOGGER = logging.getLogger(__name__)
|
|
|
|
|
|
class MeowDetection(DetectionModule):
|
|
"""Implementation of meow detection module."""
|
|
|
|
REQUIRED_COMPONENT = "meowDetection"
|
|
|
|
QUERY_GETTER_NAME = "getMeowDetectionConfig"
|
|
QUERY_MODULE_NAME = "meow_detection"
|
|
QUERY_SECTION_NAMES = "detection"
|
|
|
|
DETECTION_FEATURE_ID = "meow_detection"
|
|
DETECTION_FEATURE_NAME = "Meow detection"
|
|
QUERY_SETTER_NAME = "setMeowDetectionConfig"
|
|
QUERY_SET_SECTION_NAME = "detection"
|