Notifications to 'parents' group now respects if wife is at work

This commit is contained in:
2022-10-01 20:16:52 -04:00
parent 3d182c19db
commit eb414c60b3

View File

@ -314,7 +314,12 @@ script:
entity_id: input_boolean.text_notify_parents entity_id: input_boolean.text_notify_parents
state: 'on' state: 'on'
then: then:
- service: notify.ios_parents - service: >
{% if is_state('input_boolean.text_notify_tina','off') %}
notify.ios_tony
{% else %}
notify.ios_parents
{% endif %}
data: data:
title: '{{ title }}' title: '{{ title }}'
message: '{{ message }}' message: '{{ message }}'