Files
Home-Assistant/scripts.yaml
T

45 lines
1.3 KiB
YAML
Raw Normal View History

2026-06-28 14:27:20 -04:00
check_day_camp:
alias: Check Day Camp
sequence:
- choose:
- conditions:
- condition: template
value_template: >-
{{ states('calendar.family_events') == 'on' and
'camp' in (state_attr('calendar.family_events', 'message') | lower) and
'no' not in (state_attr('calendar.family_events', 'message') | lower) }}
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
- service: system_log.write
data:
message: >
Calendar Check: State={{ states('calendar.family_events') }},
Message={{ state_attr('calendar.family_events', 'message')
| default('') }}
level: debug
notify_events_alerts:
alias: Notify.Events Alerts
fields:
message:
required: true
selector:
text:
title:
selector:
text:
sequence:
- action: notify.notify_events_alerts
data:
message: "{{ message }}"
title: "{{ title | default('Home Assistant') }}"
data:
token: !secret notify_event_alerts_token