mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
24 lines
541 B
YAML
24 lines
541 B
YAML
alias: "Bridget Home"
|
|
id: automation_bridget_home
|
|
mode: restart
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.bridget_home
|
|
to: "on"
|
|
- platform: time_pattern
|
|
minutes: "/5"
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.bridget_home
|
|
state: "off"
|
|
- condition: state
|
|
entity_id: binary_sensor.bridget_home
|
|
state: "on"
|
|
action:
|
|
- service: input_boolean.turn_off
|
|
entity_id: input_boolean.bridget_travelling
|
|
- service: input_boolean.turn_on
|
|
entity_id: input_boolean.bridget_home
|