[occupancy] Fix notification when nobody's home
This commit is contained in:
parent
d43088b5c8
commit
324979f5fd
|
@ -68,7 +68,10 @@ automation:
|
|||
data_template:
|
||||
title: Occupancy
|
||||
message: >-
|
||||
{% set occupants = states.sensor.occupants.state.split(', ')
|
||||
{% set occupants
|
||||
= states.sensor.occupants.state.split(', ')
|
||||
| select
|
||||
| list
|
||||
%}
|
||||
{% if occupants | length == 0 %}
|
||||
Nobody is home
|
||||
|
|
Loading…
Reference in New Issue