A virtual device that can be controlled via Amazon Alexa.
The node gets invoked through Amazon Alexa (either via a voice command or via the Alexa app) and outputs a msg
object containing the updated device state as payload
.
If the "Diff" option is enabled, the outgoing msg object will only contain those attributes that were set by the Alexa command. For example, "Alexa, dim the light to fifty percent" results in only the 'directive' and 'brightness' attributes being emitted.
The node also accepts inbound messages that can be used to inform Alexa about local device changes, which will then be reflected in the Alexa app. If the "Passthrough" option is enabled, this will also trigger an outgoing message with the complete current local state. In this case payload.source
is set to 'device' instead of 'alexa'. If the inbound message has a topic
attribute, its value will be present in the outbound msg instead of the topic configured in the editor.