From e8540c6384350d01d418efc03d6411c4d830c56a Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 5 May 2022 17:21:55 -0400 Subject: [PATCH] Automation and script to run Watchman --- automations.yaml | 17 +++++++++++++++++ scripts.yaml | 9 +++++++++ 2 files changed, 26 insertions(+) diff --git a/automations.yaml b/automations.yaml index 6d398b2..5d91aef 100644 --- a/automations.yaml +++ b/automations.yaml @@ -411,3 +411,20 @@ - service: speedtestdotnet.speedtest data: {} mode: single +- id: '1651785688186' + alias: Watchman Audit on Startup + description: Runs the Watchman Audit script after Home Assistant has successfully + started up + trigger: + - platform: homeassistant + event: start + condition: [] + action: + - delay: + hours: 0 + minutes: 0 + seconds: 30 + milliseconds: 0 + - service: script.watchman_audit + data: {} + mode: single diff --git a/scripts.yaml b/scripts.yaml index 7fb24a0..5d85efc 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -371,3 +371,12 @@ manual_speed_test: data: {} mode: single icon: mdi:speedometer +watchman_audit: + alias: Watchman Audit + sequence: + - event: ad.watchman.audit + event_data: + send_notification: true + notify_service: notify.ios_tony + mode: single + icon: mdi:magnify