# Alexa 'On Device Activity' not working

**URL:** <https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901>\
**Category:** General\
**Created:** [30 August 2023 08:33 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901 "2023-08-30T08:33:53Z")\
**Posts on this page:** 20\
**Page:** 10

<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:** [31 March 2024 16:33 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/184 "2024-03-31T16:33:49Z")

</div>

Working OK for me on 5.0.49

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [31 March 2024 17:52 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/185 "2024-03-31T17:52:34Z")

</div>

Drat - it works once for me and then just sits there saying... 'listening'.

---

<div class="post-metadata">

**Author:** ![DiverRich](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/diverrich/32/64523_2.png) [@DiverRich](https://discourse.nodered.org/u/DiverRich)\
**Post date:** [2 April 2024 04:48 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/186 "2024-04-02T04:48:45Z")

</div>

I'm in the same boat as you @dynamicdave. I've been having issues for the past several days in fact. Seems to work intermittently at best.

---

<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:** [2 April 2024 06:52 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/187 "2024-04-02T06:52:59Z")

</div>

Lots of people have different problems with this node - Dave has not had it working properly for quite some time

But I've been fortunate as it's worked OK for me for past two months

I've just tried 4 tests in a row just now and they all worked.

It's just not a reliable solution for everyone ☹

---

<div class="post-metadata">

**Author:** ![Johnnybegoode](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johnnybegoode/32/88032_2.png) [@Johnnybegoode](https://discourse.nodered.org/u/Johnnybegoode)\
**Post date:** [2 April 2024 07:59 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/188 "2024-04-02T07:59:29Z")

</div>

> [@dynamicdave](#):
>
> just sits there saying... 'listening'.

The same in my case.  
I'm fairly new to NR (use Smartthings and Alexa) but I've learnt a lot from this forum, especially in the case of Alexa, by following your posts.  
Basing mine on a flow you posted (a belated thank you!) I managed to get reports on my plants, indoor humidity etc from Alexa but I found the On Activity node of very little practical use.  
As Smartthings has a MQTT driver that allows creating a virtual switch, recognised in turn by Alexa, it let's me set up a routine "Alexa, give me an update!" to press this switch which triggers the flow to read the latest measurements. Suppose the same could be done by a periodic time trigger - believe I've seen a post of yours on something similar.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 April 2024 09:18 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/189 "2024-04-02T09:18:14Z")

</div>

> [@Johnnybegoode](#):
>
> "Alexa, give me an update!"

Do you mean you can "say" that command to Alexa and some-how get a response?

---

<div class="post-metadata">

**Author:** ![Johnnybegoode](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johnnybegoode/32/88032_2.png) [@Johnnybegoode](https://discourse.nodered.org/u/Johnnybegoode)\
**Post date:** [2 April 2024 10:40 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/190 "2024-04-02T10:40:33Z")

</div>

Yes, using an Alexa routine.......

 ![IMG_2012](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/8/281f45a31eaf6abe98b4f95ff14444a1a35c9ba0.jpeg)

It's possible to use several alternative phrases to trigger.  
The virtual switch belongs to Smartthings which publishes MQTT to a MQTT In node in the flow.

---

<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:** [2 April 2024 11:04 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/191 "2024-04-02T11:04:41Z")

</div>

This option has been around for a while in various types.

I have used a virtual light, then I can monitor on the same topic, but use 100 different brightness levels for different commands.

The main issue with this is it's not room aware, so you cannot have dynamic responses.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 April 2024 13:48 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/192 "2024-04-02T13:48:56Z")

</div>

Hi Steve - can you remind me how you set-up and connected the 'virtual light' to the Alexa Routine?

---

<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:** [2 April 2024 15:02 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/193 "2024-04-02T15:02:22Z")

</div>

Install [node-red-contrib-virtual-smart-home (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-virtual-smart-home) Link to Alexa etc  
Setup a virtual light in Node Red - I called it "command"  
Create a routine in the Alexa app for the command you want to say, with a few alternatives in the When section.  
In the Alexa Will section - Select the "command" light and specify a brightness.  
Use messages from this device to trigger flows based on the reported brightness.

It's Sean BTW 😉

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 April 2024 15:20 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/194 "2024-04-02T15:20:10Z")

</div>

Oops - sorry. I always get you and Steve @Steve-Mcl mixed up as your Avatars are so similar.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 April 2024 15:25 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/195 "2024-04-02T15:25:34Z")

</div>

Nothing alike 🤣

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 April 2024 15:27 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/196 "2024-04-02T15:27:55Z")

</div>

Oh yes now I can see the difference - you have no hair - is that correct?

---

<div class="post-metadata">

**Author:** ![DiverRich](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/diverrich/32/64523_2.png) [@DiverRich](https://discourse.nodered.org/u/DiverRich)\
**Post date:** [2 April 2024 15:45 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/197 "2024-04-02T15:45:42Z")

</div>

@Sean-McG that's very clever. I never gave this one a chance because of the cloud connection, metadata collection and subscription model. I wonder if node-red-contrib-amazon-echo-oztourer could be set up this way. 🤔

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 April 2024 16:38 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/198 "2024-04-02T16:38:24Z")

</div>

Thanks Sean for the "heads-up" on VSH.  
With your instructions I've got it installed, connected and working with my first flow to switch my laser printer On/Off in my study. Probably not the most efficient flow - but at least it works for verbal commands.

 ![VSH_A](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/c/ecf4081c4bade1c325670909572f40cadc038676.png)

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 April 2024 18:43 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/199 "2024-04-02T18:43:47Z")

</div>

It's a shame the VSH node doesn't report `msg.payload.device` as then I could send a verbal message giving some feedback to the Alexa Dot where the original command was uttered.  
Anway, I've added a number of "routines" that were handled previously by Amazon Blueprints.

 ![VSH_B](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/d/3d7067f3e97b9fb4c49a2c3e55d32466cee46e29.png)

---

<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:** [2 April 2024 19:08 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/200 "2024-04-02T19:08:06Z")

</div>

> [@DiverRich](#):
>
> subscription model

You can have 7 devices for free - given there are 100 brightness levels that 700 commands you could setup 😉

Had a quick look at this, I don't see any reason why it would not work.

> [@DiverRich](#):
>
> amazon-echo-oztourer

---

<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:** [2 April 2024 19:09 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/201 "2024-04-02T19:09:17Z")

</div>

> [@dynamicdave](#):
>
> It's a shame the VSH node doesn't report `msg.payload.device`

I think it could be possible ? Perhaps a pull request 😉

EDIT

Are you using Tasmota there ? Couldn't you just add the Tasmota device to Alexa Directly ?

---

<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:** [2 April 2024 19:10 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/202 "2024-04-02T19:10:52Z")

</div>

> [@Steve-Mcl](#):
>
> Nothing alike 🤣

mines the good looking one, with the pale complexion 🖖

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 April 2024 19:32 UTC](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901/203 "2024-04-02T19:32:59Z")

</div>

> [@Sean-McG](#):
>
> Are you using Tasmota there ? Couldn't you just add the Tasmota device to Alexa Directly ?

I have six Alexa Dots and a couple of Alexa Shows in my house. If I ask one of them to turn On/Off a device it would be great if I got a verbal response directed to that specific Alexa Thingy.  
If I knew the device name, then I could easily do that.

PS: I've posted a pull-request on the VSH github.

[Previous page](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901.md?page=9)

[Next page](https://discourse.nodered.org/t/alexa-on-device-activity-not-working/80901.md?page=11)
