HA Crashed

Woke up this morning to “your computer is not allowed” looking through the forum posts kept saying to add auth_provider and trusted_networks. I did that and now when I log in it says that “Recovery Mode.”

Here is my config.yaml:


# 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


spotcast:
  sp_dc: !secret sp_dc
  sp_key: !secret sp_key
  country: SE #optional, added in 3.6.24

homeassistant:
  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - 192.168.0.0/24
        - fd00::/8
    -type: homeassistant 

This is not indented correctly:

homeassistant:
  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - 192.168.0.0/24
        - fd00::/8
    -type: homeassistant 

Should be:

homeassistant:
  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - 192.168.0.0/24
        - fd00::/8
    - type: homeassistant 

Check your logs and ipban file.

fixing the indents worked. HA is back up on my pc but the tablet running the dashboard is still down?

Check your config/ip_bans.yaml file.

that file does not exist. should i change 192.168.0.0 to 192.168.1.0 if that is my ip scheme?

Yes.

So now the tablet is logging in with “trusted networks” I see both users I have setup. But when I choose “keep me logged in” it does not work. After some time it goes back to HA login page.

I don’t use any auth providers and it keeps me logged in.

At first I was not using any and it would not keep me logged in. The. All the forum posts suggested to add them to fix the issue. Now I’m confused.