{"id":881,"date":"2022-09-19T12:16:19","date_gmt":"2022-09-19T10:16:19","guid":{"rendered":"http:\/\/cln.io\/blog\/?p=881"},"modified":"2022-11-14T18:40:03","modified_gmt":"2022-11-14T16:40:03","slug":"monitoring-home-assistant-with-uptimerobot","status":"publish","type":"post","link":"https:\/\/cln.io\/blog\/monitoring-home-assistant-with-uptimerobot\/","title":{"rendered":"Monitoring Home Assistant with UptimeRobot ( heartbeat monitor)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I\u2019m very pleased with&nbsp;<a href=\"https:\/\/uptimerobot.com\/?rid=36a5594a8c1fa2\" target=\"_blank\" rel=\"noreferrer noopener\">UptimeRobot<\/a>&nbsp;[affiliate link] and their heartbeat monitoring.<br>It\u2019s an URL you need to call\/visit every x minutes\/hours\/days, whatever you want, and if its not hit within x time, outside of the grace period, it will alert you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.home-assistant.io\/integrations\/rest_command\/\" target=\"_blank\" rel=\"noreferrer noopener\">The RESTful integration<\/a> is our magic glue here<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve added a rest_command to my config.yml<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"435\" height=\"54\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-54.png\" alt=\"\" class=\"wp-image-882\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-54.png 435w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-54-300x37.png 300w\" sizes=\"auto, (max-width: 435px) 100vw, 435px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">code to copy for you:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">rest_command:\n    uptimerobot_heartbeat:\n        url: \"https:\/\/heartbeat.uptimerobot.com\/xxx\"<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">give home assistant a quick restart, or whatever you have to do reload the config &#x1f643;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"671\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-55.png\" alt=\"\" class=\"wp-image-884\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-55.png 690w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-55-300x292.png 300w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><figcaption class=\"wp-element-caption\">go and create a new automation<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"248\" height=\"271\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-56.png\" alt=\"\" class=\"wp-image-886\"\/><figcaption class=\"wp-element-caption\">add a &#8220;Time Pattern&#8221; trigger<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"344\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-57-1024x344.png\" alt=\"\" class=\"wp-image-887\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-57-1024x344.png 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-57-300x101.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-57-768x258.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-57.png 1065w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"335\" height=\"264\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-59.png\" alt=\"\" class=\"wp-image-890\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-59.png 335w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-59-300x236.png 300w\" sizes=\"auto, (max-width: 335px) 100vw, 335px\" \/><figcaption class=\"wp-element-caption\">Use &#8220;Call service&#8221; as an action<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"259\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-58-1024x259.png\" alt=\"\" class=\"wp-image-891\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-58-1024x259.png 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-58-300x76.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-58-768x194.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-58.png 1068w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">pick the service we created in the config (if its not there, make sure to give hassio a quick reboot)<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"476\" height=\"469\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-60.png\" alt=\"\" class=\"wp-image-892\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-60.png 476w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/image-60-300x296.png 300w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Here is the YAML of the automation<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">alias: UptimeRobot ping heartbeat every minute\ndescription: \"\"\ntrigger:\n  - platform: time_pattern\n    hours: \"*\"\n    minutes: \"*\"\n    seconds: \"0\"\ncondition: []\naction:\n  - service: rest_command.uptimerobot_heartbeat\n    data: {}\nmode: single<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"737\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/stephen-dawson-qwtCeJ5cLYs-unsplash-1024x737.jpg\" alt=\"\" class=\"wp-image-896\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/stephen-dawson-qwtCeJ5cLYs-unsplash-1024x737.jpg 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/stephen-dawson-qwtCeJ5cLYs-unsplash-300x216.jpg 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/stephen-dawson-qwtCeJ5cLYs-unsplash-768x553.jpg 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/stephen-dawson-qwtCeJ5cLYs-unsplash-1536x1105.jpg 1536w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/09\/stephen-dawson-qwtCeJ5cLYs-unsplash-2048x1474.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Photo by <a href=\"https:\/\/unsplash.com\/@dawson2406?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noreferrer noopener\">Stephen Dawson<\/a> on <a href=\"https:\/\/unsplash.com\/s\/photos\/data?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noreferrer noopener\">Unsplash<\/a><\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019m very pleased with&nbsp;UptimeRobot&nbsp;[affiliate link] and their heartbeat monitoring.It\u2019s an URL you need to call\/visit every x minutes\/hours\/days, whatever you want, and if its not hit within x time, outside of the grace period, it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":897,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,26,38],"tags":[],"class_list":["post-881","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation","category-homeassistant","category-it","category-monitoring"],"_links":{"self":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/comments?post=881"}],"version-history":[{"count":12,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/881\/revisions"}],"predecessor-version":[{"id":1040,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/881\/revisions\/1040"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/media\/897"}],"wp:attachment":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/media?parent=881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/categories?post=881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/tags?post=881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}