Comments on: Monitoring Website Status in Home Assistant https://www.soulatech.com/blog/monitoring-website-status-in-home-assistant/ Mastering Technology, Systems, Automation and Beyond Thu, 09 Jul 2026 12:28:13 +0000 hourly 1 https://wordpress.org/?v=7.1.1 By: Bazar https://www.soulatech.com/blog/monitoring-website-status-in-home-assistant/comment-page-1/#comment-5038 Thu, 09 Jul 2026 12:28:13 +0000 https://www.soulatech.com/?p=514#comment-5038 In reply to Pee82.

Hey, thanks for the comment and sorry for late reply. Enything that has to do with config or code – AI is your best bet to avoid waiting and getting good answer instantly. Here is an example with IP. I havenet’s tested it, but it should work


command_line:
- sensor:
name: Web Example Check
unique_id: web_example_check
command: >
code=$(curl --max-time 10 -s -o /dev/null -w "%{http_code}"
--resolve example.com:443:104.20.23.154
https://example.com);
if [ "$code" = "200" ]; then echo "online @ $(date -Iseconds)"; else echo "offline @ $(date -Iseconds)"; fi
scan_interval: 61

]]>
By: Pee82 https://www.soulatech.com/blog/monitoring-website-status-in-home-assistant/comment-page-1/#comment-4552 Mon, 22 Jun 2026 06:05:04 +0000 https://www.soulatech.com/?p=514#comment-4552 Great tutorial thank you.
What would be the curl command for IP address reply?
Above does not work for IP’s, only web domains…

]]>