Files
python-kasa/kasa/smartcam/modules/babycrydetection.py
Gabriele Pongelli 0cd0434160 Extend smartcam detection support (#1552)
New detection added with tests:

- bark detection
- glass detection
- line crossing detection
- meow detection
- vehicle detection
2025-08-25 15:20:33 +02:00

25 lines
631 B
Python

"""Implementation of baby cry detection module."""
from __future__ import annotations
import logging
from kasa.smartcam.detectionmodule import DetectionModule
_LOGGER = logging.getLogger(__name__)
class BabyCryDetection(DetectionModule):
"""Implementation of baby cry detection module."""
REQUIRED_COMPONENT = "babyCryDetection"
QUERY_GETTER_NAME = "getBCDConfig"
QUERY_MODULE_NAME = "sound_detection"
QUERY_SECTION_NAMES = "bcd"
DETECTION_FEATURE_ID = "baby_cry_detection"
DETECTION_FEATURE_NAME = "Baby cry detection"
QUERY_SETTER_NAME = "setBCDConfig"
QUERY_SET_SECTION_NAME = "bcd"