-
Notifications
You must be signed in to change notification settings - Fork 0
/
garage_door.yaml
56 lines (56 loc) · 1.3 KB
/
garage_door.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
blueprint:
name: Teslemetry Garage Door Opener
author: Brett Adams
description: Opens a garage door when your Tesla is approching
domain: automation
input:
distance_to_arrival_entity:
name: Distance to arrival entity
selector:
entity:
filter:
- integration: teslemetry
domain: sensor
device_class: distance
distance_to_arrival:
name: Distance to arrival value to trigger open
selector:
number:
min: 0
max: 100
step: any
mode: box
route_entity:
name: Route entity
selector:
entity:
filter:
- integration: teslemetry
domain: device_tracker
route_zone:
name: Route destination
selector:
entity:
filter:
- domain: zone
cover_entity:
name: Garage door entity
selector:
entity:
filter:
- domain: cover
trigger:
- platform: numeric_state
entity_id:
- !input distance_to_arrival_entity
below: !input distance_to_arrival
above: 0
condition:
- condition: zone
entity_id: !input route_entity
zone: !input route_zone
action:
- service: cover.open_cover
target:
entity_id: !input cover_entity
mode: restart