Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Open Garage Door when Blake Arrives Home
- description: ""
- trigger:
- - platform: device
- device_id: fbf42f78c42fa41fe9d751ed9c7576fc
- domain: device_tracker
- entity_id: device_tracker.blake_s_s22_ultra
- type: enters
- zone: zone.home
- condition:
- - condition: and
- conditions:
- - condition: template
- value_template: >-
- {{
- (as_timestamp(now())-as_timestamp(states.cover.garage_door_2.last_changed))
- > 600 }}
- - condition: template
- value_template: >-
- {{
- (as_timestamp(now())-as_timestamp(states.device_tracker.blake_s_s22_ultra.last_changed))
- < 300 }}
- action:
- - device_id: 8d61ad9ca67fa0963cf3368baf666776
- domain: cover
- entity_id: cover.garage_door_2
- type: open
- - service: notify.mobile_app_blake_s_s22_ultra
- data:
- message: Garage Door Opened.
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement