Hello everyone,
TL/DR; I created a package to give assist ‘goodnight routine’ functionality with variable actions. When triggered, it will do the following;
- Turn off all lights
- Turn off or stop media_players (which support the service call)
- Arm your alarm control panel
- Announce open doors
- Announce open windows
All these options can be enabled or disabled using the global variables in the package. After these actions are done, it will wish you a pleasant night .
See it in action (YouTube link).
But how?
This package is available at my repo to download. Just place the two files in your config!
- Create a package folder (if you don’t have one yet) in your Home Assistant /config folder.
- Place the package file packages/assist_goodnight.yaml in this folder.
- Place the language file(s) of your picking in your custom_sentences folder, for example /config/custom_sentences/nl/assist_goodnight.yaml.
- Optional: Modify the variable in the package file to your preferences.
You can also migrate the script afterwards and modify it in the ui. - Restart Home Assistant.
I added the Dutch, English, German and French language to choose from.
Good night!