1
0
Fork 0
home-stack-ansible/home-assistant/binary_sensors/anyone_home.yaml

6 lines
210 B
YAML

- platform: template
sensors:
anyone_home:
device_class: occupancy
friendly_name: 'Anyone Home'
value_template: "{{ states.person | selectattr('state','eq','home') | list | count > 0 }}"