- check_day_camp: sequence: - choose: - conditions: - condition: template value_template: > {{ states('calendar.family_events') == 'on' and 'Camp' in (state_attr('calendar.family_events', 'message') | default('')) and 'No' not in (state_attr('calendar.family_events', 'message') | default('')) }} 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