before abusing, i would just love to get it to wrok in the first place…
tried it like this, but no file gets created. Please spot the error?
# https://home-assistant.io/components/notify.file/
- name: notifications
platform: file
filename: notifications
timestamp: True
Tinkerer
(aka DubhAd on GitHub)
March 21, 2018, 9:38pm
2
Try providing a full path to notifications
.
if that wasn’t it, tell us what the error you’re getting is
Vans
(Ivan)
March 23, 2018, 6:01am
3
This is from configuration.yaml:
notify:
- name: mbac_operation
platform: file
filename: mbac.txt
and I’m writing there after execution of a script:
scripts.yaml:
someScriptNameHere
alias: "someScriptAlias"
sequence:
- service: someServiceExecutedHere
data:
packet: packetSentToThatService
- service: notify.mbac_operation
data:
message: "here you input what should be written in the file"
I’m using Hass.io and file mbac.txt is created and in the config folder.
Hope that this helps.
Tinkerer
(aka DubhAd on GitHub)
March 23, 2018, 9:25pm
4
Well, there’s your problem. Please read the documentation and compare what’s you’ve written, to what’s there:
notify:
- name: NOTIFIER_NAME
platform: file
filename: FILENAME
You’ll note that in yours you’ve added -
to lines that shouldn’t have them
Vans
(Ivan)
March 24, 2018, 8:51am
5
Oops. Actually my config is without second and third dashes. My bad in typing it here…
And it is working fine for me - Mariusthvdb is having issues
well, issues as in nothing happening…
as @Tinkerer suggested ive provided the full path:
# https://home-assistant.io/components/notify.file/
- name: notifications
platform: file
filename: /config/notifications
timestamp: True
but no file notifications is being created. also tried it with an extension filename: /config/notifications
nothing happening.
solved! : How to forward all notifications to notify.file