Pushing Iphone Automations Through Twilio

As much as I've loved using pushover over the past couple of months, IOS Automations don't support parsing pushover notifications. They do however support parsing SMS messages, but Verizon email messaging has been unreliable. So a couple of weeks ago I set out to get approved for a 10DLC SMS campaign through Twilio and was successful.

For my first automation, I wanted to "Find my Car" - something I've been doing through pushover, but requires a single screen click. Preface - I previously wrote a driver that pulls my car's data from Toyota, including latitude and longitude everytime I park.... and it is reliable.

The setup:
First, on my iPhone, I disabled notifications for texts received from my twilio number.
Second, I have a 32-button virtual button device on my HE that I expose for HomeKit.
Third, I set up a simple IOS shortcut called "Find My Car" that just closes one of the 32 buttons
Fourth, a webcore piston triggers on that button and using twilio, texts my phone a message - "Find My Car" with the vehicle's Latitude and Longitude.
Fifth, I have an IOS automation that runs immediately (without confirmation) that triggers on messages from my twilio number that contain the phrase "Find my Car", parses the latitude and longitude and opens Apple maps with directions from my current location to the vehicle's location.

So, I just ask Siri to find my car and within 10 seconds, directions to my car pop up. After this worked, I did the same with my camper... don't tell my wife I told you, but she tends to get a bit intoxicated at music festivals and struggles to find her way back to the camper.

This was my first simple project... but I'm thinking this could be used for actionable iPhone notifications... and now I can push data from my HE to iPhone and automate actions based on that data.

5 Likes

Update on this… I realized that Google maps may be better for off-road/parking lot walking directions and Apple Maps is better (for us) for driving directions. So I furthered my find my camper automation with a couple of additional iOS shortcut automations. When CarPlay connects/disconnects, I set a variable accordingly. Then when Siri finds my camper, that variable is checked and the appropriate app with directions using the appropriate travel mode pops up.

For reference, I initially set this up using global variables in toolbox pro, but quickly learned that setting a specific iPhone reminder’s notes was much faster. Fetching that reminder’s notes proved to be almost 10 seconds faster than getting a toolbox pro global variable.