casatorch.com

Health and self-repair

Settings › Health checks your CasaTorch every 15 minutes, fixes what it can with a tap, keeps copies of your settings, and repairs itself.

Settings › Health on the demo house: a summary at the top, then This device, Connections and Keeping safe, each check green or amber, with a Make a backup button

CasaTorch keeps an eye on itself. Settings › Health shows, in one place, whether everything is working - and when something isn't, it says what in one plain sentence and, where it can, offers a Fix it button. Behind the scenes it also keeps copies of your settings and repairs the most common problems on its own. All of this happens on your CasaTorch; nothing is sent anywhere. New in 0.7.1

Who sees it: the owner and admins. Health is part of Basic - every CasaTorch has it.

Open Health

  1. Open Settings and choose Health, right below General.
  2. Read the summary at the top. Everything is working, or how many things need a look. It also says when it last checked.
  3. Press Check again to run every check right now, for example after you've fixed something.

The 15 checks

Each check is green (OK), amber (needs a look), red (not working) or gray (not checked - for example, there's nothing to check yet). Checks for things you haven't set up don't appear.

CheckWhat it looks atFix it button
This device
Storage spaceHow much disk space is free, and what CasaTorch itself uses: 3D plans and scans, photos, history, the Family board, the map cache and so on. Amber when it's getting low, red when it's almost full - a full disk means CasaTorch can't save settings, history or camera pictures.Free up space
MemoryHow much memory CasaTorch uses, and how much the device has free.Restart CasaTorch
ClockWhether this device's clock is right, compared with the time casatorch.com or your Home Assistant gives. A wrong clock breaks sign-ins, certificates and schedules.-
Data folderWhether CasaTorch can still save in its data folder (not full, not read-only, allowed to write).Free up space when it's full
Settings fileWhether your settings file is readable and every saved password and key in it still unlocks, and how many copies are in your settings history.Save a copy now, Put back the last good copy or See saved copies
Sign-insWhether there's an owner login.See saved copies
Connections
InternetWhether CasaTorch is online. If not, everything at home keeps working; weather, headlines and updates wait until it's back.-
Home AssistantWhether Home Assistant answers and still accepts CasaTorch's token, and whether instant updates are on.Try again or Sign in again
Philips HueWhether the Hue bridge answers and still knows CasaTorch.Try again or Pair again
ShellyWhether each Shelly device answers.Try again
FrigateWhether Frigate answers and accepts CasaTorch's username and password.Try again or Enter them again
YoLinkWhether YoLink still accepts CasaTorch's UAID and Secret Key.Try again or Enter them again
Keeping safe
Security certificatesWhen the next certificate runs out: your secure address at home (it renews itself) and any camera certificate you trusted, like Frigate's.-
BackupWhen you last made a backup file. Amber if there's none yet, or it's more than 60 days old. In the Home Assistant add-on, Home Assistant's own backups include CasaTorch.Make a backup
UpdatesWhether a newer CasaTorch is available, or update checks are off.See the update or Check now

A check that isn't green also says why it matters and what to do, in the same plain words as setup's How to fix.

What the Fix it buttons do

  • Try again checks that connection again straight away (and gives Home Assistant's live connection a nudge).
  • Sign in again, Pair again or Enter them again asks for your CasaTorch password, then opens setup at exactly that connection. Everything else stays as it is.
  • Free up space removes only things CasaTorch made itself and no longer needs: copies kept from restores and damaged files set aside more than 30 days ago, leftover temporary files and an unfinished backup. It never touches your photos, 3D scans or history. If that isn't enough, it tells you what else you could do.
  • Save a copy now adds your current settings to the settings history.
  • Put back restores a saved copy (owner only) - see Settings history.
  • Restart CasaTorch restarts it; the page reconnects in a few seconds. (Not offered if you started CasaTorch by hand.)
  • Make a backup, See the update and Check now take you to Settings › Updates & backup, or check for updates right there.

Alerts when something breaks

  • Every 15 minutes CasaTorch runs all the checks by itself (the first time about two minutes after it starts).
  • Tries again first. A connection that stops answering is tried again after 1 minute, then 2, 4, 8 and 16, and then every 30 minutes - so a quick blip often fixes itself before anyone notices.
  • One alert, not a flood. If something is still red on the next check, you get one alert that says what needs a look - or, if several things broke at once, one alert that lists them. It goes wherever your alerts go: every screen, and phones with alerts turned on.
  • And one when it's fixed, like Fixed: Home Assistant is answering again.

Security score

Next version A card in Health that shows which protections are on: sign-in, two-step sign-in, the secure address, where the secret key is kept, updates, backups, access from away from home, the activity log and CasaTorch's own files. Each one that's off has a button to turn it on or open the right setting. It also notes whether the approved-devices protection is on, and if the activity log shows an event that was changed or removed by anything other than CasaTorch.

Settings history

CasaTorch keeps copies of your settings, your sign-ins and the key that unlocks your saved passwords, on the device itself. A copy is made:

  • whenever your settings change (checked every 10 minutes),
  • when CasaTorch starts, and before it starts a new version,
  • before and right after setup changes,
  • before an older copy is put back, so you can always switch back,
  • and whenever you press Save a copy now.

It keeps the newest 10, plus one a day for the last two weeks. The Settings history card in Health lists them with the time and why each was made. To go back, press Put back next to one (owner only) and confirm. Your current settings are saved first, then CasaTorch restarts with the older ones.

Settings history is not a backup. It lives on the same device. If the device fails or is lost, only a backup file you kept somewhere else can bring everything back. Health reminds you if you don't have a recent one.

What CasaTorch repairs by itself

Each time it starts, CasaTorch checks its own files. What it fixed is listed in Health under Fixed by itself, and in its log.

  • A damaged settings or sign-in file - say, from a power cut in the middle of saving - is set aside (renamed, never deleted), and the last good copy is used instead: the save that was cut off if it's complete, or the newest good copy from your settings history.
  • Any other damaged file - your calendar, the Family board, reminders, history, the 3D plan and the rest: it is set aside too (never deleted). If the save that was cut off is complete, CasaTorch uses it; otherwise that part starts again empty and Health says which, so you can restore it from a backup.
  • A dropped connection to Home Assistant. If Home Assistant's live connection goes quiet (its computer lost power, Wi-Fi dropped), CasaTorch notices within about a minute and a half, asks Home Assistant every few seconds instead, and reconnects by itself - so screens never show old states as if they were current.
  • A key that doesn't match. If the key file that unlocks your saved passwords was replaced, CasaTorch puts back the matching key from your settings history. The other one is kept aside. CasaTorch never overwrites a key file.
  • A crash loop after a change. If CasaTorch stops within a minute and a half of starting, three times in a row, right after its settings changed, it goes back to the settings it last ran well with. The newer ones stay in your settings history.
  • Stuck. A separate watchdog restarts CasaTorch if it stops responding for two minutes. On the Box, Raspberry Pi, Linux, Docker, Home Assistant, Mac and Windows the system starts it again straight away.

If there's no good copy to go back to, Health says so and suggests restoring a backup or entering the affected passwords again.

Privacy

Health runs entirely on your CasaTorch. The clock check only reads the time from casatorch.com's (or your Home Assistant's) answer; nothing about your home is sent. Settings history copies are owner-only files in CasaTorch's data folder, and saved passwords inside them stay encrypted. More in Security and encryption.

Something unclear or wrong? E-mail [email protected] and we'll fix the page, or ask in our Discord community.