diff --git a/config/packages/daily.yaml b/config/packages/daily.yaml index 8244b8f..2bea296 100755 --- a/config/packages/daily.yaml +++ b/config/packages/daily.yaml @@ -12,7 +12,6 @@ automation: trigger: - platform: time at: '03:00:00' - condition: action: - service: clean_up_snapshots_service.clean_up @@ -22,10 +21,10 @@ automation: initial_state: 'on' trigger: - platform: time - at: '00:01:45' - condition: + at: '04:30:00' action: - service: homeassistant.update_entity entity_id: sensor.today_is - + - service: homeassistant.update_entity + entity_id: sensor.holiday \ No newline at end of file diff --git a/config/sensors/house.yaml b/config/sensors/house.yaml index a2e3f50..85e04aa 100755 --- a/config/sensors/house.yaml +++ b/config/sensors/house.yaml @@ -92,7 +92,7 @@ days: 7 - platform: history_stats name: Speech time - entity_id: media_player.theater + entity_id: media_player.ha_speaker state: 'playing' type: time end: '{{ now() }}' @@ -298,4 +298,13 @@ today_is: friendly_name: 'Today is' value_template: "{{ ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] }}" - + holiday: + friendly_name: 'Holiday' + value_template: >- + {% if states.calendar.holidays_in_united_states.state == 'on' %} + {{ states.calendar.holidays_in_united_states.attributes.message }} + {% elif states.calendar.anchorage_holidays.state == 'on' %} + {{ states.calendar.anchorage_holidays.attributes.message }} + {% else %} + none + {% endif %} \ No newline at end of file