I have lambda JS server for alexa device control. The problem is in discovery event when I try to add device with custom interface.
For the ragecontroller interface for the blind device, I only have percentage control available in the application. I would like to have open/close and stop buttons like in the case of other types. Is it possible to mix command for one device type? Thank you for helping.
Example of discover device rangecontroller interface:
{ type: "AlexaInterface", interface: "Alexa.RangeController", instance: "Blind.Lift", version: "3", properties: { supported: [{ name: "rangeValue", },], proactivelyReported: false, retrievable: true, }, capabilityResources: { friendlyNames: [ { "@type": "text", value: { text: "Shade", locale: "en-US" } } ], }, configuration: { supportedRange: { minimumValue: 0, maximumValue: 100, precision: 1, }, unitOfMeasure: "Alexa.Unit.Percent", }, semantics: { actionMappings: [{ "@type": "ActionsToDirective", actions: ["Alexa.Actions.Close"], directive: { name: "SetRangeValue", payload: { rangeValue: 0, }, }, }, { "@type": "ActionsToDirective", actions: ["Alexa.Actions.Open"], directive: { name: "SetRangeValue", payload: { rangeValue: 100, }, }, }, { "@type": "ActionsToDirective", actions: ["Alexa.Actions.Lower"], directive: { name: "AdjustRangeValue", payload: { rangeValueDelta: -10, rangeValueDeltaDefault: false, }, }, }, { "@type": "ActionsToDirective", actions: ["Alexa.Actions.Raise"], directive: { name: "AdjustRangeValue", payload: { rangeValueDelta: 10, rangeValueDeltaDefault: false, }, }, }, ], stateMappings: [{ "@type": "StatesToValue", states: ["Alexa.States.Closed"], value: 0, }, { "@type": "StatesToRange", states: ["Alexa.States.Open"], range: { minimumValue: 1, maximumValue: 100, }, }, ], } }
I tried to add other interfaces, but most often it caused problems in searching for the device