import { s } from "../schema.js"; import { defineInterface } from "../types.js"; /** * "When a motion sensor changes to DETECTED, and then changes to NOT_DETECTED, you must wait at least 30 seconds * before sending the second change report" (alexa-motionsensor.html, "Change reporting"). */ export const MotionSensor = defineInterface({ namespace: "Alexa.MotionSensor", version: "3", doc: "https://developer.amazon.com/docs/alexaplus/device-apis/alexa-motionsensor.html", kind: "sensor", tier: 1, instanced: false, properties: { detectionState: { name: "detectionState", value: s.enum("DETECTED", "NOT_DETECTED") }, }, directives: {}, });