Hi. Have been installing HA on my RPi4, which has worked well. In File Editor there was no text listed so I copied some code for LightwaveRF and saved as configuration.yaml and rebooted. Now I am unable to open HA and 404: Not Found is shown. What have i messed up please and how do I access the config.yawl to correct it?
If there was no text listed then it’s because you didn’t open the configuration.yaml file FIRST. If you have then just pasted some config in to an empty text file and then saved it as configuration.yaml then you have overwritten the actual configuration and Home Assistant now probably can’t load because it will be full of errors.
Your best bet is to plug a keyboard and HDMI monitor / TV in the Pi and hopefully you can access the command line.
If you can then you need to nano /config/configuration.yaml
UNLESS you had already installed the Samba addon - in which case you can edit the file over the samba share.
I would recommend emptying the entire file and pasting in just this:
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
# base_url: example.duckdns.org:8123
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
Reboot and hopefully that gets you back up and running, and then just PRAY that there is a backup in Home Assistant that you can restore from!
Many thanks. Just found it easier and quicker to flash the SD card again and start from scratch.