Added K to the "people away" sensor

This commit is contained in:
2022-11-21 19:09:04 -05:00
parent 26f61d2ded
commit 58b556f439

View File

@ -152,11 +152,12 @@ sensor:
friendly_name: "People" friendly_name: "People"
unit_of_measurement: 'away' unit_of_measurement: 'away'
value_template: >- value_template: >-
{% set adults = [ {% set people = [
states.person.tony_stork, states.person.tony_stork,
states.person.christina_stork, states.person.christina_stork,
states.person.kallen_stork,
] %} ] %}
{{ adults | selectattr('state','ne','home') | list | count }} {{ people | selectattr('state','ne','home') | list | count }}
mqtt: mqtt:
sensor: sensor: