Can't restart or do anything with my HA

Hey there!

HA was working fine until today after i change some code on configuration.yaml.
I’ve deleted that code but either way can’t access anymore normally HA.

Dashboard don’t load and if i restart HA it says:

" Failed to restart Home Assistant

Invalid domain custom_component.nodered"

If i go to Developer Tools and do the restart there i can see on browser console:
"developer-yaml-config.ts:214 Uncaught (in promise) {error: ‘Response error: 401’, status_code: 401, body: ‘401: Unauthorized’}body: "401: Unauthorized"error: “Response error: 401"status_code: 401[[Prototype]]: Object
value @ developer-yaml-config.ts:214
await in value (async)
handleEvent @ lit-html.ts:2018”

And this is my configuration.yaml atm:


# 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
http://homeassistant.local:8123/configscript: !include scripts.yaml
scene: !include scenes.yaml

influxdb:
  host: a0d7b954-influxdb
  port: 8086
  database: XXXXX
  username: XXXXX
  password: XXXXX
  max_retries: 3
  default_measurement: state

Can someone please help me?

Thank you so much

Hi,

This shouldn’t be in your config as it’s invalid yaml and as such invalidating your config

Update that line so you’re left with

script: !include scripts.yaml

Always go to developer tools > yaml > check config
prior to restarting

1 Like