mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
25 lines
561 B
YAML
25 lines
561 B
YAML
alias: 'Ebin Home'
|
|
id: automation_ebin_home
|
|
mode: restart
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.ebin_home
|
|
to: "on"
|
|
- platform: time_pattern
|
|
minutes: "/5"
|
|
condition:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.have_custody
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: person.kristy
|
|
state: 'home'
|
|
action:
|
|
- service: input_boolean.turn_off
|
|
entity_id: input_boolean.ebin_travelling
|
|
- service: input_boolean.turn_on
|
|
entity_id: input_boolean.ebin_home |