[occupancy] Fix notification when nobody's home

This commit is contained in:
Correl Roush 2018-07-03 10:40:15 -04:00
parent d43088b5c8
commit 324979f5fd
1 changed files with 4 additions and 1 deletions

View File

@ -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