alexa-samples / alexa-smarthome

Resources for Alexa Smart Home developers.
https://alexa.design/smarthome
Other
686 stars 336 forks source link

ColorController #25

Closed pevecyan closed 6 years ago

pevecyan commented 6 years ago

Hi, could someone please share discovery sample for ColorController device, I cannot find it in the documentation.

Thanks!

mikemaas-amazon commented 6 years ago

https://developer.amazon.com/docs/device-apis/alexa-colorcontroller.html#reportable-properties outlines the reportable properties. For ColorController that is only "color". Your discovery response will need to include an Alexa.Interface for Alexa.ColorController that defines "color" as a supported property. If you look at the capabilities JSON section of https://github.com/alexa/alexa-smarthome/blob/master/sample_messages/Discovery/Discovery.response.json you should be able to extrapolate.