Just a beginner node red, and am trying to get stuff working with Alexa. I have has some success, in that I have installed the bridge, created a device, added a flow that controls a MQTT plug (I have named FRED).Alexa has discovered the device. So far, so good.
I say "Alexa fred on", an the plug switches on,
I say "Alexa fred off", and no surprise, off it goes.
However the state of FRED is not reflected in what the Alexa app on my phone shows.
My existing other device all show on/off as appropriate. It seems such a simple thing so I must be missing something simple and obvious.
Thanks for the reply. It seems odd that there is a item on the node red builder that allows you to send a response, but I guess I can live with this limitation. Thanks
I have read the docs, though it is entirely possible that I have missed or misunderstood something.
And yes, I have "Auto Acknowledge" checked. On the Alexa app when I press the button the state changes, and lasts for about 5 seconds before the showing of the state disappears.
The integration works. I have called my test device FRED, so if I say "alexa turn fred on" it switches on.
So to return a response to Alexa, you need to use the response node, and untick Auto Acknowledge.
Put a response node down stream from the Alexa Home node.
In between use a function node to modify the incoming message, based on whether the action was successful, and pass to the response node (as per the docs).
I only use this to report temperatures, so I haven't tested it with switches.
So as a simple test if i wire the alexa-home straight to the alexa-home-resp I should see the state reflected on the app ? Is that the simplest possible case ?
This is working as expected. The (very old) version of the Alexa API the skill uses does not do any state updates.
The response node is literally just that, it is there to respond to a command request (when Auto Acknowledge is not checked), not update the state of the device due to other events.
None of this will be changing as I have no intention of rewriting the entire stack from scratch.