Add day camp automation scripts and configuration

This commit is contained in:
2025-06-25 10:02:29 -04:00
parent 26249cc46a
commit a4d5450b8b
4 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
- check_day_camp:
sequence:
- service: calendar.list_events
data:
start_date: "{{ now().date() }}"
end_date: "{{ (now() + timedelta(days=1)).date() }}"
target:
entity_id: calendar.family_events
response_variable: events
- choose:
- conditions:
- condition: template
value_template: >
{{ events.events | selectattr('summary', 'search', 'Camp') | rejectattr('summary', 'search', 'No') | list | count > 0 }}
sequence:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.day_camp_today
default:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.day_camp_today