mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
27 lines
698 B
YAML
27 lines
698 B
YAML
alias: "Ebin Location Update"
|
|
id: automation_ebin_location_update
|
|
mode: restart
|
|
|
|
trigger:
|
|
# I've moved
|
|
- platform: state
|
|
entity_id:
|
|
- input_select.podein_kids
|
|
# Kristy moved
|
|
- input_select.kristy_status_dropdown
|
|
- input_boolean.kristy_home
|
|
# Custody changed
|
|
- binary_sensor.have_custody
|
|
# Sleeping status changed
|
|
- input_boolean.ebin_is_awake
|
|
- input_boolean.ebin_in_bed
|
|
- input_select.ebin_status_dropdown
|
|
- input_boolean.ebin_home
|
|
condition:
|
|
- condition: template
|
|
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
|
|
|
|
action:
|
|
- action: script.turn_on
|
|
entity_id: script.ebin_travel_sensor
|