Monitoring behind NAT
Keep track of private servers and home labs without opening ports.
Use case
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.
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.
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.
homeassistant:
packages: !include_dir_named packagesrest_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: singleturnit_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.
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.
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.
Create a device to get your own heartbeat URL and setup instructions.