Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!include_dir_merge_list issue in configuration.yaml #3154

Open
2 of 9 tasks
pganansia opened this issue Sep 29, 2024 · 4 comments
Open
2 of 9 tasks

!include_dir_merge_list issue in configuration.yaml #3154

pganansia opened this issue Sep 29, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@pganansia
Copy link

pganansia commented Sep 29, 2024

Please include the related YAML code:

media_player: !include /config/include/elements/media_player.yaml
mqtt: !include /config/include/elements/mqtt.yaml
sensor: !include /config/include/elements/sensor.yaml
template: !include_dir_merge_list /config/include/elements/templates/

The instruction !include_dir_merge_list triggererd ENOENT error as the directory exists ans is not empty. The path is correct.
The !include instructions are working well.

Find my Home Assistant Configuration here:
Link to Home Assistant Configuration

Extension runs in:

  • [] VS Code for Desktop
  • Hassio Add-on
  • Visual Studio Online
  • [X ] Other:
    VS code in a docker container on the same server than Home Assistant docker contener.
    I am accessing VS Code through https

I'm running VS Code on:

  • Windows
  • Mac
  • Linux

I'm accessing my files:

  • From local disk
  • Via remote SSH
  • Smb
  • Other:
  • The VS Code contener access configuration files through extension paramters Host Url, Ignore Certificates checked and Long Live jeton
@pganansia pganansia added the bug Something isn't working label Sep 29, 2024
@frenck
Copy link
Collaborator

frenck commented Sep 30, 2024

I'm really unclear on what the error is here?

Could you include a screenshot?

@pganansia
Copy link
Author

Hi frenck,
Here is a screenshot.
Capture d'écran 2024-10-01 112210
I hope that will help to understand my issue. It's like if the instruction !include_dir_merge_list is not functionning.
And the error is : "There were no files found in folder '/config/include/elements/templates/' referenced with '!include_dir_merge_list' from 'file:///workspace/Homeassistant/config/configuration.yaml'"
The screen of the /config directory from the docker container:
Capture d'écran 2024-10-01 115253
The same from the server itself:
Capture d'écran 2024-10-01 115151

Thanks for your help.

@ERBN19
Copy link

ERBN19 commented Oct 1, 2024

I also have the same problem/ message. I am here because of the source of my error message. But this came after updating Studio Code Server Update 5.15.0 to 5.16.1.

Unexpected error updating the schemas, message: ENOENT: no such file or directory, realpath '/config/config/ui_lovelace_minimalist/config/script/scripts.yaml' Source: Home Assistant Config Helper

For extra information, the file of the error.
copy path: /config/ui_lovelace_minimalist/config/script/scripts.yaml
copy relative path: ui_lovelace_minimalist/config/script/scripts.yaml

error tag 1
Error tag 2

@andarotajo
Copy link

Noticed the same "ENOENT" error recently. On every save it pops up for the files automations.yaml, scenes.yaml and scripts.yaml. My configuration is on GitHub so I don't have those files committed as they're managed by HA. Not having those files results in the schemas not working correctly.

If I create those 3 files, even if they're empty, it works again. Hope that helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants