# Node-RED to Alexa integration

**URL:** <https://discourse.nodered.org/t/node-red-to-alexa-integration/88735>\
**Category:** General\
**Created:** [16 June 2024 13:50 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735 "2024-06-16T13:50:25Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewtholt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrewtholt/32/91979_2.png) [@andrewtholt](https://discourse.nodered.org/u/andrewtholt)\
**Post date:** [16 June 2024 13:50 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/1 "2024-06-16T13:50:25Z")

</div>

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.

Any advice or assistance is much appreciated.

Regards,  
Andrew

P.S.  
Node-Red v3.1.0  
And the Alexa integration is here [Node-RED Alexa Home Skill Bridge](https://alexa-node-red.bm.hardill.me.uk/about#)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [16 June 2024 14:22 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/2 "2024-06-16T14:22:46Z")

</div>

> [@andrewtholt](#):
>
> It seems such a simple thing so I must be missing something simple and obvious.

I just think it's not an offered feature

I just checked my MQTT controlled switch and my Alexa app status doesn't update either

If I control it using the Alexa app - it only shows the state for 5 secs before not showing the state again

I've never needed to look at what the Alexa app says the state is 🙂

---

<div class="post-metadata">

**Author:** ![andrewtholt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrewtholt/32/91979_2.png) [@andrewtholt](https://discourse.nodered.org/u/andrewtholt)\
**Post date:** [19 June 2024 12:50 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/3 "2024-06-19T12:50:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [22 June 2024 01:21 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/4 "2024-06-22T01:21:38Z")

</div>

Have you read the section about Alexa Home Response at [Node-RED Alexa Home Skill Bridge](https://alexa-node-red.bm.hardill.me.uk/docs)  
Also do you have Auto Acknowledge checked in the node ?

---

<div class="post-metadata">

**Author:** ![andrewtholt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrewtholt/32/91979_2.png) [@andrewtholt](https://discourse.nodered.org/u/andrewtholt)\
**Post date:** [22 June 2024 11:01 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/5 "2024-06-22T11:01:33Z")

</div>

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.

Thanks for your help.

Regards,  
Andrew

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [22 June 2024 11:54 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/6 "2024-06-22T11:54:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![andrewtholt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrewtholt/32/91979_2.png) [@andrewtholt](https://discourse.nodered.org/u/andrewtholt)\
**Post date:** [22 June 2024 12:19 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/7 "2024-06-22T12:19:33Z")

</div>

Thanks for the tip! I'll give it a try

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [22 June 2024 12:28 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/8 "2024-06-22T12:28:07Z")

</div>

I just tested, and see the state change the same as you. I suspect that the Home node doesn't store the states, so Alexa cannot query them.

@hardillb is this working as expected please ?

---

<div class="post-metadata">

**Author:** ![andrewtholt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrewtholt/32/91979_2.png) [@andrewtholt](https://discourse.nodered.org/u/andrewtholt)\
**Post date:** [22 June 2024 12:45 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/9 "2024-06-22T12:45:50Z")

</div>

Hi,

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 ?

---

<div class="post-metadata">

**Author:** ![andrewtholt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrewtholt/32/91979_2.png) [@andrewtholt](https://discourse.nodered.org/u/andrewtholt)\
**Post date:** [22 June 2024 12:47 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/10 "2024-06-22T12:47:18Z")

</div>

Thanks for "escalating" this for me.

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [22 June 2024 13:26 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/11 "2024-06-22T13:26:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [22 June 2024 14:19 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/12 "2024-06-22T14:19:35Z")

</div>

Thanks for getting back, I just wanted to check for @andrewtholt

And thanks again for the very useful nodes 😉

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 September 2024 14:19 UTC](https://discourse.nodered.org/t/node-red-to-alexa-integration/88735/13 "2024-09-20T14:19:53Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
