import { s } from "../schema.js"; import { defineInterface } from "../types.js"; /** * DETECTED is open: the two pieces of the sensor are apart. A sensor that cannot answer ReportState sends a * ChangeReport right after discovery, so that the Alexa app shows its state (alexa-contactsensor.html). */ export const ContactSensor = defineInterface({ namespace: "Alexa.ContactSensor", version: "3", doc: "https://developer.amazon.com/docs/alexaplus/device-apis/alexa-contactsensor.html", kind: "sensor", tier: 1, instanced: false, properties: { detectionState: { name: "detectionState", value: s.enum("DETECTED", "NOT_DETECTED") }, }, directives: {}, });