mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
26 lines
706 B
YAML
26 lines
706 B
YAML
initial_state: "on"
|
|
alias: "Bridget Location Update"
|
|
id: automation_bridget_location_update
|
|
mode: restart
|
|
|
|
trigger:
|
|
# Bridget moved
|
|
- platform: state
|
|
entity_id:
|
|
- input_select.bridget_status_dropdown
|
|
- input_boolean.bridget_home
|
|
# Clint moved
|
|
- input_select.clint_status_dropdown
|
|
- input_boolean.clint_home
|
|
# Custody changed
|
|
- binary_sensor.have_custody
|
|
# Sleeping status changed
|
|
- input_boolean.bridget_is_awake
|
|
- input_boolean.bridget_in_bed
|
|
condition:
|
|
- condition: template
|
|
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
|
|
|
|
action:
|
|
- service: script.turn_on
|
|
entity_id: script.bridget_travel_sensor |