family-dashboard-code ▸ docs/siri-shortcuts/timer-shortcut.md
updated 2026-02-28
Timer Shortcut – Reliable Setup Guide (No 0-Second Timers)
This version avoids regex parsing and uses two direct questions, which is much more reliable with Siri.
Trigger flow:
- You say: “Hey Siri, timer”
- Siri asks: “What should the timer be called?”
- Siri asks: “How many minutes?”
- Shortcut posts duration_seconds = minutes * 60
Before You Start
You need: - Supabase Project URL - Supabase anon key
From Supabase Dashboard: 1. Open your project 2. Go to Settings > API 3. Copy Project URL 4. Copy anon public key
Build the Shortcut
Create a new shortcut named Timer.
1) Ask for timer label
- Add Ask for Input
- Type: Text
- Prompt:
What should the timer be called? - Rename this action output to
timerName(optional but recommended)
2) Ask for minutes
- Add another Ask for Input
- Type: Number
- Prompt:
How many minutes? - Rename this output to
minutesInput(optional)
3) Convert minutes to seconds
- Add Calculate
- Set calculation to:
minutesInput x 60 - Rename output to
durationSeconds(optional)
4) Save Supabase values
- Add Text action with your Project URL, rename to
supabaseUrl - Add Text action with your anon key, rename to
anonKey
5) Build JSON body
- Add Text action with this exact template:
{"label":"[timerName]","duration_seconds":[durationSeconds],"created_by":"siri"}
In Shortcuts, insert timerName and durationSeconds as variables, not literal text.
6) POST to Supabase
- Add Get Contents of URL
- URL:
[supabaseUrl]/rest/v1/timers - Method: POST
- Headers:
-
apikey:[anonKey]-Authorization:Bearer [anonKey]-Content-Type:application/json - Request Body: use the Text JSON from Step 14
7) Confirmation
- Add Show Result
- Text:
[timerName] timer set
Critical Checks
duration_secondsmust use the Calculate result (minutes x 60)- Do not send
duration_seconds: 0 - The minutes question must be Number, not Text
Quick Test
- Run shortcut manually
- Name:
Pasta - Minutes:
10 - Confirm dashboard shows a live 10-minute countdown (not immediate Done)
Troubleshooting
- Timer completes instantly:
- Your
duration_secondsvariable is wrong or empty - Recheck Steps 9-11 and Step 14 variable insertion
- Network error:
- Validate
supabaseUrlandanonKey - Ensure URL ends with
/rest/v1/timers - Works in app but not with Siri:
- Re-record shortcut phrase
- Test again with shorter timer names