I would like to setup a new configuration for my home assistant.
Into my configuration file i’ve put:
script: !include_dir_merge_named scripts/
into scripts there are single files and each one contains a script.
an example could be this: (file name called: scripts/test.yaml)
test:
sequence:
- service: light.turn_on
data:
entity_id: light.hue_white_lamp_2
brightness: 125
if i try to restart hass, logs give me nothing (empty). if i comment the script line in the configuration line it works fine.
Can you help me? i think is something regarding sintax/include but i cannot understand
What exactly is the problem? Are you trying to execute the script but it’s not doing anything? Are any of your other scripts working?
The code above seems fine, although I can’t judge the formatting/spacing of your code. For that you would have to select your code and then click the < / > button in the toolbar above the text field.
Hi David,
i’ve removed all the scripts inside the scripts/ folder exept this one: test: sequence: - service: light.turn_on data: entity_id: light.hue_white_lamp_2 brightness: 125
If i let the script inside the folder, hass doesn’t even restart. i cannot understand if it’s a sintax problem or not
If i run the command like this it says me “Command not found”.
I’ve found the path of the script but even if i run the script from the static path it says:
pi@raspberrypi:/srv/homeassistant/homeassistant_venv/bin $ ./hass --script check_config
INFO:homeassistant.util.package:Attempting install of colorlog>2.1,<3
Config does not exist: /home/pi/.homeassistant/configuration.yaml
My config is inside: :/home/homeassistant/.homeassistant
i’ve installed hass with the all in one script.
It seems that everything is fine. I have no idea. Is there any other workaround? Like another config method i can use to store my scripts into a specific folder?