mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
initial_state: 'on'
|
||||
alias: 'Clint changing zones'
|
||||
initial_state: "on"
|
||||
alias: "Clint changing zones"
|
||||
id: automation_clint_changing_zones
|
||||
#description:
|
||||
trigger:
|
||||
# Been away for a few minutes
|
||||
- platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
to: 'not_home'
|
||||
for: '00:05:00'
|
||||
to: "not_home"
|
||||
for: "00:05:00"
|
||||
# Arrived in a zone
|
||||
- platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
from: 'not_home'
|
||||
from: "not_home"
|
||||
condition:
|
||||
# Been at least 5 minutes
|
||||
- condition: template
|
||||
value_template: "{{ ( as_timestamp(now()) - as_timestamp(state_attr('script.clint_traveltime','last_triggered'))|float)|float > 300 }}"
|
||||
action:
|
||||
- service: script.clint_traveltime
|
||||
- action: script.clint_traveltime
|
||||
|
||||
Reference in New Issue
Block a user