config-editor-card icon indicating copy to clipboard operation
config-editor-card copied to clipboard

Only subfolders of /homeassistant visible

Open Ren656 opened this issue 9 months ago • 6 comments

Good evening Junkfix,

Hope you're still maintaining this, either way I have a short question. Today I installed Config-editor in a Docker environment (not as a separate Docker container but followed your steps). From the Readme-file I understand all subfolders in should be visible, however I only see the files in /homeassistant and subdirectories. Do you know a solution?

I would like to have access to the files in the opt-directory, in which my relevant files can be found. The homeassistant folder is one of the folders in /opt --i know the folder structure because i can ssh into my raspberry, which is not possible / more complicated from outside home.

Kind regards, René

Ren656 avatar Feb 14 '25 18:02 Ren656

Same question... How can I access and edit files in sub-sub-sub-directories? I want to access a file in "custom_components/integration_name/data_dir/file.yaml"

hros avatar May 09 '25 10:05 hros

Same question... How can I access and edit files in sub-sub-sub-directories? I want to access a file in "custom_components/integration_name/data_dir/file.yaml"

set depth: 5 in config

junkfix avatar May 30 '25 20:05 junkfix

Good evening Junkfix,

Hope you're still maintaining this, either way I have a short question. Today I installed Config-editor in a Docker environment (not as a separate Docker container but followed your steps). From the Readme-file I understand all subfolders in should be visible, however I only see the files in /homeassistant and subdirectories. Do you know a solution?

I would like to have access to the files in the opt-directory, in which my relevant files can be found. The homeassistant folder is one of the folders in /opt --i know the folder structure because i can ssh into my raspberry, which is not possible / more complicated from outside home.

Kind regards, René

the original goal was not a file editor but to only to edit config of home assistant.

easy option is symlink the folder within /homeassistant

ln -s /opt /homeassistant/opt

for full access to the root filesystem the following may work:

you will need to edit custom_components/config_editor/__init__.py and change hass.config.path(yamlname) to os.path.join('/opt', yamlname)

line 66 ~~fullpath = hass.config.path(yamlname)~~

    fullpath = os.path.join('/opt', yamlname)

line 124 ~~dirnm = os.path.dirname(hass.config.path(yamlname))~~

        dirnm = os.path.dirname(os.path.join('/opt', yamlname))

junkfix avatar May 30 '25 21:05 junkfix

Same question... How can I access and edit files in sub-sub-sub-directories? I want to access a file in "custom_components/integration_name/data_dir/file.yaml"

set depth: 5 in config

thanks @junkfix . Where is the depth setting?

hros avatar May 31 '25 18:05 hros

Same question... How can I access and edit files in sub-sub-sub-directories? I want to access a file in "custom_components/integration_name/data_dir/file.yaml"

set depth: 5 in config

thanks @junkfix . Where is the depth setting?

https://github.com/junkfix/config-editor-card#advanced-config

type: custom:config-editor-card
depth: 5

junkfix avatar May 31 '25 18:05 junkfix

depth: 5 gives. Is it right or?

Image Image

type: custom:config-editor-card depth: 5

knudhamm avatar Jul 21 '25 06:07 knudhamm