registry: Lock, Color, ColorTemperature, Percentage, PowerLevel, Contact, Motion, Humidity
Eight descriptors written from their pages, each with its version, the value of its property and the payload of every directive. Seven replace a stub; Alexa.HumiditySensor is new, as AlexaInterfaceType.HUMIDITY_SENSOR. LockController is deferrable: defer() on a lock logs no warning. A 1.x declaration of LockController, MotionSensor, PercentageController or PowerLevelController now lists its property in discovery, where 1.5.2 listed none: the zoo's lock, motion sensor and heater come out as the JSON Alexa accepted. A payload that does not fit (hue 361, 900 K) is answered with INVALID_VALUE. 48 examples of the eight pages are saved as fixtures. 191 tests pass, 168 before. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
feff828ec1
commit
af1489696d
111 changed files with 2971 additions and 45 deletions
29
dist/cjs/registry/interfaces/LockController.js
vendored
Normal file
29
dist/cjs/registry/interfaces/LockController.js
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.LockController = void 0;
|
||||
const schema_js_1 = require("../schema.js");
|
||||
const types_js_1 = require("../types.js");
|
||||
/**
|
||||
* A lock that takes more than five seconds answers with a DeferredResponse first and the Response when the bolt has
|
||||
* moved (alexa-lockcontroller.html, "Lock response"). The user enables unlocking by voice per device, in the Alexa app.
|
||||
*/
|
||||
exports.LockController = (0, types_js_1.defineInterface)({
|
||||
namespace: "Alexa.LockController",
|
||||
version: "3",
|
||||
doc: "https://developer.amazon.com/docs/alexaplus/device-apis/alexa-lockcontroller.html",
|
||||
kind: "controller",
|
||||
tier: 1,
|
||||
instanced: false,
|
||||
properties: {
|
||||
lockState: {
|
||||
name: "lockState",
|
||||
value: schema_js_1.s.enum("LOCKED", "UNLOCKED", "JAMMED"),
|
||||
note: "JAMMED: the mechanism can reach neither LOCKED nor UNLOCKED",
|
||||
},
|
||||
},
|
||||
directives: {
|
||||
Lock: { name: "Lock", payload: schema_js_1.s.object({}) },
|
||||
Unlock: { name: "Unlock", payload: schema_js_1.s.object({}) },
|
||||
},
|
||||
deferrable: true,
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue