Shortcuts for SurePet Connected Cat/Pet Flaps
- find out whether your pets are inside or outside
- update your pet’s location, for example if they enter or leave the house via a door or window
These shortcuts were created by me, and use the SurePet API which as far as I can tell is undocumented. I am not associated with SureFlap, other than being a happy customer.
They may well have bugs – at one point whilst creating these shortcuts SureFlap thought one of my cats went outside in the future.
Use them at your own risk.
Before you start #
Install the Shortcuts App from the iOS App Store
Connecting Shortcuts to SurePet #
To start with, we’re going to log in to SurePet using the email address and password for your SurePet account.
We’ll then get a ‘token’ which we’ll store so that Shortcuts can talk to SurePet without you having to log in every time.
Add the ‘Log in to SurePet’ shortcut and run it.
Enter your email address and password when prompted.
These are sent to SurePet to get the token, and are not stored anywhere. You should see ‘Login successful – copied to clipboard’.
Add the ‘SureFlap Token’ shortcut.
When asked for the SureFlap token, paste the token which should still be on your clipboard from the previous step. It looks like a very long, random mix of letters, numbers and symbols.
You need to keep the ‘SureFlap Token’ shortcut for your shortcuts to work. Even though you won’t run it directly, the other shortcuts rely on it.
You can delete the ‘Log In To SurePet’ shortcut, but you’ll need to re-add it if you ever need to update your token.
Set up a shortcut to find the location of your pets #
Add the ‘Where are The Cats?’ shortcut.
Run the shortcut to check that it works. You should hear something like:
‘Willow has been inside since 9 minutes ago. Hazel has been outside since 23 minutes ago.’
Try using Siri to run the shortcut, by asking ‘Hey Siri, where are the cats?’
If you want to use a different language, or your cats are actually dogs, rename the shortcut.
Bask in the glory of feeling like some sort of wizard 🧙🏻♂️
Set up shortcuts to update the location for your pets (optional) #
Add the ‘Current Date UTC’ shortcut.
(Whenever we tell SurePet where your pets have gone inside or outside, we have to tell them when that happened in UTC. Shortcuts doesn’t have a built-in way to get the current date in UTC, so we have an extra shortcut that we can use to work it out 🤦♂️)
Add the ‘Set Pet Location’ shortcut.
Add and run the ‘Get Pet IDs’ shortcut. You should see an alert that lists each of your pets and an ID, for example:
Hazel: 12345 Willow: 67890
Write this down somewhere.
The ‘Set Pet Location’ shortcut you just added does the work of updating your pet’s location, but you won’t run it directly.
Instead, we’ll create two new shortcuts for each of your pets – one to update their position to indoors, and one to update their position to outside.
For each pet:
Add the ‘Pet Location Template’ shortcut. When prompted, enter the pet’s ID from the previous step, and the location ‘Inside’.
Rename the shortcut to, for example, ‘Hazel Is Inside’.
Add the ‘Pet Location Template’ shortcut again. Enter the pet’s ID from the previous step, but this time use the location ‘Outside’.
Rename the shortcut to, for example, ‘Hazel Is Outside’.
You should now be able to say things like ‘Hey Siri, Hazel is inside’ or ‘Hey Siri, Hazel is outside’, and their location should update.
You need to keep the ‘Current Date UTC’ and ‘Set Pet Location’ shortcuts for these shortcuts to work. Even though you won’t run them directly, the shortcuts that you’ve just created rely on them.
You can delete the ‘Get Pet IDs’ shortcut, but you may need to re-add it to add new pets, or if you accidentally delete a pet’s shortcut and need to re-create it.
Using Shortcuts with HomePod #
You can use Shortcuts with HomePod, but they’re linked to the Shortcuts library of whoever HomePod thinks is speaking.
If you want multiple users to be able to use the shortcuts, you’ll need to make sure that HomePod is configured to identify everyone, and everyone will need to add the Shortcuts separately on their own device.