A general purpose Home Assistant YAML script for writing entries into a log file with a customised format.
It is used in several of my blueprints and includes the possibility not to write a log at all by providing a blank notification service name. This does however mean that the script must be there even if no logfile is required.
I recommend you install this script as a package
- If you do not already have packages, follow these instructions
- In your package folder create a file called (something like) logfile_entry.yaml
- Copy the contents of the script into that file
- Restart the system or reload all YAML
-- more tips to follow --
If you find any of the ideas in this repository useful, please Buy Me a Coffee