#why

1 messages ยท Page 1 of 1 (latest)

potent crescent
#

Probably your indenting is wrong

cold foxBOT
#

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/

potent crescent
#

Also, as shown there it's not a list

fading turret
#

list.. or dir.. throws the same error

potent crescent
#

Check your indenting

#

YAML requires that you get the indenting right

#
homeassistant:
packages: ...
``` is wrong
#
homeassistant:
  packages: ...
``` is right
fading turret
#

yep i know that.... it is undre homeassitant: with 2spaces

#

cant send here snapshop of my scren...but i think it right

cold foxBOT
#

Please use a code share site to share code or logs, for example:

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.

potent crescent
#

Share code as code โ˜๏ธ

#

Sharing images of text is horrible

fading turret
potent crescent
#
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
fading turret
potent crescent
#

No

#

Please read what I wrote there, it's actually valid

fading turret
potent crescent
#

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
fading turret
#

pffff๐Ÿฅน

potent crescent
#

That is valid, as I shared above

#

You can't make shit up with YAML

fading turret
#

same error...๐Ÿ˜ฅ

potent crescent
#

What do you have now?

#

Share both the YAML and the error

fading turret
potent crescent
#

That's not the same error that you started with

fading turret
#

yep i just saw that.. it changed...

potent crescent
#

What is 1room1?

fading turret
#

a yaml file where i will store all automations for room1...

potent crescent
#

Please share that file

fading turret
potent crescent
#

Yeah, not formatted correctly

fading turret
#

ponder ๐Ÿ˜ฐ ๐Ÿ˜จ

potent crescent
fading turret
#

cnat understant it really.... i am new... my home is small i need just 1 example for 1 automations... others are just copy paste...

potent crescent
#
1room1:
  automation:
    - id: '1680976417925'
      alias: 'Command: Telegram 1_ROOM_1 ON/OFF'
      description: 'Command: Telegram 1_ROOM_1 ON/OFF'
...
fading turret
#

thanx.... i reformated everything... so far only one error...

#

expected dict for dictionary value @ data['packages']['1room1']['mode']

potent crescent
#

So... you still have an error with the formatting in that file

#

Once more ... share the file

fading turret
potent crescent
#

Well, you added a lot of extra indenting all over the place

fading turret
#

๐Ÿ˜ฅ

potent crescent
#

Personally I'd split it into two automations, you're gaining nothing by merging them

fading turret
#

lol... looks much much nicer....thanx.... but

#

now it thorws

#

Package 1room1 setup failed. Component 1room1 Integration '1room1' not found.

potent crescent
#

Share your configuration.yaml again

fading turret
potent crescent
#

Try include_dir_merge_named:

homeassistant:
  packages: !include_dir_merge_named packages/
fading turret
#

lol

#

it worked

#

but now...

#

the automation is grey....

#

in the card

potent crescent
#

"the card"?

fading turret
#

dashboard... different cards..

potent crescent
#

That probably means the automation isn't available, check under States

cold foxBOT
fading turret
potent crescent
#

There you go, unavailable

cold foxBOT
potent crescent
#

Run that command

fading turret
potent crescent
#

Please ... don't share images of text

#

Now... check the log file

cold foxBOT
#

If you're having problems with your updates to your configuration:

fading turret
#

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

fading turret
#

and then every room in separated forlder and in the folder 1..2..3 automations that are especialy for this room?

potent crescent
#

Yup, look at my setup I linked

fading turret
#

ok.. i will give it a try

fading turret
#

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...

potent crescent
#

Did you reload automations?

fading turret
#

hm..?

potent crescent
#

Changes to YAML aren't reloaded for you

#

You should also always run the config check command (not the UI button) when editing YAML

fading turret
#

superb.... it worked... 10 more to go

#

i really wonna thank you

#

for your time

#

i did not expected it.. really...

potent crescent
#

That's what we're all here for

fading turret
#

yep

#

thank you again...

fading turret
#

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...

potent crescent
#

That's been built up over years ๐Ÿ˜‰

#

6 years and change at this point

fading turret
#

sure

#

lol

#

6years..... man..... lol

#

i admire you

potent crescent
#

I'm far from the longest user of HA here

fading turret
#

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

#

๐Ÿ™„

potent crescent
#

Timers aren't lists

cold foxBOT
#

YAML is the mark up language used by Home Assistant, consistent indenting (two spaces per level) is key. Here is a primer, and this explains multi-line templates. For validating YAML see YAML Lint.

potent crescent
#
timer:
  laundry:
    duration: "00:01:00"
``` that's a _dictionary_
#
automation kitchen:
  - trigger:
      - platform: ...
``` that's a list
fading turret
#

i have tried it ... with no luck ..

potent crescent
#

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)

fading turret
potent crescent
#

Timer isn't valid

cold foxBOT
fading turret
#

ok i will tru to explane:

potent crescent
#

I don't see any mention of iod: in the Timer docs either

fading turret
#

id:!!

potent crescent
#

No id either

#

You did read the docs?

fading turret
#

yes

#

i read it

potent crescent
#

Maybe instead set it up in the UI

fading turret
#

and i tryed with the same example

potent crescent
#

Because you may be reading it, but you don't seem to be reading it

fading turret
#

well as much as i can... you know some people are strong in one thing...otheres in other stuff

potent crescent
#
timer:
  four_hallway_off_1m:
    name: '4_hallway_off_1m'
    duration: '00:01:00'
    icon: mdi:timer
    restore: true
#

That should be valid

fading turret
#

and yes computers and programing is not my strong side

potent crescent
#

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

fading turret
#

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

#

๐Ÿ™„

potent crescent
#

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

fading turret
#

beacouse i saw that you have made separate file with diferent timers.. and i told my self cool i shoud do exactly the same....

potent crescent
#

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:

cold foxBOT
fading turret
#

๐Ÿ‘