Files
python-kasa/kasa/smartcam/modules/vehicledetection.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
667 B
Python

"""Implementation of vehicle detection module."""
from __future__ import annotations
import logging
from kasa.smartcam.detectionmodule import DetectionModule
_LOGGER = logging.getLogger(__name__)
class VehicleDetection(DetectionModule):
"""Implementation of vehicle detection module."""
REQUIRED_COMPONENT = "vehicleDetection"
QUERY_GETTER_NAME = "getVehicleDetectionConfig"
QUERY_MODULE_NAME = "vehicle_detection"
QUERY_SECTION_NAMES = "detection"
DETECTION_FEATURE_ID = "vehicle_detection"
DETECTION_FEATURE_NAME = "Vehicle detection"
QUERY_SETTER_NAME = "setVehicleDetectionConfig"
QUERY_SET_SECTION_NAME = "detection"