diff --git a/config/packages/maintenance.yaml b/config/packages/maintenance.yaml index e8e5188..2280f7b 100755 --- a/config/packages/maintenance.yaml +++ b/config/packages/maintenance.yaml @@ -8,7 +8,6 @@ automation: # Using the HACS Daily Snapshot Clean Up Plugin - id: daily_snapshot_clean_up alias: Daily snapshot clean up - initial_state: 'on' trigger: - platform: time at: '03:00:00' @@ -18,7 +17,6 @@ automation: # Morning Entity Refresh - For all those sensors that need a little push - id: daily_entity_refresh alias: Daily Entity Refresh - initial_state: 'on' trigger: - platform: time at: '04:30:00' @@ -31,18 +29,26 @@ automation: # Nightly Entity Refresh - For all those sensors that need a little push - id: daily_entity_refresh2 alias: Daily Entity Refresh2 - initial_state: 'on' trigger: - platform: time at: '17:00:00' action: - service: homeassistant.update_entity entity_id: sensor.school_tomorrow + + # Store Lightning count + - id: refresh_total_lightning_count + alias: Refresh Total Lightning Count + trigger: + - platform: time_pattern + minutes: /30 + action: + - service: script.store_lightning_count + # startup auotmations to update some custom sensors due to new order of home assistant firing up - id: startup_automations alias: startup_automations - initial_state: 'on' trigger: platform: homeassistant event: start