Improved handling of "nerds" notification group #69

This commit is contained in:
2023-01-30 17:41:59 -05:00
parent b3334d531a
commit 2f5687da78

View File

@ -283,7 +283,14 @@ script:
entity_id: input_boolean.text_notify_nerds
state: 'on'
then:
- service: notify.ios_nerds
- service: >
{% if is_state('input_boolean.text_notify_tony','on') and is_state('input_boolean.text_notify_kallen','off') %}
notify.ios_tony
{% elif is_state('input_boolean.text_notify_tony','off') and is_state('input_boolean.text_notify_kallen','on') %}
notify.ios_kallen
{% elif is_state('input_boolean.text_notify_tony','on') and is_state('input_boolean.text_notify_kallen','on') %}
notify.ios_nerds
{% endif %}
data:
title: '{{ title }}'
message: '{{ message }}'