import { s } from "../schema.js"; import { defineInterface } from "../types.js"; /** * A speaker that is turned up and down by steps and does not know its volume. It reports nothing: the capability * has no properties object in discovery. */ export const StepSpeaker = defineInterface({ namespace: "Alexa.StepSpeaker", version: "3", doc: "https://developer.amazon.com/docs/alexaplus/device-apis/alexa-stepspeaker.html", kind: "controller", tier: 2, instanced: false, properties: {}, directives: { AdjustVolume: { name: "AdjustVolume", payload: s.object({ volumeSteps: s.number({ min: -100, max: 100, integer: true }) }), note: "above 0 louder, below 0 quieter", }, SetMute: { name: "SetMute", payload: s.object({ mute: s.boolean() }) }, }, discovery: () => ({ properties: false }), });