Hey everyone, I have a quick question. I have 3 YAML files located in a directory. 2 of them are found by HA, but 1 isn’t, and I don’t understand why. Can someone explain this to me? Thanks in advance.
These are them:
in folder Y:\Packages\Helpers\Input_Datetime\AI the file AI Oplaad Eindtijd.yaml with the content
# PROJECT: #BART-CHARGE-2026-MASTERPIECE
# BESTANDSPAD: Y:\Helpers\Timer\AI\AI Oplaad Eindtijd.yaml
# ================================================================
# FUNCTIE: Slaat de exacte kloktijd op wanneer het laden klaar is.
# ================================================================
- input_datetime:
ai_oplaad_eindtijd:
name: "AI Oplaad Eindtijd"
has_date: false
has_time: true
icon: mdi:clock-check
is not recognized after startup and
in folder Y:\Packages\Helpers\Timer\AI the file AI Oplaad Timer.yaml with the content
# PROJECT: #BART-CHARGE-2026-MASTERPIECE
# BESTANDSPAD: Y:\Helpers\Timer\AI\AI Oplaad Timer.yaml
# ================================================================
# FUNCTIE: De motor die de tijd fysiek aftelt en de lader stopt.
# ================================================================
- timer:
ai_oplaad_timer:
name: "AI Oplaad Timer"
icon: mdi:timer-sand
and in folder Y:\Packages\Helpers\Input_Select\AI the file AI Oplaad Tijdsduur Selectie.yaml with the content
Actually, I am just trying to create a folder where I can organize all the helpers that are very important by domain so that I can find them easily; they aren’t really packages.
If you aren’t actually using Packages (which you probably should just go ahead and do) then you will need to explain/show how you are doing the “include”.
Packages allows you to have multiple integrations in the same folder and even in the same file if that’s what you want. In my opinion it is the most flexible and easiest option for anyone who isn’t well versed in the different details of the include methods.
They don’t. You likely have 2 definitions. According to your notes, there’s no way any of those work. This structure simply will not work for any include:
Because all of those configurations should only be at the root configuration.yaml level. Just as @Didgeridrew pointed out here
So, if I understand you correctly, I can’t put all the helpers together in one folder so I can find them easily. I don’t understand that much about the include yet!
Thank you for your reply. Could you give me an example using one of the files I posted above? I would really appreciate that, so that I can slowly start to understand something of the whole situation.
I already did in my previous post… you just need to move your Helpers folder into the Packages folder and make sure packages is included under homeassistant like:
Then your previous examples would be configured as follows:
# PROJECT: #BART-CHARGE-2026-MASTERPIECE
# BESTANDSPAD: \Packages\Helpers\Input_Datetime\AI\ai_oplaad_eindtijd.yaml
# ================================================================
# FUNCTIE: Slaat de exacte kloktijd op wanneer het laden klaar is.
# ================================================================
input_datetime:
ai_oplaad_eindtijd:
name: "AI Oplaad Eindtijd"
has_date: false
has_time: true
icon: mdi:clock-check
# PROJECT: #BART-CHARGE-2026-MASTERPIECE
# BESTANDSPAD: \Packages\Helpers\Timer\AI\ai_oplaad_timer.yaml
# ================================================================
# FUNCTIE: De motor die de tijd fysiek aftelt en de lader stopt.
# ================================================================
timer:
ai_oplaad_timer:
name: "AI Oplaad Timer"
icon: mdi:timer-sand
Would you be so kind as to create an example of one of the things I posted showing how I should place it in the Packages/Helpers/domainname/AI/filename.yaml folder so that it works?
And can I just paste that into this folder ‘Y:\Packages\Helpers\Timer’ with a filename?? I think I tried that very hard but it didn’t work. But I will try again. And does that work for all helpers?
You can have any file structure you want with packages and each one will be treated like a package. Inside each file, you can place any number of integrations at the root level. Just like you would for configuration.yaml.
I’m a bit lost right now. I’m trying this file AI Oplaad Eindtijd.yaml with this code
# PROJECT: #BART-CHARGE-2026-MASTERPIECE
# BESTANDSPAD: Y:\Packages\Helpers\Timer\AI\AI Oplaad Eindtijd.yaml
# ================================================================
# FUNCTIE: Slaat de exacte kloktijd op wanneer het laden klaar is.
# ================================================================
input_datetime:
ai_oplaad_eindtijd:
name: "AI Oplaad Eindtijd"
has_date: false
has_time: true
icon: mdi:clock-check
and it is located in this folder Y:\Packages\Helpers\Input_Datetime\AI but when checking the configuration I get this error. (pic)
That is exactly what I don’t understand!!! I had already tried this. So I don’t know what I’m doing wrong.