mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
28 lines
658 B
YAML
28 lines
658 B
YAML
alias: People Count Changed
|
|
id: automation_people_count_changed
|
|
mode: queued
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: sensor.people_count
|
|
- platform: homeassistant
|
|
event: start
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: person.clint
|
|
state: "home"
|
|
- condition: numeric_state
|
|
entity_id: sensor.people_count
|
|
above: 0
|
|
below: 2
|
|
sequence:
|
|
- action: homeassistant.turn_on
|
|
entity_id: input_boolean.clint_home_alone
|
|
|
|
default:
|
|
- action: homeassistant.turn_off
|
|
entity_id: input_boolean.clint_home_alone
|