#Hi how to include multiple automation
1 messages · Page 1 of 1 (latest)
Check the pinned messages here for an example with automations and see https://www.home-assistant.io/docs/configuration/devices/
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Include board specific configuration files
#######################################
# smartDEN IP-PLC (HTTP)
#######################################
group: !include smartDEN_IP_PLC.HTTP/groups.yaml
sensor: !include smartDEN_IP_PLC.HTTP/sensors.yaml
switch: !include smartDEN_IP_PLC.HTTP/switches.yaml
input_number: !include smartDEN_IP_PLC.HTTP/input_numbers.yaml
rest_command: !include smartDEN_IP_PLC.HTTP/rest_commands.yaml
automation: !include smartDEN_IP_PLC.HTTP/automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml```
This is the current setup so i need o list them separately under smartDEN?
Also as you can see the smartDEN files are in a folder named smartDEN_IP_PLC.HTTP. Do i need to change the name of those (ex: automation to automation2) to not confuse the system?
This is the only reason i have to use two separate Home assistant box because this problem.
Sounds like you want packages
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/
Nothing stopping you from just doing
automation den: !include smartDEN_IP_PLC.HTTP/automations.yaml
``` etc though
Will this work though? If i just change the name or do i have to do something else too?
Did you even read the first link I posted?

Check the pinned messages here for an example with automations and see https://www.home-assistant.io/docs/configuration/devices/
Yes i did, but i didn't understood it well
Literally follow what I wrote
group den: !include smartDEN_IP_PLC.HTTP/groups.yaml
sensor den: !include smartDEN_IP_PLC.HTTP/sensors.yaml
switch den: !include smartDEN_IP_PLC.HTTP/switches.yaml
input_number den: !include smartDEN_IP_PLC.HTTP/input_numbers.yaml
rest_command den: !include smartDEN_IP_PLC.HTTP/rest_commands.yaml
automation den: !include smartDEN_IP_PLC.HTTP/automations.yaml
You can use any string instead of den there
Thanks, now i'm running the check config to be sure it works
It seems to be stuck in a loop.
- HAOS
ha core check - Container uses
dockercommands - Core requires you to activate the venv first
now it spits out these errors:
Integration error: script_den - Integration 'script_den' not found.
Integration error: scene_den - Integration 'scene_den' not found.
Integration error: sensor_den - Integration 'sensor_den' not found.
Integration error: input_number_den - Integration 'input_number_den' not found.
Integration error: automation_den - Integration 'automation_den' not found.
Integration error: switch_den - Integration 'switch_den' not found.
Integration error: rest_command_den - Integration 'rest_command_den' not found.
Integration error: group_den - Integration 'group_den' not found.
developer tools ->YAML-> check configuration
That resulted in this
I see, i rewrote it without "_" and run a ha core check which returned: Failed config General Errors: -'rest'

You know, it's damned hard to help you when you do this...
Rather than BSing and being vague, share the damned YAML
Or not, because I'm done
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Include board specific configuration files
#######################################
# smartDEN IP-PLC (HTTP)
#######################################
group den: !include smartDEN_IP_PLC.HTTP/groups.yaml
sensor den: !include smartDEN_IP_PLC.HTTP/sensors.yaml
switch den: !include smartDEN_IP_PLC.HTTP/switches.yaml
input_number den: !include smartDEN_IP_PLC.HTTP/input_numbers.yaml
rest_command den: !include smartDEN_IP_PLC.HTTP/rest_commands.yaml
automation den: !include smartDEN_IP_PLC.HTTP/automations.yaml```
now the terminal says when running ha core check general errors: - 'input_number'
I can't send in here screenshots and copy pasting code from the terminal is not possible or idk how to do it (the terminal i use is the official terminal & SSH from the hassio add-ons store
this is the input_numbers.yaml file if that helps ```yaml
#######################################
Input numbers
#######################################
analog_output_1:
name: Analog Output 1
initial: 0
min: 0
max: 1023
step: 1
analog_output_2:
name: Analog Output 2
initial: 0
min: 0
max: 1023
step: 1