From c933e1b5664e7f3fcafffa345a1682ea01be5dc6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Fri, 10 Apr 2020 13:38:28 -0400 Subject: [PATCH] Fixing bug with new today is sensor not updating as expected --- config/packages/daily.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/config/packages/daily.yaml b/config/packages/daily.yaml index 5752d85..8244b8f 100755 --- a/config/packages/daily.yaml +++ b/config/packages/daily.yaml @@ -5,17 +5,6 @@ # @description : Maint Automation that occurs every day ############################################################################### automation: - # # Reset Daily Weather Alerts at 3am -> Replaced with better solution in weather_alerts_nws.yaml - # - id: reset_weather_alerts - # alias: Reset Weather Alerts - # initial_state: true - # trigger: - # - platform: time - # at: '03:00:01' - # action: - # - service: input_boolean.turn_off - # entity_id: input_boolean.freeze_warning - # Using the HACS Daily Snapshot Clean Up Plugin - id: daily_snapshot_clean_up alias: Daily snapshot clean up @@ -27,5 +16,16 @@ automation: action: - service: clean_up_snapshots_service.clean_up - + # Nightly 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: '00:01:45' + condition: + action: + - service: homeassistant.update_entity + entity_id: sensor.today_is + \ No newline at end of file