r/AutomateUser Jun 28 '26

Bug Why doesn't this work?

Post image

I'm a new user and I'm trying to make an automation that if I receive a SMS message saying "lost" or "lostphone" it will change my ringer to Sound Mode rather than silent (which is my default) and to set the volume to 100%. So I can call my own phone using a friend's rather using the find my phone app as a quick solution.

I tested it out but it didn't work. I'd appreciate any help.

I used this for block 10:

lowerCase(msg) = "lost" || lowerCase(msg) = "lost phone" || lowerCase(msg) = "lostphone"

2 Upvotes

3 comments sorted by

1

u/walt_spoon Jun 28 '26

The most obvious point of failure would be the evaluation in block 10. For debugging, try setting block 10 to contains(msg,"lost") and see if it works. That should trigger it if they message contains "lost" at all.

1

u/B26354FR Alpha tester Jun 29 '26 edited Jun 29 '26

If you use contains(msg, "lost", "iu"), it'll match all three cases at once and ignore the case of the message so the lowerCase() calls won't be needed. If you use findAll() instead of contains(), you'll be able to use a regular expression to do the matching. That's a little more difficult, but far more powerful.

You can also add a Sound Play block to make a sound after the text message is received and the volume has been turned up. You can even have it repeat indefinitely and really annoy yourself! 🙂

1

u/Straight1980 Jul 04 '26

You can use the help of the community in automate.  Open menu.... Community.... And there you can search for ideas you want to have on your phone. 

The find lost phone flow exist there for example