I’m a newbie to Home Assistant and have no coding skills. Probably the cause to my problems now
Home Assistant 2022.9.6
Supervisor 2022.09.1
Operating System 9.0
Installed on a NUC
Some days ago I needed to restart HA but nothing happened. I then went to Developer Tools and checked the configuration. The wheel got stuck in spinning and I never got the valid message (or an error message).
I started to comment out different parts in the configuration.yaml and checked the configuration for each time. Finally when I commented out automation: !include automations.yaml I got the valid message and was able to restart HA.
With my limited knowledge I came to the conclusion that one or more of my automations is causing the problem. All my automations are made through the UI. Right now I have 18 automations.
I did a full backup of HA and started on top of my automation list and deleted one by one, checking the configuration after each deletion. When I only had 4 automations left I finally got the valid message. Again with my limited knowledge I came to the conclusion that the last automation I deleted had to be the cause for the problem.
I did a restore of the previous backup and deleted only the automation that I suspected to be the cause of the problem. But no success. The configuration wheel is still spinning without a valid or error message.
I repeated these steps with deleting automations, and for each time different automations seemed to be the cause of not beeing able to get a valid configuration. After doing this 5 times and I still couldn’t get a valid configuration when deleting the 5 automations I had narrowed down, I gave up and now I’m here
All my automations was made before the new UI for automations. I don’t know if this could be an issue. I’ve also not been careful when making automations so some of them are probably not setup in the best way possible, but at least they are done through the UI and have been performing the tasks without any problems.
Any ideas? Should I post my config file and/or automations?
I appreceate any help. I still have lots to learn!
# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
frontend:
themes: !include_dir_merge_named themes
camera:
- platform: xiaomi_cloud_map_extractor
host: !secret xiaomi_vacuum_host
token: !secret xiaomi_vacuum_token
username: !secret xiaomi_cloud_username
password: !secret xiaomi_cloud_password
draw: ['all']
attributes:
- calibration_points
nordpool:
sensor:
- platform: nordpool
# Should the prices include vat? Default True
VAT: True
# What currency the api fetches the prices in
# this is only need if you want a sensor in a non local currency
currency: "NOK"
# Option to show prices in cents (or the equivalent in local currency)
price_in_cents: false
# Helper so you can set your "low" price
# low_price = hour_price < average * low_price_cutoff
low_price_cutoff: 0.95
# What power regions your are interested in.
# Possible values: "DK1", "DK2", "FI", "LT", "LV", "Oslo", "Kr.sand", "Bergen", "Molde", "Tr.heim", "Tromsø", "SE1", "SE2", "SE3","SE4", "SYS", "EE"
region: "Bergen"
# How many decimals to use in the display of the price
precision: 2
# What the price should be displayed in default
# Possible values: MWh, kWh and Wh
# default: kWh
price_type: kWh
# This option allows the usage of a template to add a tariff.
# now() always refers start of the hour of that price.
# this way we can calculate the correct costs add that to graphs etc.
# The price result of the additional_costs template expects this additional cost to be in kWh and not cents as a float
# default {{0.0|float}}
additional_costs: "{{0.0|float}}"
Unfortunately I don’t get any error on the config check. I only get a spinning wheel. On second thought I have not let it run for more than 5 minutes. I’ll do the check again and let it run longer.
Before when I checked config (not related to this problem) I would get an error message after a few seconds if the config was not valid, but I will try again!
What if you look in the log? I do not think more than 5 min will help.
And, you have 2 automations with the same alias in the automations.yaml. Both called “Dusjteller”. open automation.yaml in a text editor and delete one of them
Only the first log entries in the top or should I load the entire log? The entire log is very long. If I need to post the entire log, will it contain any personal info like passwords etc that is in the system?
Ok that’s good, but why can’t I get a valid message unless I comment out the automations from configuration.yaml? Seems strange to me. I also can’t restart HA when I don’t get a valid message.