Custom integration that checks if a website is reachable or not.
A website is considered OK only when an HTTP request returns with a response code in the 200-299 range. It is considered a problem if the HTTP request failed, returned a 404 (not found), or any other error code (including 3xx redirects, 4xx client errors, and 5xx server errors).
This integration is a fork of Websitechecker with enhanced functionality to add websites as devices through the UI.
- Add websites to monitor directly through the Home Assistant UI
- Each website is represented as a device in Home Assistant
- Monitor website availability with binary sensors
- Configure update intervals and SSL verification per website
The sensor offers the following additional attributes:
- url: The configured URL for this sensor
- last_status: Status of last update. Some possible values are "200 - OK" or "Connection error". More error values exist.
- last_error_status: Status of last error, allows to easily see what the last issue was if it came back already.
Recommended as you get notifications of updates
HACS is a 3rd party downloader for Home Assistant to easily install and update custom integrations made by the community. More information and installation instructions can be found on their site https://hacs.xyz/
- Add this repository https://github.com/ClermontDigital/webcheck to HACS as a "custom repository" with category "integration". This option can be found in the ⋮ menu
- Install the integration from within HACS
- Add the integration through the Home Assistant UI under "Configuration" -> "Integrations"
- Restart Home Assistant
- Extract the Zip file in the
custom_componentsdirectory - Restart Home Assistant
- Add the integration through the Home Assistant UI under "Configuration" -> "Integrations"
- Go to "Configuration" -> "Integrations" in the Home Assistant UI
- Click the "+ Add Integration" button
- Search for "WebCheck" and select it
- Enter the URL of the website you want to monitor
- Optionally provide a custom name, update interval, and SSL verification setting
- Click "Submit"
- Repeat steps 2-6 for each website you want to monitor
webcheck:
websites:
- url: https://example.com
name: Optional friendly name
- url: http://does_not_exist.com
- url: http://192.168.178.4:9000 # URLs with non-standard ports also workAdvanced configuration:
webcheck:
update_interval: 10 # Optional, value in minutes, defaults to 10
websites:
- url: https://example.com
name: Optional friendly name
verify_ssl: false # Optional, default is true
- url: http://does_not_exist.com
update_interval: 5 # Optional, main `update_interval` used when not providedBecause the integration exposes normal sensors you can use Automations to get notified of issues. These type of automations are not specific for this integrations, so you can build automations as usual.
This example automation will send a notification to your mobile device when a monitored website changes status (either goes down or comes back up). Add this to your automations.yaml file or to the automation: section of your configuration.yaml:
# Add this to automations.yaml or to the automation: section of configuration.yaml
alias: "Website Status Change Notification"
description: "Send notification when a website status changes"
trigger:
- platform: state
entity_id: binary_sensor.home_assistant_website
action:
- service: notify.mobile_app_your_phone
data:
title: "Website Status Change"
message: >
Website: {{ trigger.to_state.attributes.url }}
Status: {{ trigger.to_state.attributes.last_status }}
{% if trigger.to_state.state == 'on' %}
⚠️ Website is DOWN
{% else %}
✅ Website is UP
{% endif %}
data:
# Optional: Add additional data for rich notifications
clickAction: /lovelace/devicesYou can customize this automation to fit your needs, such as:
- Only notify when the website goes down (add a condition to check if
trigger.to_state.state == 'on') - Include more information from the entity attributes
- Send notifications through different services (email, Telegram, etc.)
- Trigger other actions like turning on a light or playing a sound
Below are some links to related Home Assistant documentation.
- Automating Home Assistant
- Home Assistant Mobile App notifications
- Notification Blueprints on Home Assistant forums
- Home Assistant Core integrations that support notifications
When you have questions for automations or looking for examples ask/search on one of the Home Assistant Community channels like Forum, Discord or Reddit.



