#why
1 messages ยท Page 1 of 1 (latest)
To enable packages, add packages: !include_dir_named packages to your configuration.yaml so that it looks similar to this:
homeassistant:
...
packages: !include_dir_named packages
Important: The packages: line must be nested under homeassistant:!
For more information on packages, please refer to the packages docs: https://home-assistant.io/docs/configuration/packages/
Also, as shown there it's not a list
list.. or dir.. throws the same error
Check your indenting
YAML requires that you get the indenting right
homeassistant:
packages: ...
``` is wrong
homeassistant:
packages: ...
``` is right
yep i know that.... it is undre homeassitant: with 2spaces
cant send here snapshop of my scren...but i think it right
Please use a code share site to share code or logs, for example:
- https://dpaste.org/ (select YAML for the language, and consider picking a longer expiry)
- http://pastie.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.

homeassistant:
...
packages: !include_dir_named packages
There's ... no indenting there
It's also below automation:
homeassistant:
name: Home_DE
latitude: !secret latitude
longitude: !secret longitude
elevation: !secret elevation
time_zone: !secret time_zone
country: !secret country
unit_system: metric
allowlist_external_dirs:
- /config/
packages: !include_dir_named packages
####################################################
# #
# AUTOMATIONS #
# #
####################################################
# https://www.home-assistant.io/integrations/automation/
automation: !include automations.yaml
Still not valid
homeassistant:
name: Home_DE
latitude: !secret latitude
longitude: !secret longitude
elevation: !secret elevation
time_zone: !secret time_zone
country: !secret country
unit_system: metric
allowlist_external_dirs:
- /config/
packages: !include_dir_named packages
pffff๐ฅน
same error...๐ฅ
That's not the same error that you started with
yep i just saw that.. it changed...
What is 1room1?
a yaml file where i will store all automations for room1...
Please share that file
It needs to be formatted like https://www.home-assistant.io/docs/configuration/packages/#create-a-packages-folder
Yeah, not formatted correctly
๐ฐ ๐จ
It needs to be formatted like https://www.home-assistant.io/docs/configuration/packages/#create-a-packages-folder
cnat understant it really.... i am new... my home is small i need just 1 example for 1 automations... others are just copy paste...
1room1:
automation:
- id: '1680976417925'
alias: 'Command: Telegram 1_ROOM_1 ON/OFF'
description: 'Command: Telegram 1_ROOM_1 ON/OFF'
...
thanx.... i reformated everything... so far only one error...
expected dict for dictionary value @ data['packages']['1room1']['mode']
So... you still have an error with the formatting in that file
Once more ... share the file
Well, you added a lot of extra indenting all over the place
๐ฅ
https://dpaste.org/GzW2T may be valid
Personally I'd split it into two automations, you're gaining nothing by merging them
lol... looks much much nicer....thanx.... but
now it thorws
Package 1room1 setup failed. Component 1room1 Integration '1room1' not found.
Share your configuration.yaml again
Try include_dir_merge_named:
homeassistant:
packages: !include_dir_merge_named packages/
"the card"?
That probably means the automation isn't available, check under States
Open your Home Assistant instance and show your state developer tools
There you go, unavailable
To check your configuration use the command for your install method:
Run that command
If you're having problems with your updates to your configuration:
- Check the troubleshooting steps
- Check your log file - remembering you may need to set logger to
infoordebug - Explain what the problem you're having is - sharing configuration, errors, and logs
pffff it seams packaed separation is not for me.. or it is too complecated to do ....
do ypu have any other suggestions to separate all the automations
is is better to have a forlder with subfolder for every room and there to put all automations separated
See the pins in #automations-archived
Automations have to be formatted like https://github.com/DubhAd/Home-AssistantConfig/blob/live/automation/test/test_alarm.yaml
and then every room in separated forlder and in the folder 1..2..3 automations that are especialy for this room?
Yup, look at my setup I linked
ok.. i will give it a try
ok.. so i have crated a single simple automation....
no errors so far...
now...
how to implemented it... i mean i can not see it under automation&scenes...
Did you reload automations?
hm..?
Changes to YAML aren't reloaded for you
You should also always run the config check command (not the UI button) when editing YAML
superb.... it worked... 10 more to go
i really wonna thank you
for your time
i did not expected it.. really...
That's what we're all here for
hey..
i used you yaml file
copy and paste in mine.. just change the names and values
u have some great stuff
there
really
like the thing with re recycle bin...
I'm far from the longest user of HA here
sure... i gues.. but 6years is a lot..
i am using it since last night
๐
so.. i learnd form the last time.... i restart relode... as you teached me.... but
๐
Timers aren't lists
timer:
laundry:
duration: "00:01:00"
``` that's a _dictionary_
automation kitchen:
- trigger:
- platform: ...
``` that's a list
i have tried it ... with no luck ..

What did you try?
What error did you get?
Remember that we can't read your mind. You need to tell us what you did (share the YAML) and what happened (share the error)
Timer isn't valid
ok i will tru to explane:
I don't see any mention of iod: in the Timer docs either
id:!!
Maybe instead set it up in the UI
and i tryed with the same example
Because you may be reading it, but you don't seem to be reading it
well as much as i can... you know some people are strong in one thing...otheres in other stuff
timer:
four_hallway_off_1m:
name: '4_hallway_off_1m'
duration: '00:01:00'
icon: mdi:timer
restore: true
That should be valid
and yes computers and programing is not my strong side
You have to absolutely match what's shown in the docs - case (lower case) and indenting
You can't add random Capital letters
You can't skip or add random spaces
well i have coped paste what you have gave me in timers forder inside file_name.yaml......well no errors thrown... i resloded and restarted .... but still do not see timer in the Helpers menu
๐
The code I gave you there goes directly in configuration.yaml
However... you can create these in the UI, zero YAML required
Why don't you do that while you work on learning how YAML works?
Otherwise... we need to know how you're trying to include them and what you did
beacouse i saw that you have made separate file with diferent timers.. and i told my self cool i shoud do exactly the same....
Sure, you can do that if you pay attention
You however seem to be mostly throwing things at the screen and hoping something sticks
Start by getting working YAML directly in configuration.yaml
Once you've got that working then complicate it with include statements
Also, remember.... every time you edit YAML run:
To check your configuration use the command for your install method:
๐