Sure thing. I just forgot to mention I also use AutoRemote for it.
It depends if you have a device such as Google Nest Hub, or if you use just a smart phone.
If you use a device, then do this:
- Edit the routine Bedtime in google home
- Add your own action there. Just write there something like “start_sleep_tracking”
- Make an IFTTT applet like “If you say to google home start_sleep_tracking then make a web request”
- Make a tasker profile that is triggered with autoRemote event that receives the message start_sleep_tracking .
- Make an action in tasker for it where you add Sleep as Android function for starting sleep tracking.
If you want to also stop tracking, you can do the same, just with a message such as stop_sleep_tracking.
If you use a phone. It is much easier. I just haven’t tried it so I don’t know if you have to so something special so that google assistant would run the tasker action.
- Edit the routine Bedtime in google home
- Add your own action there. Just write there something like “run start_sleep_tracking in tasker”
- Make action called start_sleep_tracking in tasker where you add Sleep as Android function for starting sleep tracking.
Here is an article about the tasker and google assistant: You can now run Tasker tasks straight from Google Assistant