type alias AlarmEvent

The alarm state of one channel, as the camera pushed it.

Properties

channel: number

Zero-based channel number. A standalone camera or doorbell is channel 0.

motion: boolean

Motion detected: MD in the status.

visitor: boolean

Doorbell active: visitor in the status.

tamper: boolean

Tamper alarm: tamper in the status.

ai: string[]

AI detections the camera reports, such as people, vehicle or dog_cat. Empty for none.

Usage

import { type AlarmEvent } from "protocol/event.ts";