How to use notify.file

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

Try providing a full path to notifications.

if that wasn’t it, tell us what the error you’re getting is :wink:

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.

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 :wink:

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 :slight_smile:

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