dummylabs / thewatchman

Home Assistant custom integration to keep track of missing entities and actions in your config files
MIT License
482 stars 20 forks source link

Unable to write report: [Errno 2] No such file or directory #168

Closed PacmanForever closed 3 days ago

PacmanForever commented 4 days ago

Hi,

the last version (v0.6.5 2024-11-25) show the title error when executes the below code:

action: watchman.report
data:
  parse_config: true
  action: persistent_notification.create
  data:
    title: Watchman Report
  chunk_size: 3500
  create_file: true

HASSIOS 2024.11.3

Hiekkaharju commented 4 days ago

Does your Watchman configuration setting:

Report appearance and location -> Report file location e.g. /config/report.txt

point to a place that can be written ?

PacmanForever commented 4 days ago

The previous versions can write the report.

I have these settings:

imagen

I understand that inside /config there is the configuration.yaml file, etc.

Hiekkaharju commented 4 days ago

The setting I mean is just below of what is seen in your screencapture, you need to open it with the arrow. I wonder if it might contain something unexpected because of the major changes in the latest WM releases.

/config/watchman_report.txt seems to work fine for me. I unistalled, rebooted, and re-installed WM instead of direct update (to have everything renamed from service to action).

PacmanForever commented 4 days ago

OK OK, this setting was hidden. Thanks.

dummylabs commented 4 days ago

@PacmanForever Was it an incorrect report path? Normally, Watchman should migrate your settings, including the report path, from the previous version. What was set by default in the options dialog, and what changes were made to make it work?

PacmanForever commented 3 days ago

The report path was empty in settings and previous versions created a watchman_report.txt.

I have now added "/config/watchman_report.txt" and it works now.

dummylabs commented 3 days ago

Looks weird, I'll check the migration function, thank you.