home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.97k stars 29.62k forks source link

Folder watcher event remains unknown #121006

Closed Mariusthvdb closed 2 months ago

Mariusthvdb commented 2 months ago

The problem

set up the integration via the UI succesfully, but cant make the event change form unknown at all. No file manipulation triggers the event.

The documentation could do with some better example, because at first I copied that 1 on 1 and ofc the event names were wrong.

After getting those right and using below automation, still no trigger occurs.

the /config (and all folders below that recursively) is added to the allowed list correctly

homeassistant:
  packages: !include_dir_named packages
  allowlist_external_dirs:
    - /config
    - /media

What version of Home Assistant Core has the issue?

2024.7.0b6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Folder Watcher

Link to integration documentation on our website

https://www.home-assistant.io/integrations/folder_watcher/

Diagnostics information

No response

Example YAML snippet

- id: folder_watcher_file_created
    trigger:
      platform: state
      entity_id: event.folder_watcher_config
      # below should not be required when triggering on all event types?
      attribute: event_type
      to:

    action:
      service: notify.system
      data:
       title: >
         File {{trigger.event}}
       message: >
         Bestand {{trigger.to_state.attributes.file}}
         in {{trigger.to_state.attributes.folder}}

Anything in the logs that might be useful for us?

No response

Additional information

Scherm­afbeelding 2024-07-02 om 11 18 15 Scherm­afbeelding 2024-07-02 om 11 18 26 Scherm­afbeelding 2024-07-02 om 11 18 33
home-assistant[bot] commented 2 months ago

folder_watcher documentation folder_watcher source

Mariusthvdb commented 2 months ago

closing, forgive me for forgetting I had set the patterns,

Scherm­afbeelding 2024-07-02 om 11 19 30

tomlisten to hidden flles creations

and didnt test with those patterns, but with generic file creations

delete the .DS file triggered the automation. again, my apologies.