mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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
|
||||
Reference in New Issue
Block a user