# Email - Trigger flows based on incoming emails

**URL:** <https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337>\
**Category:** Apps\
**Created:** [February 20, 2021, 8:02am UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337 "2021-02-20T08:02:11Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Luc\_Thierens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luc_thierens/32/34652_2.png) [@Luc\_Thierens](https://community.homey.app/u/Luc_Thierens)\
**Post date:** [May 3, 2021, 11:56am UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/24 "2021-05-03T11:56:14Z")

</div>

Hello Peter,  
Finally it’s stable! thx for your patient.

The solution is to work with my gmail account, before I was testing with my Telenet provider / account, and that dind’t always work.

---

<div class="post-metadata">

**Author:** ![hagert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hagert/32/18225_2.png) [@hagert](https://community.homey.app/u/hagert)\
**Post date:** [May 7, 2021, 9:45am UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/25 "2021-05-07T09:45:01Z")

</div>

I am using the email app (by Adam Norén). The flow I am using is not working. The credentials are valid and from the gmail dashboard I can see that the app has last connected about half an hour ago. (It is a g-suite mail adress on my own domain).

When I test the flow with the subject of a recently received email, it just works. Also for an evening the flow has done its job, but when I woke up the next morning the flow wasn’t triggered anymore. It has not been working for days now… Restarting the app hasn’t worked, pulled the plug, also not fixed.

Could you please help me?

 ![IMG_1845.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/6/76de61acf4086138f120bc05b4217c5a623c527c.jpeg)  
 ![IMG_1846.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/d/ddba3a70e9d6c8e06efaf517ce17e6ae69d9460f.jpeg)  
 ![IMG_1847.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/c/0cde89e67f928eb09105bc2c1ebc5ea0d5fac667.jpeg)  
 ![IMG_1848](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/5/952eda4bfd8a20871aec0557cec1bac0f8049e3a.png)

---

<div class="post-metadata">

**Author:** ![Tolga](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tolga/32/12563_2.png) [@Tolga](https://community.homey.app/u/Tolga)\
**Post date:** [May 7, 2021, 12:17pm UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/26 "2021-05-07T12:17:04Z")

</div>

Did you try to disable 2 factor authentication? Only for test

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 7, 2021, 3:18pm UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/27 "2021-05-07T15:18:27Z")

</div>

Did you rtfm? (Sorry, a bit rude, but most people including myself don’t rtfm 😅🙈)  
I know you can logon, and it worked for a while, but:  
Could this help you out? The Gmail account setting?

 ![Screenshot_20210507-171652_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/12cd6b3a4897531e8c74057c469173c796a20d01.jpeg)

---

<div class="post-metadata">

**Author:** ![hagert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hagert/32/18225_2.png) [@hagert](https://community.homey.app/u/hagert)\
**Post date:** [May 7, 2021, 3:30pm UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/28 "2021-05-07T15:30:27Z")

</div>

All of a sudden it seems to work now. Didn’t change a thing. Hope it keeps working.

The setting “use less secure apps” is not available when 2fa is on…

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 7, 2021, 3:46pm UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/29 "2021-05-07T15:46:57Z")

</div>

That’s funny. Finger’s crossed. And maybe the use of less words can help at `Email subject contains`  
F.i. ‘trade hopper’

---

<div class="post-metadata">

**Author:** ![hagert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hagert/32/18225_2.png) [@hagert](https://community.homey.app/u/hagert)\
**Post date:** [May 7, 2021, 3:58pm UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/30 "2021-05-07T15:58:49Z")

</div>

Thanks for the help Peter and Tolga! I’ll see what happens 😉.

---

<div class="post-metadata">

**Author:** ![enh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/enh/32/10218_2.png) [@enh](https://community.homey.app/u/enh)\
**Post date:** [June 7, 2021, 10:58am UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/31 "2021-06-07T10:58:36Z")

</div>

For me, the app needs to be restarted every day for it to work. Am I the only one?

---

<div class="post-metadata">

**Author:** ![Tolga](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tolga/32/12563_2.png) [@Tolga](https://community.homey.app/u/Tolga)\
**Post date:** [June 7, 2021, 3:53pm UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/32 "2021-06-07T15:53:58Z")

</div>

Same here

---

<div class="post-metadata">

**Author:** ![Tolga](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tolga/32/12563_2.png) [@Tolga](https://community.homey.app/u/Tolga)\
**Post date:** [June 7, 2021, 4:15pm UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/33 "2021-06-07T16:15:02Z")

</div>

I made a flow, every 8 hours restart app

---

<div class="post-metadata">

**Author:** ![Sabe](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sabe/32/49393_2.png) [@Sabe](https://community.homey.app/u/Sabe)\
**Post date:** [December 29, 2021, 9:22am UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/34 "2021-12-29T09:22:41Z")

</div>

Hi! New on Homey, How did you made a flow to restart the mail app? Cant find it where to choose restart.

---

<div class="post-metadata">

**Author:** ![Sabe](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sabe/32/49393_2.png) [@Sabe](https://community.homey.app/u/Sabe)\
**Post date:** [December 29, 2021, 10:25am UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/35 "2021-12-29T10:25:59Z")

</div>

Got it to work with one mailadress. change to a new (same one-account but a new mail, and when tested it works) but now i don´t get my test mails and flows to work. Anyone have any ideas. Tested to restart, reinstalled, made new flows. nothing.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 29, 2021, 8:02pm UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/36 "2021-12-29T20:02:00Z")

</div>

…More\>Settings\>Experiments Enable “Power User”  
Now you can add a flow action card via “System” \> “Restart App” and then pick an app.

 ![Screenshot_20211229-210106_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/c/2c4842b0a7c27097e632186ed99d7519936aa75e.jpeg)

---

<div class="post-metadata">

**Author:** ![Sabe](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sabe/32/49393_2.png) [@Sabe](https://community.homey.app/u/Sabe)\
**Post date:** [December 30, 2021, 9:01am UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/38 "2021-12-30T09:01:32Z")

</div>

Thanks! Now i just need to understand why is started to not work. 🙂

---

<div class="post-metadata">

**Author:** ![Mark\_Mikkelsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mark_mikkelsen/32/48105_2.png) [@Mark\_Mikkelsen](https://community.homey.app/u/Mark_Mikkelsen)\
**Post date:** [September 22, 2022, 4:54pm UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/39 "2022-09-22T16:54:53Z")

</div>

Is it not possible anymore as Google no longer supports less secure apps ??

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [September 22, 2022, 7:42pm UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/40 "2022-09-22T19:42:55Z")

</div>

It should work with Gmail when you sign in with app passwords: [https://support.google.com/accounts/answer/18](https://support.google.com/accounts/answer/18)

---

<div class="post-metadata">

**Author:** ![Kim\_Bork](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_bork/32/81630_2.png) [@Kim\_Bork](https://community.homey.app/u/Kim_Bork)\
**Post date:** [August 4, 2023, 9:17am UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/41 "2023-08-04T09:17:50Z")

</div>

Hi,

I can not get the app to work. The problem is that the flow does not start/detect incomming mail. The rest works…

What could be wrong when it does not detect the incomming email?

 ![email](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/e/7e053596a1695bd53a5075e68919b5c319a5e148.png)

---

<div class="post-metadata">

**Author:** ![Jogi\_Bear](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jogi_bear/32/34384_2.png) [@Jogi\_Bear](https://community.homey.app/u/Jogi_Bear)\
**Post date:** [August 4, 2023, 11:31am UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/42 "2023-08-04T11:31:37Z")

</div>

Are your settings correct in the email app?  
Does ‘Test connection’ work in the email app?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 4, 2023, 11:53am UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/43 "2023-08-04T11:53:35Z")

</div>

And / also, first try without the logics conditional card. OR add a timeline card to the yellow nipple (= false; blue nipple = true) to see if the condition is not met

---

<div class="post-metadata">

**Author:** ![Kim\_Bork](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_bork/32/81630_2.png) [@Kim\_Bork](https://community.homey.app/u/Kim_Bork)\
**Post date:** [August 7, 2023, 12:25pm UTC](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337/44 "2023-08-07T12:25:10Z")

</div>

Yes- It workes - no error

[Previous page](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337.md?page=1)

[Next page](https://community.homey.app/t/email-trigger-flows-based-on-incoming-emails/43337.md?page=3)
