Allow weather alerts when everyone is sleeping except me
This commit is contained in:
@ -246,6 +246,8 @@ template:
|
|||||||
state: >
|
state: >
|
||||||
{% if is_state('input_boolean.audible_notifications','on') %}
|
{% if is_state('input_boolean.audible_notifications','on') %}
|
||||||
true
|
true
|
||||||
|
{% elif is_state('binary_sensor.basement_occupied','on') %}
|
||||||
|
true
|
||||||
{% elif states('sensor.people_sleeping_total') | int == 3 %}
|
{% elif states('sensor.people_sleeping_total') | int == 3 %}
|
||||||
false
|
false
|
||||||
{% elif is_state('input_boolean.kallen_overnight','on') and (states('sensor.people_sleeping_total') | int == 2) %}
|
{% elif is_state('input_boolean.kallen_overnight','on') and (states('sensor.people_sleeping_total') | int == 2) %}
|
||||||
|
Reference in New Issue
Block a user