Thanks for documenting this. I’m just going to add a couple of things for anyone else who is trying this:
- It seems that you have to entirely restart Home Assistant, rather than just reload YAML, if you make a change to the “notify” in configuration.yaml (as of HomeAssistant 2024.1.6)
- Once it’s working, it will be shown as a service via the scripting UI
- It will automatically create the file if it doesn’t exist
- I tried testing this in Developer Tools/Services, and for the life of me couldn’t get it to work. It worked fine within a script, but I got the error “Failed to call service notify.notify-log-to-file. Service notify.notify-log-to-file does not match format . for dictionary value @ data[‘sequence’][0][‘service’]. Got ‘notify.notify-log-to-file’”
service: notify.notify-log-to-file
data:
message: "This is a test of the notification"
Maybe I’ve just got a dumb YAML error in there