thewatchman icon indicating copy to clipboard operation
thewatchman copied to clipboard

What is the Execution frequency and can it be modified?

Open benquan opened this issue 1 year ago • 1 comments
trafficstars

I have been searching for the execution frequency of the report and possibly a modifiable parameter, but could not find it. Is there an option for this?

benquan avatar Jul 20 '24 11:07 benquan

Hi @benquan , the new report isn’t generated automatically unless you explicitly invoke the service. By setting up an automation, you can run it at your desired frequency. However, Watchman keeps the state of entities from the previous report in memory and can update them automatically when specific events occur so that the missing entities/services sensor shows the actual numbers:

  1. When an entity from the list of previously parsed configuration entities changes its state from unavailable/missing to available or vice versa.
  2. When the user reloads the configuration.
  3. When Home Assistant starts. Hope this helps.

dummylabs avatar Jul 24 '24 17:07 dummylabs

Hi @benquan , the new report isn’t generated automatically unless you explicitly invoke the service. By setting up an automation, you can run it at your desired frequency. However, Watchman keeps the state of entities from the previous report in memory and can update them automatically when specific events occur so that the missing entities/services sensor shows the actual numbers:

  1. When an entity from the list of previously parsed configuration entities changes its state from unavailable/missing to available or vice versa.
  2. When the user reloads the configuration.
  3. When Home Assistant starts. Hope this helps.

Hi Dummylabs, i'm trying to receive a notification whenever a device or a service is missing. I've tried to set up an automation (see sscreenshot) that triggers the creation of the report when the number of devices or services missing changes but it never triggers? Can you help me to make it works? Thanks!!

Screenshot 2024-10-30 alle 18 23 14

Adavidebaba avatar Oct 30 '24 17:10 Adavidebaba

Hi @benquan,

To trigger this automation, two conditions must be met:

  1. At least one entity or service must change its state to unavailable or unknown while your automation is running.
  2. This entity/service must be referenced in your configuration files (or dashboards) for Watchman to monitor it. This integration does not report missing entities/services that are not used in Home Assistant configuration files or dashboards, as per its intended purpose.

dummylabs avatar Nov 14 '24 13:11 dummylabs