{"id":245,"date":"2019-03-09T14:54:58","date_gmt":"2019-03-09T14:54:58","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/watchdog-documentation"},"modified":"2024-04-21T13:18:13","modified_gmt":"2024-04-21T11:18:13","slug":"watchdog-documentation","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation","title":{"rendered":"Watchdog Documentation Plugin"},"content":{"rendered":"<table style=\"width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 180px;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-225\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog.jpg\" alt=\"sonoffdiy icon\" width=\"150\" height=\"170\" \/><\/td>\n<td>\n<ul>\n<li><span style=\"background-color: #ffff99;\">Documentation<\/span><\/li>\n<li><a href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-changelog\/\">Todo-List \/ Changelog<\/a><\/li>\n<li><a href=\"https:\/\/community.jeedom.com\/tags\/plugin-watchdog\">Dedicated Forum<\/a><\/li>\n<li><a href=\"http:\/\/alexaapi.slack.com\">Beta-testing cat<\/a><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_90 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-6b02f925580a5\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6b02f925580a5\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Presentation_du_plugin\" >Presentation of the plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Installation_du_Plugin_Watchdog\" >Installation of the Watchdog Plugin<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Installer_le_Plugin_depuis_le_Market\" >Install the Plugin from the Market<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Configurer_chaque_Watchdog\" >Configure each Watchdog<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Premier_onglet_Watchdog\" >(First tab: Watchdog)<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Configurer_les_declenchements\" >Configure triggers<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Deuxieme_onglet_Equipements_ou_Commandes_a_surveiller\" >(Second tab: Equipment or Orders to be monitored)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Controles_a_effectuer\" >Checks to be carried out<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Configuration_des_tempos\" >Tempo configuration<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Configurer_les_actions\" >Configure actions<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Troisieme_onglet_Actions\" >(Third tab: Actions)<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Utilisation_du_log_specifique_a_chaque_Watchdog\" >Using the log specific to each Watchdog<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Utiliser_une_Resultat_Global_dans_les_scenarios\" >Using a [Global Result] in Scenarios<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Exemples_dutilisation_des_Watchdogs\" >Examples of the use of Watchdogs<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Controler_que_les_Nuts_sont_vivants\" >Controlling that the Nuts are alive<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Configuration_du_Watchdog\" >Configuration of the Watchdog:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Onglet_Equipements_a_surveiller\" >Equipment to watch tab<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Onglet_Commandes\" >Commands tab<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Controler_que_les_capteurs_XIAOMI_sont_actifs\" >Check that XIAOMI sensors are active<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Configuration_du_Watchdog-2\" >Configuration of the Watchdog:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Onglet_Equipements_a_surveiller-2\" >Equipment to watch tab<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Onglet_Commandes-2\" >Commands tab<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Controler_que_les_capteurs_RFXCOM_sont_actifs\" >Check that RFXCOM sensors are active<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Controler_les_equipements_du_reseau_local\" >Check the equipment of the local network<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Configuration_du_Watchdog-3\" >Configuration of the Watchdog:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Onglet_Equipements_a_surveiller-3\" >Equipment to watch tab<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/watchdog-documentation\/#Onglet_Commandes-3\" >Commands tab<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Presentation_du_plugin\"><\/span>Presentation of the plugin<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>This plugin will allow you to monitor your equipment, for example:<\/p>\n<ul>\n<li><strong>Check that your nuts are still active<br \/>\n<\/strong><\/li>\n<li><strong>Check that your sensors (regardless of their technology) are active<\/strong><\/li>\n<li><strong>Ensure that your network equipment is connected to the router<\/strong><\/li>\n<li><strong>&#8230;<\/strong><\/li>\n<\/ul>\n<p>Depending on the checks performed (automatically), you can schedule actions to be performed, modelled on a Jeedom scenario.<\/p>\n<h1><span class=\"ez-toc-section\" id=\"Installation_du_Plugin_Watchdog\"><\/span><a id=\"Installation\"><\/a>Installation of the Watchdog Plugin<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h3><span class=\"ez-toc-section\" id=\"Installer_le_Plugin_depuis_le_Market\"><\/span>Install the Plugin from the Market<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<table border=\"2\">\n<tbody>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-190\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/installationalexaapi1.png\" alt=\"installationalexaapi1\" width=\"617\" height=\"265\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Then go to the Market and select the version <strong>stable<\/strong> from <strong>Watchdog<\/strong><\/p>\n<p>Then <strong>Activate the plugin<\/strong><\/p>\n<h1><span class=\"ez-toc-section\" id=\"Configurer_chaque_Watchdog\"><\/span><a id=\"Configurer\"><\/a>Configure each Watchdog<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2><span class=\"ez-toc-section\" id=\"Premier_onglet_Watchdog\"><\/span><em>(First tab: Watchdog)<\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"text-decoration: underline;\">Note:<\/span> : There are no global configuration settings so it is not useful to go to the configuration tab, each Watchdog has its own configuration and is managed independently.<\/p>\n<p>Here are the fields you can find:<\/p>\n<ul>\n<li><strong>Name of the watchdog<\/strong><\/li>\n<li><strong>Parent object<\/strong><\/li>\n<li><strong>Category<\/strong><\/li>\n<li><strong>Activate<\/strong><\/li>\n<li><strong>Visible<\/strong><\/li>\n<li><strong>Self-updating (cron)<\/strong><\/li>\n<\/ul>\n<p>This field corresponds to the self-update rate, i.e. CRON, by default this field is <strong>*\/5 * * * *<\/strong> This means every 5 minutes, click on the question mark to use another refresh rate.<\/p>\n<p>To go further on the options of the crons, I invite you to browse <span style=\"text-decoration: underline;\"><a href=\"https:\/\/crontab.guru\/#*_*_*_*_*\" target=\"_blank\" rel=\"noopener noreferrer\">this Site<\/a><\/span><\/p>\n<ul>\n<li><strong>Last launch<\/strong><\/li>\n<\/ul>\n<p>This is information, this field cannot be edited by the user<\/p>\n<ul>\n<li><strong>Method of operation of controls<\/strong><\/li>\n<\/ul>\n<p>This choice is important because it determines how the moment when actions must be launched will be calculated. Initially, use\u00a0<strong>Actions on each control independently<\/strong> it is the easiest mode to understand, you will see later to use the other modes according to your own needs.<\/p>\n<p>The three modes are:<\/p>\n<ul style=\"list-style-type: circle;\">\n<li>Actions on each control independently: This mode independently tests each control and triggers actions when that control has changed state<\/li>\n<li>Actions on all controls (with OR method): This mode tests the overall result of the controls by applying an \"OR\" test between each control. It triggers actions when the overall result has changed state.<\/li>\n<li>Actions on all controls (with ET method): This mode tests the overall result of the controls by applying an \"ET\" test between each control. It triggers actions when the overall result has changed state.<\/li>\n<\/ul>\n<ul>\n<li><strong>Method of operation of the actions<\/strong><\/li>\n<\/ul>\n<p>This choice is important because it determines in which case the actions are triggered.<\/p>\n<p>The two modes are:<\/p>\n<ul style=\"list-style-type: circle;\">\n<li>Launch an action only if the control changes its value: This mode alerts you when the control performed has changed status<\/li>\n<li>Launch an action at each check depending on the result: This mode executes at each control the action that corresponds to the result of the control.<\/li>\n<\/ul>\n<h1><span class=\"ez-toc-section\" id=\"Configurer_les_declenchements\"><\/span><a id=\"Declenchements\"><\/a>Configure triggers<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2><span class=\"ez-toc-section\" id=\"Deuxieme_onglet_Equipements_ou_Commandes_a_surveiller\"><\/span><em>(Second tab: Equipment or Orders to be monitored)<\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This tab is divided into two parts:<span style=\"text-decoration: underline;\"><br \/>\n<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Controles_a_effectuer\"><\/span>Checks to be carried out<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this part, add all the controls you want. Each time a control is added, its result is displayed on the right in the Result column. If this result is neither True nor False, this control is poorly mapped and will be ignored.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Configuration_des_tempos\"><\/span>Tempo configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Tempos are variables that can be used in the calculation of expressions. Look at the examples below to understand the use of tempos.<\/p>\n<p>To use them, it is necessary to add <strong>#tempo1#<\/strong> to use the value of tempo1.<\/p>\n<h1><span class=\"ez-toc-section\" id=\"Configurer_les_actions\"><\/span><a id=\"commandes\"><\/a>Configure actions<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2><span class=\"ez-toc-section\" id=\"Troisieme_onglet_Actions\"><\/span><em>(Third tab: Actions)<\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are three types of order:<\/p>\n<ul>\n<li>The orders that will be launched as to the control will pass to <strong>TRUE<\/strong><\/li>\n<li>The orders that will be launched as to the control will pass to <strong>FALSE<\/strong><\/li>\n<li>Orders that will be launched <strong>BEFORE<\/strong> control (e.g. Refresh commands)<\/li>\n<\/ul>\n<h1><span class=\"ez-toc-section\" id=\"Utilisation_du_log_specifique_a_chaque_Watchdog\"><\/span><a id=\"log\"><\/a>Using the log specific to each Watchdog<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>To be able to follow the events of each Watchdog, a specific log has been created.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-226\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/log.png\" alt=\"log\" width=\"38\" height=\"38\" \/><\/p>\n<p>When you click on this icon, you will see the specific log of the Watchdog on which you are:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-227\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/log2.png\" alt=\"log2\" width=\"1001\" height=\"167\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/log2.png 1001w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/log2-600x100.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/log2-300x50.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/log2-768x128.png 768w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/p>\n<p>To select the actions that will be entered in the log, tick the 3rd box at the beginning of each action:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-228\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/log3.png\" alt=\"log3\" width=\"483\" height=\"254\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/log3.png 483w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/log3-300x158.png 300w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/p>\n<p><span style=\"text-decoration: underline;\">Note:<\/span> :To date, only the \"title\" and \"message\" information is added to this log. If you need more information, please do not hesitate to contact <strong>Sigalou<\/strong><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Utiliser_une_Resultat_Global_dans_les_scenarios\"><\/span>Using a [Global Result] in Scenarios<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Each Wathdog can have three modes of operation, in modes that evaluate overall results: And and OR, it may be interesting to retrieve the result of this test to use it in a scenario.<\/p>\n<p>A new info command has been created for this purpose: [Global result].<\/p>\n<h1><span class=\"ez-toc-section\" id=\"Exemples_dutilisation_des_Watchdogs\"><\/span><a id=\"Exemples\"><\/a>Examples of the use of Watchdogs<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2><span class=\"ez-toc-section\" id=\"Controler_que_les_Nuts_sont_vivants\"><\/span><a id=\"Nuts\"><\/a>Controlling that the Nuts are alive<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-229\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/nutmini.jpg\" alt=\"nutmini\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/nutmini.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/nutmini-100x100.jpg 100w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/nutmini-150x150.jpg 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>I use the Nuts to find out if we are at home or not.<\/p>\n<p>4 Nuts:<\/p>\n<ul style=\"list-style-type: circle;\">\n<li>1 Nut in the glove box of Monsieur's car<\/li>\n<li>1 Nut hanging on Monsieur's keys<\/li>\n<li>1 Nut in the glove box of Madame's car<\/li>\n<li>1 Nut hanging on Madame's keys<\/li>\n<\/ul>\n<p>The idea is to check that the nuts have manifested themselves in the last 12 hours. Otherwise, one can imagine that they no longer have a battery.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Configuration_du_Watchdog\"><\/span>Configuration of the Watchdog:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-230\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog1bis.png\" alt=\"watchdog1bis\" width=\"627\" height=\"335\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog1bis.png 627w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog1bis-600x321.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog1bis-300x160.png 300w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/p>\n<p>In this configuration, I launch the control every 2 hours.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-231\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2.png\" alt=\"watchdog2\" width=\"750\" height=\"52\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2.png 750w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2-600x42.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2-300x21.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/p>\n<p>I use this mode of operation because I want to control each Nut independently and the Watchdog plugin tells me which one has not responded in the last 12 hours.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Onglet_Equipements_a_surveiller\"><\/span>Equipment to watch tab<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Here, 4 nuts so 4 equipment to monitor so 4 controls.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-232\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog3.png\" alt=\"watchdog3\" width=\"765\" height=\"297\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog3.png 765w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog3-600x233.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog3-300x116.png 300w\" sizes=\"auto, (max-width: 765px) 100vw, 765px\" \/><\/p>\n<p>For example, I used the simple names of Nut, it\u2019s up to you to customize.<\/p>\n<p>The control is <strong>(#timestamp# \u2013 strtotime(collectdate(#[Internal equipment][Nut1][Present]#))) &gt; #tempo1#<\/strong><\/p>\n<p>You can either copy this check or use the wizard by clicking on the small green icon next to the check.<\/p>\n<p>This check will check whether the last time the Nut gave a sign of life is less than 12h or 43200 seconds, do not forget to specify this in tempo 1:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-233\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog4.png\" alt=\"watchdog4\" width=\"184\" height=\"76\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Onglet_Commandes\"><\/span>Commands tab<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>I chose to use Pushover to inform myself but this is adaptable by everyone.<\/p>\n<p>I therefore use the following commands:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-234\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog5.png\" alt=\"watchdog5\" width=\"980\" height=\"277\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog5.png 980w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog5-600x170.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog5-300x85.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog5-768x217.png 768w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/p>\n<p><span style=\"text-decoration: underline;\">Note:<\/span>, the name of the control may be used in the action: <strong>#controlname#<\/strong> = Name of the control that triggered the action, can also be used<strong> #title#<\/strong> = name of the Watchdog<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Controler_que_les_capteurs_XIAOMI_sont_actifs\"><\/span><a id=\"xiaomi\"><\/a>Check that XIAOMI sensors are active<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-235\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/xiaomi.jpg\" alt=\"xiaomi\" width=\"300\" height=\"247\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/xiaomi.jpg 500w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/xiaomi-300x247.jpg 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>I use two Gateways, aperture detectors, presence detectors, vibration detectors, water detectors, temperature\/hygro sensors, \u2026 buttons<\/p>\n<p>I propose to create a Watchdog for Xiaomi equipment, the only difference between them is the duration of the tempo that controls that the equipment is active.<\/p>\n<p>The Xiaomi plugin provided for the \u2018refresh\u2019 function to question the equipment and refresh the values. It should not be run every minute or the batteries will not finish the week, but for this type of equipment (unlike Nuts), it is useful to run a refresh before testing if the equipment is active.<\/p>\n<p>I only run a Refresh on equipment that may not have an update on its own. For example, the windows can remain closed for several days while the presence sensors move all the time. Therefore, the window sensors will be refreshed, not the presence sensors.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Configuration_du_Watchdog-2\"><\/span>Configuration of the Watchdog:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-236\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog6.png\" alt=\"watchdog6\" width=\"647\" height=\"340\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog6.png 647w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog6-600x315.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog6-300x158.png 300w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/p>\n<p>In this configuration, I launch the control every 4 hours.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-231\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2.png\" alt=\"watchdog2\" width=\"750\" height=\"52\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2.png 750w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2-600x42.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2-300x21.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/p>\n<p>I use this mode of operation because I want to control each Xiaomi independently.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Onglet_Equipements_a_surveiller-2\"><\/span>Equipment to watch tab<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Here, (for example) Two Gateways, a window sensor, a presence detector:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-237\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog7.png\" alt=\"watchdog7\" width=\"807\" height=\"507\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog7.png 807w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog7-600x377.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog7-300x188.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog7-768x482.png 768w\" sizes=\"auto, (max-width: 807px) 100vw, 807px\" \/><\/p>\n<p>The control is\u00a0<strong>(#timestamp# \u2013 strtotime(collectdate(#[Etage][Gateway Room][Online]#))) &gt; #tempo1#<\/strong><\/p>\n<p>You can either copy this check or use the wizard by clicking on the small green icon next to the check.<\/p>\n<p>This check will check whether the last time the equipment gave a sign of life is less than 10 minutes for Gateways and 12 hours for other equipment, do not forget to specify this in tempo1 and tempo2:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-238\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog8.png\" alt=\"watchdog8\" width=\"414\" height=\"86\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog8.png 414w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog8-300x62.png 300w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Onglet_Commandes-2\"><\/span>Commands tab<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>I chose to use Pushover to inform myself but this is adaptable by everyone.<\/p>\n<p>I therefore use the following commands:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-239\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog9.png\" alt=\"watchdog9\" width=\"1106\" height=\"276\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog9.png 1106w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog9-600x150.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog9-300x75.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog9-1024x256.png 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog9-768x192.png 768w\" sizes=\"auto, (max-width: 1106px) 100vw, 1106px\" \/><\/p>\n<p><span style=\"text-decoration: underline;\">Note:<\/span>, the name of the control may be used in the action: <strong>#controlname#<\/strong> = Name of the control that triggered the action, can also be used <strong>#title#<\/strong> = name of the Watchdog<strong><br \/>\n<\/strong><\/p>\n<p>Some equipment that must be refreshed because its condition does not necessarily move within the last 12 hours (for example a window or garage may remain closed). To do this, you can launch the commands <strong>Refresh<\/strong> which are intended to update the condition of the equipment:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-240\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog10.png\" alt=\"watchdog10\" width=\"661\" height=\"86\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog10.png 661w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog10-600x78.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog10-300x39.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/p>\n<h2><\/h2>\n<h2><span class=\"ez-toc-section\" id=\"Controler_que_les_capteurs_RFXCOM_sont_actifs\"><\/span><a id=\"Rfxcom\"><\/a>Check that RFXCOM sensors are active<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-241\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/rfxcom.png\" alt=\"rfxcom\" width=\"205\" height=\"141\" \/><\/p>\n<p>RFXCOM sensors work on the same principle as Nuts in this tutorial, so refer to the Nuts section.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Controler_les_equipements_du_reseau_local\"><\/span><a id=\"Reseau\"><\/a>Check the equipment of the local network<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>For this example, we will not reinvent hot water and we will rely on the plugin <strong>Network<\/strong>.<\/p>\n<p>All the equipment looks alike and we're going to test the Status value.<\/p>\n<p>If Value goes to <strong>0<\/strong> the ping did not work.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Configuration_du_Watchdog-3\"><\/span>Configuration of the Watchdog:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-242\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog11.png\" alt=\"watchdog11\" width=\"839\" height=\"303\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog11.png 839w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog11-600x217.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog11-300x108.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog11-768x277.png 768w\" sizes=\"auto, (max-width: 839px) 100vw, 839px\" \/><\/p>\n<p>In this configuration, I run the control every minute.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-231\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2.png\" alt=\"watchdog2\" width=\"750\" height=\"52\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2.png 750w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2-600x42.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog2-300x21.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/p>\n<p>I use the operating mode because I want to control each piece of equipment independently.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Onglet_Equipements_a_surveiller-3\"><\/span>Equipment to watch tab<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>All equipment is configured in the same way since it comes from the plugin <strong>Network<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-243\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog12.png\" alt=\"watchdog12\" width=\"522\" height=\"437\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog12.png 522w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog12-300x251.png 300w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/p>\n<p>When all goes well these lines will give True as a result, if a device no longer pings, the plugin will send 0 and give False.<\/p>\n<p><span style=\"text-decoration: underline;\">Note:<\/span> : timers are not configured in this example.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Onglet_Commandes-3\"><\/span>Commands tab<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>I chose to use Pushover to inform myself but this is adaptable by everyone.<\/p>\n<p>I therefore use the following commands:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-244\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog13.png\" alt=\"watchdog13\" width=\"901\" height=\"254\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog13.png 901w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog13-600x169.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog13-300x85.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/03\/watchdog13-768x217.png 768w\" sizes=\"auto, (max-width: 901px) 100vw, 901px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>Documentation Todo-List \/ Changelog Forum dedicated Chat beta-testers<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,23],"tags":[],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-domotique","category-jeedom-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}