# Getting Automagic for Android messages back to Node-RED

**URL:** https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977
**Category:** General
**Created:** [8 June 2020 07:51 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977 "2020-06-08T07:51:16Z")
**Posts on this page:** 20
**Page:** 1

<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: [8 June 2020 07:51 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/1 "2020-06-08T07:51:16Z")

</div>

**10Jun20 - Edited the thread title to more accurate reflect its contents**

I've just discovered Automagic for Android and want to use it to forward WhatApp alerts from phone to Node-RED

So chose email as method of sending from phone and tried setting up email node with my gmail account but ran into all the issues over less secure apps/2FA/App passwords

Plus it pollutes my gmail inbox

So I'm thinking - someone else must have just set up a separate email provider for this sort of IoT use and could recommend one?

---

<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: [8 June 2020 08:07 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/2 "2020-06-08T08:07:10Z")

</div>

Couldn't you use telegram instead of email?

Just an idea.

> [@cymplecy](#):
>
> recommend one

you can always create another gmail account?

EDIT...

If you put a plus in the email you can set rules in gmail to auto delete emails

e.g suppose your gmail address is `simon@gmáil.com` you can use `simon+automagic@gmáil.com` and it still comes to you BUT its identifiable an automated email that you can auto tag / auto delete etc.

---

<div class="post-metadata">

### Author: ![michaelblight](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/michaelblight/32/445_2.png) [@michaelblight](https://discourse.nodered.org/u/michaelblight)
#### Post date: [8 June 2020 08:08 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/3 "2020-06-08T08:08:40Z")

</div>

I just created a separate gmail account for NR, setup with an app password. When sending mail, I found if the from- and to-accounts are both the same, the mail appears in your sent folder, but not in your inbox.

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [8 June 2020 08:09 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/4 "2020-06-08T08:09:48Z")

</div>

Never used automagic, I use Automate app for this. Automagic can send http request straight to node red

---

<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: [8 June 2020 08:10 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/5 "2020-06-08T08:10:36Z")

</div>

> [@E1cid](#):
>
> Automagic can send http request straight to node red

That might be better 👍 than my suggestions haha

---

<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: [8 June 2020 08:12 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/6 "2020-06-08T08:12:11Z")

</div>

I'd really hope that nothing can send an HTTP request to any of my Node-RED instances 🙂

---

<div class="post-metadata">

### Author: ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)
#### Post date: [8 June 2020 08:12 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/7 "2020-06-08T08:12:33Z")

</div>

Http request requires it to be reachable from the outside. I’ve an http-to-mqtt cloud proxy set up for that.

---

<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: [8 June 2020 08:14 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/8 "2020-06-08T08:14:01Z")

</div>

> [@cymplecy](#):
>
> I'd really hope that nothing can send an HTTP request to any of my Node-RED

> [@afelix](#):
>
> Http request requires it to be reachable from the outside

of course. brain not in gear yet 🙂

EDIT...  
so introducing telegram might be a reasonable workaround?

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [8 June 2020 08:14 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/9 "2020-06-08T08:14:57Z")

</div>

Thats why i use Automate as it has a cloud message receive so it can receive messages from the web to using https

I run a local Automate app to forward any received cloud messages to where ever i wish (after screening messages)  
edit/  
Example messages -

```auto
[["launch", "org.xbmc.kodi"]] - open Media player
[["webhook", "ifttt open_rear_door"]] -send webhook to iftt 
[["launch", "org.mozilla.firefox|org.mozilla.gecko.LauncherActivity|android.intent.action.VIEW|192.168.1.1"]] - open firefox at a web page.
[["webhook", "vera_on 8 0|vera_on 31 0|vera_on 19 0|vera_on 38 0|vera_on 43 0|vera_on 82 0|vera_on 41 0|vera_on 106 1|vera_on 85 1|node_routine_off TV_off 171"], ["speak", "good night|sleep well|see you tomorrow|100|en_GB|0|0x3|0x3"]] - send multiple webhook requests and a speak command.

```

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [8 June 2020 08:42 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/10 "2020-06-08T08:42:28Z")

</div>

No, but i could send an email to your node-red email account. Also how many servers will your unencrypted email pass through?  
If you want to encrypt your emails use ProtonMail

---

<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: [8 June 2020 08:46 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/11 "2020-06-08T08:46:58Z")

</div>

> [@E1cid](#):
>
> Also how many servers will your unencrypted email pass through?

I'm hoping that gmail from my phone IS encrypted

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [8 June 2020 08:50 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/12 "2020-06-08T08:50:09Z")

</div>

Have you told it to send encrypted?

---

<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: [8 June 2020 08:52 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/13 "2020-06-08T08:52:25Z")

</div>

Not explicitly - I just assumed that sort of thing came as standard nowadays

---

<div class="post-metadata">

### Author: ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)
#### Post date: [8 June 2020 11:26 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/14 "2020-06-08T11:26:19Z")

</div>

As a pre-caution, you can check sender and have a specific (generated) token be part of the subject/as subject.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [8 June 2020 12:35 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/15 "2020-06-08T12:35:38Z")

</div>

> [@cymplecy](#):
>
> gmail from my phone IS encrypted

Only between you and google - they then decrypt it so they can target the right Ads at you.

---

<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: [8 June 2020 12:40 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/16 "2020-06-08T12:40:08Z")

</div>

> [@dceejay](#):
>
> Only between you and google - they then decrypt it so they can target the right Ads at you.

That's what I thought - as long as they don't pass on my secret sedition activities to the authorities - I'm happy 🙂

---

<div class="post-metadata">

### Author: ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dave/32/10827_2.png) [@Dave](https://discourse.nodered.org/u/Dave)
#### Post date: [8 June 2020 13:10 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/17 "2020-06-08T13:10:33Z")

</div>

AutoMagic can send mqtt messages, I use it to send my tablet's battery state, the display state, dream time etc.

---

<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: [8 June 2020 13:15 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/18 "2020-06-08T13:15:32Z")

</div>

> [@Dave](#):
>
> AutoMagic can send mqtt messages

mmm- that could work for me when phone is at home and connected to my LAN - got a link on how to do that as I didn't see it as one of the options in the app

---

<div class="post-metadata">

### Author: ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dave/32/10827_2.png) [@Dave](https://discourse.nodered.org/u/Dave)
#### Post date: [8 June 2020 13:33 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/19 "2020-06-08T13:33:29Z")

</div>

> <https://play.google.com/store/apps/details?id=net.nosybore.mqttpublishplugin&hl=en>
>
> This is not a standalone application: it requires Tasker (or similar, compatible applications) to work. 
> 
> This plugin can only send messages to a MQTT broker. It does not support WebSockets.
> 
> Supports TLS v1.2 - add the certificate to your device's credential storage.
> 
> Null payload messages are not yet supported.
> 
> Source is available on github...

I use AutoMagic Premium and I have been using the mqtt publisher plugin for at least 2 years without issue.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [8 June 2020 15:39 UTC](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977/20 "2020-06-08T15:39:44Z")

</div>

> [@cymplecy](#):
>
> my secret sedition activities to the authorities

well - only to the US ones... though the adverts you get may give your game away....

[Next page](https://discourse.nodered.org/t/getting-automagic-for-android-messages-back-to-node-red/27977.md?page=2)
