provider Assistant GET
/assistant/alarms @utdk/google/home
/assistant/alarms Get Alarms and Timers
This gives a list of all active alarms and timers.
Both alarms and timers have `id`s which can be used to delete them. (There is no known way of creating/deleting yet). The value of `status` have different meanings for alarms and timers (given below).
Alarms have `date_pattern` and `time_pattern` with day, month, year, hour, minute, second. `fire_time` is the same in unix time (milliseconds, not seconds).
`status` is 1 for set up and 2 for ringing.
Timers have `original_duration` is the original duration.
`status` is 1 for set up and 3 for ringing.
Try it
Authentication
Configure credentials for Google Home
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import google_home from '@utdk/google/home';
await google_home.getalarmsandtimers()