mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
21 lines
509 B
YAML
21 lines
509 B
YAML
alias: 'Marshall Location Update'
|
|
id: automation_marshall_location_update
|
|
mode: restart
|
|
|
|
trigger:
|
|
# I've moved
|
|
- platform: state
|
|
entity_id:
|
|
- input_select.marshall_status_dropdown
|
|
- input_boolean.marshall_home
|
|
condition:
|
|
- condition: template
|
|
value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
|
|
- condition: state
|
|
entity_id: script.marshall_travel_sensor
|
|
state: 'off'
|
|
action:
|
|
|
|
- service: script.turn_on
|
|
entity_id: script.marshall_travel_sensor
|