Open Questions to Home assistant

I have some left open questions to home assistant (hass.io). I’m using it since a few weeks now.

  1. How do you power off Home Assistant safely? Which service do you use before you plug the device off? (homeassistant.stop, hassio.addon_stop, …) And how do I no when it is safe to pull the cable?

  2. I already bricked my HA two times while configuring it. So I had to use the backup files (snapshot). Both time the database.db stopped working, no data was written to it, even after a reboot. To make it work again I had to delete the file.
    Is this a normal behaviour? How is it possible to reuse the old database after a backup restore again?
    Also I’m running Grafana. The influxdb database is not affected by this (so also old data there). I’m wondering where it is saved? Is it saved locally (couldn’t find) or in the cloud?

  3. In the newest version of HA 0.77.2 it is not possible to download snapshots via the webinterface. The file gets downloaded but 0kb. Chrome tells me that I habe no permission. But I’m logged in with my main user, being able to control other users. Is this a known bug, because I didn’t find a way to get permission.

Thanks

From a terminal:

ssh [email protected]

sync
sync
halt

Do you mean:

  1. halt

  2. sync

  3. sync ??

The old school unix command to safely shut down any server (that included all Unix and Linux implementations is 3 commands from root:
sync (to sync up the file system with what is in the buffers)
sync (do it again… well… just `cause)
halt (shut 'er down)

You can also click the shutdown button from the hass.io/system GUI if you have access to it.

Ok, thank you

So questions 2 and 3 are still open.

  1. I have no clue at all so I can’t help ya there.
  2. 0.77.x introduced all kinds of security measures that this forum has shown many concerned about it as it is pretty much getting in the way of everything that used to work just fine. Methinks proper debugging of these new features was a bit lacking so… I really can’t help ya with that either. Smoke.007 has mentioned there is a bug report here: https://github.com/home-assistant/hassio/issues/675
  1. Whenever you restore a snapshot it is best to delete the database otherwise you will get all kinds of database errors.
  2. I believe this is fixed in 0.77.3 - it was a bug.

Still have the third issue at hassio 0.81.5