Use case

Know when Home Assistant can no longer check in

When power or internet fails, Home Assistant may be unable to send its own warning. An external observer can notice that its regular heartbeat is missing.

One signal from Home Assistant Core

Let an automation inside Core send a small HTTPS request to TurnIt on a repeating schedule. If the home connection fails, the host loses power or Core stops running that automation, the check-ins stop. TurnIt can then send an alert from outside your home.

A single missing signal does not distinguish these causes. It also does not establish that every integration or entity is working. Its purpose is to observe whether Core can run the automation and reach the external endpoint.

A separate heartbeat container can keep running when Core has stopped. For this use case, send from Core itself. You do not need to expose Home Assistant to the internet or install a dedicated TurnIt integration.

Add a package with a REST command and automation

  1. Create an account, then add a device with a name you will recognize in an alert.
  2. Choose and save the heartbeat interval and alert delay. These examples use 60 seconds between requests; match your sender to the saved settings. The alert delay must be at least twice the heartbeat interval and leave room for network delays.
  3. Open Heartbeat setup on the device. The dashboard provides commands with your URL and selected interval already filled in.

Replace YOUR_DEVICE_KEY with the value after v= in your device’s heartbeat URL, including the account and device identifiers. The TurnIt endpoint is already filled in. Keep your personal URL private.

Send the heartbeat from Home Assistant Core itself to monitor its ability to reach TurnIt. Create a packages folder in your configuration directory. Merge the packages entry into your existing homeassistant block; if you already load packages, use that setup instead. Add the package and secret below, check your configuration, then restart Home Assistant Core. Reloading automations alone does not load the initial package. An extended restart can trigger an alert. A missing heartbeat can indicate power, internet or Core trouble, but cannot identify the cause or check every connected device.

configuration.yaml
homeassistant:
  packages: !include_dir_named packages
packages/turnit.yaml
rest_command:
  turnit_heartbeat:
    url: !secret turnit_heartbeat_url
    method: get
    timeout: 5
    verify_ssl: true

automation:
  - id: turnit_heartbeat
    alias: "TurnIt heartbeat"
    triggers:
      - trigger: time_pattern
        minutes: "/1"
    actions:
      - action: rest_command.turnit_heartbeat
    mode: single
secrets.yaml
turnit_heartbeat_url: "https://api.turnit.app/api/send?v=YOUR_DEVICE_KEY"

These public examples run every minute. In the dashboard, the Home Assistant tab generates the matching time pattern for the saved or previewed interval. Save any setting change before copying it into Home Assistant.

Check the first heartbeat after restarting Core

Once Core is running again, wait for the next scheduled minute and check Last heartbeat in TurnIt. You can inspect the automation’s trace in Home Assistant if it does not run. A REST request error points to the request or network path; no trace suggests the automation did not execute.

Allow enough alert delay for brief restarts and network interruptions. An alert may arrive while your home internet is down; viewing it still requires an email connection, such as mobile data.

Do I need a heartbeat for each ESPHome device?

Home Assistant can already observe the devices it manages. This Core heartbeat adds an outside view of the overall path. For an ESP32 operating without Home Assistant, use the direct ESPHome guide.

Configuration references: RESTful Command, Time pattern and Home Assistant packages.

Give your device a way to check in

Create a device to get your own heartbeat URL and setup instructions.