Vome · CHAP
Docs Guides CHAP in motion

Two Home Assistants in your house

Keep a second Home Assistant ready in your house. When the first one stops — a dead box, a crashed install, a pulled plug — the second takes over within a couple of minutes, even with the internet down. When the first comes back, your home goes back to it by itself, with everything that changed in between.

What you need

1 Install Vome CHAP on both

If you use Vome, you already have the Vome repository in Home Assistant: skip to installing. If not, add it once on each machine — this button does it, or add https://github.com/Vortitron/VomeSync under Settings → Apps → App store → ⋮ → Repositories.

Then install Vome CHAP from the store on both machines and start it.

2 On the main install: choose main

On the Home Assistant that runs your home now, open Settings → Apps → Vome CHAP → Configuration, pick main and press Save. Home Assistant asks to restart the app: press Restart.

Vome CHAPInfoConfigurationLog

Options

Local pair
off
main
standby

Pair this Home Assistant with another one in your house, so one takes over when the other stops -- no Vome account needed. "main" on the one running your home (it then shows a pairing code), "standby" on the other. Leave "off" if you use CHAP through Vome.

Pairing code

On the standby only: the code the main install shows (it starts with vcp1.). Keep it private.

Save
Restart Vome CHAP?

The app needs to be restarted for the changes to take effect.

Cancel Restart

The Home Assistant screens on this page are redrawn from the real ones, word for word.

3 Copy the pairing code

A moment later the main install shows a notification with the pairing code. The same code is on the app's own page: Open Web UI on the app, or turn on Show in sidebar to keep it there.

Notifications
Vome CHAP: pair a standby

To make another Home Assistant in your house this one's standby, open its Vome CHAP add-on settings, set local_pair to standby and paste this code into pair_code:

vcp1.eyJhIjoiMTkyLjE2OC4xLjIwIiwicCI6ODE3NywiayI6IkxRNlZVelplUGRwd28xWEhkZnBNb2Y2aEhZMGhicUszd3RDWFZ1SmRYeEE9IiwiaSI6IjMzZmZiMTQxOTE3ZSIsIm4iOiJIb21lIEFzc2lzdGFudCBhdCAxOTIuMTY4LjEuMjAifQ

Keep it private: it lets an install take a copy of this one's configuration.

Dismiss
Vome CHAP

Keep the code private: anything that has it can take a copy of your home's configuration.

4 On the second machine: choose standby and paste the code

On the other Home Assistant, open Settings → Apps → Vome CHAP → Configuration, pick standby, paste the code into Pairing code, Save and Restart.

Vome CHAPInfoConfigurationLog

Options

Local pair
off
main
standby
Pairing codevcp1.eyJhIjoiMTkyLjE2OC4xLjIwIiwicCI6ODE3NywiayI6IkxRNlZVelplUGRwd28xWEhkZnBNb2Y2aEhZMGhicUszd3RDWFZ1SmRYeEE9IiwiaSI6IjMzZmZiMTQxOTE3ZSIsIm4iOiJIb21lIEFzc2lzdGFudCBhdCAxOTIuMTY4LjEuMjAifQ
Save

Within seconds the two meet over your house network. The standby then stops its own Home Assistant and the home's apps, and takes a copy of the main install's configuration. That is expected: from now on it waits, stopped, with an exact copy. SSH, File editor, Studio Code Server and Samba keep running so you can still reach it.

Made the standby from a backup of the main install? Pair it straight away: until it is paired, both run as the same home.

5 Check it is in step

Back on the main install, the Vome CHAP page now shows the standby, in step, ready to take over. Below, tick what the standby runs when it stands in: a smaller machine can run just what matters.

Vome CHAP

That's it. Nothing to set up on your router, no Vome account, and it keeps working with the internet down.

When the main install dies

The standby asks two questions every ten seconds: can I reach the main install? and can I reach the router? Only when the router answers and the main install does not — for two minutes together — does it take over. A standby that cannot reach the router either is the one cut off, and does nothing.

On a real pair, timed

Our test pair, with the main install's power pulled (times in UTC):

  1. The main install loses power.
  2. The standby is running your home: two minutes to be sure, then Home Assistant starts.
  3. Your Vome address follows it, if you use Vome.
  4. The main install is switched back on. It sees the home has moved and stops itself before its Home Assistant ever starts: the two never run together.
  5. Back and in step for three minutes: the standby stops, sending its last changes.
  6. Your home is back on the main install, about 40 seconds later.

Each install says so in a Home Assistant notification when it takes your home — “This Home Assistant is running your home” on the standby, “Back on …” on the main install — so you always know which one you are looking at.

Moving it yourself

To work on the main install — an update, new hardware — open the Vome CHAP page on it and press Move the home to …. Home Assistant stops there for a minute or two while its last changes go across, then starts on the standby: nothing is lost. The home stays there until you move it back the same way, from the Vome CHAP page on the standby.

Good to know