If you have a Google Smart Home, then the new feature: Automations Scripts is worth checking out!
Google Automations Script Editor: https://home.google.com/
Example Scripts: https://developers.home.google.com/automations/example-scripts
Getting Started Guide: https://support.google.com/googlenest/answer/13323253?sjid=9102907143057994902-EU
00:00 Intro
01:16 Starters, Conditions & Actions
01:41 Script Example 1
05:33 Documentation & Upcoming Features
06:08 Example 1 In Action
07:02 Script Example 2
09:17 Outro