Problems with packages

Where you put your
“packages: !include_dir_named packages” ?

Packages - Home Assistant (already linked above) shows it:

homeassistant:
  packages: !include_dir_named packages

What did I do wrong? The error appears even after I deleted the 3d_printer folder from the packages folder.


Screenshot 2024-04-25 at 17.13.19

Please share text as text, not images.

That said, your problem is with the package definition, which you haven’t shared.

homeassistant:
  packages: !include_dir_named packages
# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml


http:
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

Screenshot 2024-04-25 at 19.00.19

Remove the package line under default_config:

Removed and restart VM, but same problem. There is no any 3d_printer folder in packages folder. The error appears even after I deleted the 3d_printer folder from the packages folder.

post the contents of your packages folder. If you have yaml files in there, also post the contents of them.

Thanks for your help. I was able to restore my system using a backup and it’s now working again.

I do habe a similar issue:

configuration.yaml

default_config:

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
template: !include templates.yaml

homeassistant:
  # Packages
  packages: !include_dir_merge_named packages/

...

packages/ir_kerzen_tg_deploy.yaml

# Version: 0.2.0
ir_kerzen_tg_deploy:
  # Template Lights
  # https://www.home-assistant.io/integrations/light.template
  light:
    - platform: template
      lights:
      ...
  # Input Selects
  # https://www.home-assistant.io/integrations/input_select/
  input_select:
    # WZ-Kerzen
    wz_kerzen_brightness:
    ...
  # Scripts
  # https://www.home-assistant.io/integrations/script/
  script:
    ir_kerzen_steuerung:
      alias: IR Kerzen Steuerung
      sequence:
      ...

Error message from core logs:

2025-03-12 22:42:49.073 ERROR (MainThread) [homeassistant.components.script] Script with alias 'IR Kerzen Steuerung' could not be validated and has been disabled: Only one type can be specified. Found  for dictionary value @ data['fields']['area']['selector']. Got OrderedDict()

I think I’ve read this 15 times now. Maybe I need some sleep bc for the life of me I can’t figure out what the problem is…

I tried

homeassistant:
  # Packages
  packages: !include_dir_named packages

without ir_kerzen_tg_deploy: as well. Same issue.

I don’t think the issue has anything to do with Packages.

Errors like that are occasionally caused when the script editor adds a stray {} to a selector type that doesn’t actually need extra variables. I opened a frontend issue for it last year, but none of the devs could reproduce it…

I’ve had it occur a couple times since, the fix is to just remove the {}. If that works for you, please take a minute and add your information to the issue I linked above.

1 Like

Thanks man! That did it! I tripple checked to make sure I have exactly everything copied form the UI since it was working there. Seems like that was the problem.