Can't we set the path for Notify text file?

HI,

trying to cleanup my config folder, Id like to move 4 text files with filed notifications, created by the https://www.home-assistant.io/integrations/file/ to a dedicated folder.

If I enter a path in the config

notify:
  - name: NOTIFIER_NAME
    platform: file
    filename: /PATH/FILENAME  #<----

I get config errors.

the sensors can follow which ever path I set it to alright, but the notify platform won’t allow it, as it expects only a file name https://www.home-assistant.io/integrations/file/#filename

Is this correct? Hope we can change it somehow.

thanks for having a look

what’s the error…

well, that was just the thing, I had no error message, just a recreated file in the config directory.

I’ve redone the config, and all of a sudden it now starts to work! copied the exact config I had put aside back…

using this now:

homeassistent:
  whitelist_external_dirs:
    - /config
    - /config/filed

notify platform:

notify:
  # https://home-assistant.io/components/notify.file/
  - name: filed_notifications
    platform: file
    filename: /config/filed/filed_notifications.txt
  #  timestamp: False

  - name: filed_automations
    platform: file
    filename: /config/filed/filed_automations.txt
  #  timestamp: False

  - name: filed_intercom_messages
    platform: file
    filename: /config/filed/filed_intercom_messages.txt

  - name: filed_ios_messages
    platform: file
    filename: /config/filed/filed_ios_messages.txt

and the file sensor

sensor:
  - platform: file
    file_path: /config/filed/filed_notifications.txt
    name: Filed notifications

  - platform: file
    file_path: /config/filed/filed_intercom_messages.txt
    name: Filed intercom messages

  - platform: file
    file_path: /config/filed/filed_ios_messages.txt
    name: Filed ios messages

amazing. but it works again, with a cleaner root dir.