Hass.io, recover config files from cli

by Andrew Calcutt last modified 2020-01-07T20:39:48+00:00

Source: https://community.home-assistant.io/t/edit-configuration-yaml-with-hass-io-cli/100421/9

  1. login to get out of hassio cli and into bash
  2. docker ps to get a list of containers
  3. note the first 3 characters or so of the container for homeassistant - for me it was 51a
  4. docker exec -it 51a /bin/bash
  5. ls to make sure configuration.yaml is there
  6. vi configuration.yaml to edit the file
  7. edit your mistake
  8. esc + :wq to save and exit
  9. exit then login to get back to hassio CLI
  10. homeassistant check to make sure the conf is right this time
  11. homeassistant restart

Document Actions