type alias IotAction

One IoT action in <IOTAction>.

Properties

optional
channelBits: bigint

Channel bit mask.

optional
setState: number

Device state to set, as a number.

optional
actionID: number

Action id.

optional
name: string

Device name.

optional
uid: string

Device uid.

optional
content: string

Action content.

optional
alarmType: string

Alarm types that trigger the action. The parser searches the text for each of md, pir, people, vehicle, face, dog_cat, other, visitor, BTC and CTB, ignoring case, and none clears them all.

optional
timeTable: string

Weekly schedule: seven days of 24 hours, one character per hour (168 in all). 1 turns an hour on and anything else turns it off. Which day comes first is not established. The parser rejects an empty value.

Usage

import { type IotAction } from "protocol/params/mod.ts";