Vigiora

Denne side findes endnu ikke på Dansk. Den vises på engelsk.

Install Home Assistant for meSiden 1.6.13

Let Vigiora install Home Assistant on your Linux server, with the Vigiora integration already connected.

I appen: /system/integrations

If you don't use Home Assistant yet, Vigiora can install it on the same computer and set everything up: the owner account, location, time zone and language, the Vigiora integration and its API key. When it finishes, your cameras are already in Home Assistant.

Already have Home Assistant? Connect it instead of installing a second one.

What you need#

  • A Vigiora Server on Linux. Installing for you on macOS and Windows is coming later; you can still connect an existing Home Assistant.
  • An admin account in Vigiora.
  • About 2 GB to download. Home Assistant runs in Docker on the server.
  • A terminal on the server (or SSH) for one administrator command, the first time only.

Checks before the install#

Open Settings → System → Integrations → Home Assistant, on the Set up tab. Vigiora checks the computer first:

CheckWhat it looks at
Operating systemLinux. On other systems the install is not offered.
Free memoryA warning below 1.5 GB free: Home Assistant and Vigiora may become slow.
Free disk spaceAt least 5 GB free is needed.
Port 8123Must be free. If it's in use, another Home Assistant is probably running: connect it instead.
DockerInstalled and running.
Vigiora helperA small helper that lets Vigiora manage the Home Assistant container.

The one-time administrator step#

Vigiora's own service never gets Docker access. The first time, a person runs one command on the server to set up the helper (and Docker, if it's missing). The card shows the exact command with Copy:

Terminal on the server
curl -fsSL https://downloads.vigiora.com/install.sh | sudo sh -s -- homeassistant --install-docker
  • --install-docker installs Docker from your distribution's packages when it's missing. Leave it out if Docker is already installed.
  • --docker-source docker installs Docker from Docker's own apt repository instead; its signing key is checked against a pinned fingerprint first.

The command asks for your password in the terminal. Vigiora never asks for it. Then come back and click Check again.

If Docker is installed but stopped, the card shows sudo systemctl enable --now docker.

Install#

  1. Start the install

    Under Install Home Assistant for me, click Install Home Assistant.

  2. Enter the location if asked

    Vigiora uses the location of your cameras on the map. If it doesn't know where the site is, enter the Latitude and Longitude. Home Assistant uses them for the sun, weather and zones.

  3. Follow the progress

    The steps and a live log appear while it runs (below). It takes a few minutes, mostly the download.

  4. Save the owner sign-in

    Click Show the Home Assistant owner password (once) and save the user name and password somewhere safe. They are shown only once.

The install runs these steps:

  1. Check this computer
  2. Prepare the configuration folder
  3. Add the Vigiora integration
  4. Download and start Home Assistant
  5. Wait for Home Assistant to start
  6. Create the owner and set location, time zone and language
  7. Restart Home Assistant
  8. Vigiora API key for Home Assistant
  9. Connect Vigiora in Home Assistant
  10. Check the cameras appear

If a step fails, click Copy log to keep the details, fix the cause, then click Try again.

The time zone is Vigiora's, and the language is the one you use in the Vigiora app.

Manage Home Assistant#

Once it's installed, the card shows its Status (Running or Stopped), Version and Address, marked local network only. From version 1.6.19 it also shows USB devices, the serial dongles (Zigbee, Z-Wave) passed into the container, and a Zigbee row; see Zigbee devices.

ButtonWhat it does
Open Home AssistantOpens it in a new tab.
Update to …Shown when a newer Home Assistant version is offered. Vigiora only installs versions it has tested, pinned to an exact image.
Update Vigiora integrationShown when this Vigiora Server carries a newer Vigiora integration than Home Assistant runs. It installs it and restarts Home Assistant (about a minute).
RestartRestarts Home Assistant. From 1.6.19, when a USB dongle was plugged in or removed since the container was made (New USB device), it recreates the container with the dongles the server has now.
UninstallRemoves the Home Assistant container and revokes its API key. Its configuration is moved to a backup folder on the server, never deleted.

Home Assistant keeps running when Vigiora restarts or updates.

Update Vigiora integration#

Update Vigiora integration writes the new integration files (the old copy is kept in a backup folder in Home Assistant's configuration), restarts Home Assistant, then checks that Home Assistant loaded exactly the new version. If it loaded another version, the job fails and says so.

Remove the helper#

After you uninstall Home Assistant, the card shows Remove the Vigiora helper if you don't plan to install it again. Run the command it shows on the server:

Terminal on the server
curl -fsSL https://downloads.vigiora.com/install.sh | sudo sh -s -- homeassistant --remove

On a server where vigiora-install is already installed, this is the same:

Terminal on the server
sudo vigiora-install homeassistant --remove

It removes the helper's systemd units and program. It keeps:

  • Docker, which stays installed;
  • any Home Assistant configuration left behind, moved to a backup folder under /var/lib/vigiora-homeassistant/backups, never deleted;
  • earlier backups and the helper's log.

It refuses while a Home Assistant container is still there. Uninstall it in Vigiora first, or add --force to remove the container too. Running it twice is harmless.

Rediger denne side på GitHub