File paths confusion and File integration pains

Hi, my HA install is from 2018 originating on a Pi (started as Hassio? I don’t remember), and now running in a Proxmox VM. I’m now getting issues getting a File integration to run properly, and overall I don’t know what goes where. IIRC there was some sort of big movement of stuff from /homeassistant to /config or vice versa. Everything else works but this doesn’t.

Problem:

  • no matter where I put my value.txt file, the Files integration either doesn’t let me use that location at all, says “no devices or entities”, or creates an entity with Unknown state, even when there is a value. Right now the value (the only content of the file) is “57524.55 W”.

I have allowed the dirs in config.yaml like this:

homeassistant:
  allowlist_external_dirs:
    - /config/www/browserless
    - /config
    - /config/www

and made copies at all these location for testing, and only /config (no subfolders) is actually accessible. But looking with the FileBrowser addon, the file is not there. The paths are apparently different via the Addon and via remote access with SSH.

The entity is still Unknown, no matter the Template used (or none at all).

Any tips? Thanks.

Edit: further background: the “value.txt” is created by Browserless Chromium used to scrape a javascript website behind a login. That whole bugger works, but simply turning the result into a sensor doesn’t.

But what core version are you actually running now?

That is the important information.

This should do all the subfolders:

homeassistant:
  allowlist_external_dirs:
    - /config

Share your file sensor config. You will have to remove everything except the number from this in the value template: