Trying to improve reliability to lightning detection and cleaning up yaml
This commit is contained in:
parent
6048d5f7bc
commit
f4e8a135f9
|
@ -8,7 +8,6 @@ automation:
|
||||||
# Using the HACS Daily Snapshot Clean Up Plugin
|
# Using the HACS Daily Snapshot Clean Up Plugin
|
||||||
- id: daily_snapshot_clean_up
|
- id: daily_snapshot_clean_up
|
||||||
alias: Daily snapshot clean up
|
alias: Daily snapshot clean up
|
||||||
initial_state: 'on'
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '03:00:00'
|
at: '03:00:00'
|
||||||
|
@ -18,7 +17,6 @@ automation:
|
||||||
# Morning Entity Refresh - For all those sensors that need a little push
|
# Morning Entity Refresh - For all those sensors that need a little push
|
||||||
- id: daily_entity_refresh
|
- id: daily_entity_refresh
|
||||||
alias: Daily Entity Refresh
|
alias: Daily Entity Refresh
|
||||||
initial_state: 'on'
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '04:30:00'
|
at: '04:30:00'
|
||||||
|
@ -31,18 +29,26 @@ automation:
|
||||||
# Nightly Entity Refresh - For all those sensors that need a little push
|
# Nightly Entity Refresh - For all those sensors that need a little push
|
||||||
- id: daily_entity_refresh2
|
- id: daily_entity_refresh2
|
||||||
alias: Daily Entity Refresh2
|
alias: Daily Entity Refresh2
|
||||||
initial_state: 'on'
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '17:00:00'
|
at: '17:00:00'
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.update_entity
|
- service: homeassistant.update_entity
|
||||||
entity_id: sensor.school_tomorrow
|
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
|
# startup auotmations to update some custom sensors due to new order of home assistant firing up
|
||||||
- id: startup_automations
|
- id: startup_automations
|
||||||
alias: startup_automations
|
alias: startup_automations
|
||||||
initial_state: 'on'
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: homeassistant
|
platform: homeassistant
|
||||||
event: start
|
event: start
|
||||||
|
|
Loading…
Reference in New Issue