Flashes LED when my wife sends me a WhatsApp Message

Colt45UK

New member
Currently, my wife has to use the keyword "hello" for Macrodroid to flash an LED light for me so I can check the message.
Often, my wife forgot to use that keyword but no flash :(

The setting that works for me so far is ...

Code:
(T) Notification Receieved (WhatsApp)
     [Contains :*hello* (WhatApp)]
(A) Repeat 100 times {Wait 100 ms, Torch Toggle}, Tourch Off
     Repeat 100 times
          Wait 100 ms
          Torch Toggle (Brightness level: 100%)
     End Loop
     Torch Off
(C) None

Unfortunately, this works from ANY CONTACTS - and I often get LED flashes when a friend says that keyword to me which I find that so annoying!

I want to make it that only works from my wife's and without using keywords. Any message coming from my wife will be a notification with an LED flash for me.
However, I don't want to flash IF I'm active on WhatsApp with her.

Can anyone guide me?

English is not my native language and I can't read very well because I rely on BSL and am Deaf.

Thanks
 

hsurB

Well-known member
Can you test the macro I sent?
There is trigger called Macrodroid variable change contains Wife, replace the word wife there with your wife's contact name
 

Attachments

  • WhatsApp.macro
    6.7 KB · Views: 5
  • WhatsApp.png
    WhatsApp.png
    290.7 KB · Views: 12
Last edited:

Colt45UK

New member
Tried to import your WhatsApp.macro but when I loaded, I see empty settings - am I doing something wrong - I imported via google drive.
Also, tried to manually add those triggers from WhatsApp.png, I can't find that "MacroDroid Variable Change".

I'm on 5.37.12 Pro

I'll keep on trying until you reply :)

Thanks
 

Colt45UK

New member
Oh never mind, I think I've found it. Didn't realised you can add 2 triggers. I'll continue this and let you know.
 

Endercraft

Moderator (& bug finder :D)
Isn't 5.37.12 Pro the latest? - I tried to update but there's no new updates.
It's a beta version.
 

hsurB

Well-known member
I had update in store 3 days ago so I thought its already out.
Nevermind I forgot I am subscribed to beta versions.
Anyway - if you are doing it by yourself before adding second trigger, add action called set variable and create global, string variable as I did on screenshot (I called it whatsapp, you can call it whatever you want)
 

Endercraft

Moderator (& bug finder :D)
I had update in store 3 days ago so I thought its already out.
Nevermind I forgot I am subscribed to beta versions
Are you registered for beta on Play Store ? It could also be that because updates aren't out at the same time for every country you got it but not @Colt45UK.
 

Colt45UK

New member
Ok, I've struggling to understand why the LED still flashes when I ask my son to text me as a test.
I will go through them all over and see if I can troubleshoot myself (unless you find the error?)

The word I have is just 1 word which is my wife's name. Wondered if I should change that to something like "Wife" and rename my contact to "Wife"?
 

hsurB

Well-known member
It started flashing after he texted?
Can you share screenshot of macrodroid logs?
I assumed when the message comes the name of contact appears in the title of notification just as it does on my phone but maybe its different on yours and it has to be done differently.
Although if your wife messaged you and its flashing it will stop after the loop is done 100 times, message from your son won't make it stop (right now - we can change it)
 

hsurB

Well-known member
Based on the logs you updated the second part of actions (with torch) was never executed by macro when you got a message from your son.
 
Top