Files
2025-06-20 16:33:12 -04:00

19 lines
601 B
Python

from typing import Dict
class AlarmAPIMixin:
"""API calls for getting device alarm information."""
def get_alarm_motion(self) -> Dict:
"""
Gets the device alarm motion
See examples/response/GetAlarmMotion.json for example response data.
:return: response json
"""
body = [{"cmd": "GetAlarm", "action": 1, "param": {"Alarm": {"channel": 0, "type": "md"}}}]
return self._execute_command('GetAlarm', body)
def get_ai_state(self) -> Dict:
body = [{"cmd": "GetAIState"}]
return self._execute_command('GetAlarm', body)