home-assistant / home-assistant.io

:blue_book: Home Assistant User documentation
https://www.home-assistant.io
Other
4.9k stars 7.26k forks source link

Folder watcher example doesn't work #34230

Closed smokethis closed 2 weeks ago

smokethis commented 2 months ago

Feedback

I assume the currently published notification example on the Folder watcher page https://www.home-assistant.io/integrations/folder_watcher is from an earlier release, however the code example is wildly incompatible with HA as-is. Have just spent ages trawling forums and pages and can suggest an alternative that is functional:

alias: New file alert
trigger:
  - platform: event
    event_type: folder_watcher
    event_data:
      event_type: created
action:
  - action: notify.persistent_notification
    data:
      title: New file alert
      message: Check out new file {{ trigger.event.data.path }}

Is close to the existing example and works properly with the event framework.

URL

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

Version

2024.8.0

Additional information

No response

frenck commented 2 months ago

That example looks valid, which version of Home Assistant are you running? What is the exact error message you get?

../Frenck

github-actions[bot] commented 3 weeks ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.