/home

Home Assistant

Primary LanguagePython

Home Assistant

Scripts for smart home. Almost everything is managed via Home Assistant in ha directory, with some other legacy/ancilliary scripts elsewhere.

To Do

Script the following:

  • Update (below)
    • Should do regular updates, ideally with a canary image and testing the config against the new version
  • Nightly backups of DB

Other Things

Updating

Some useful commands, not necessarily in this order:

# if tearing things down and backing up
docker-compose down
docker rm homeassistant
cp -r ha ha-bak
docker commit -p $(docker ps -f name=homeassistant -q) homeassistant-backup
docker save homeassistant-backup | gzip > homeassistant.tar.gz

# standard update
docker-compose pull
docker-compose up -d --remove-orphans
docker logs -f homeassistant
docker system prune -a