#How to set up File integration? (Access to path not allowed)

1 messages · Page 1 of 1 (latest)

umbral python
#

I am trying to write this data to a csv from an automation but I can't figure out how to access the file properly, anything I try seems to result in an error related to the file access. I'm quite sure its something relatively minor im missing, but any path I tried to do doesn't seem to work.

maiden heart
#

You're missing the leading /

umbral python
maiden heart
#

Did you restart HA after modifying configuration.yaml?

umbral python
#

I did

#

let me do it once more for good measure, cant hurt

maiden heart
#

And does that directory exist?

#

And has reasonable permissions?

umbral python
# maiden heart And has reasonable permissions?

I have not set much up in terms of permissions, just created the folder in the config folder in VSCode on the rpi and created the csv. then put the custom_data folder path into the configuration.yaml

#

@maiden heart after a restart, I checked in the terminal and the folder is there but the integration wizard keeps saying its not allowed to access it

maiden heart
#

work fine for me

umbral python
#

the fk xd

#

I imagine you have a similar version to me

maiden heart
#

I'm running HA in a container, but that shouldn't matter

#

oh, allowlist_external_dirs: xxx should be under homeassistant:

umbral python
#

I was just about to ask

#

is my YAML indentation correct

maiden heart
#

both lines need to be indented by two spaces

umbral python
#

that would explain why the YAML intellisense didnt suggest it either

#

probably

maiden heart
#

I imagine that was evident from the logs

#

it's being interepreted as an integration, which doesn't exist

umbral python
#

doesnt look like my logs have anything in em

#

or im looking in the wrong place

#

it works now tho, with the indentation

maiden heart
#

that is not the normal log file

#

it is home-assistant.log

umbral python
#

ah ye

#

ok that works, now to figure out how to write to it