-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsecond-garage-door.yaml
101 lines (93 loc) · 1.98 KB
/
second-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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
substitutions:
device_id: second-garage-door
device_name: Second Garage Door
board: d1_mini
ip_address: !secret second_garage_door_ip
api_key: !secret second_garage_door_key
pwd: !secret second_garage_door_pwd
packages:
device_base: !include ./packages/device_base_esp8266.yaml
external_components:
- source:
type: local
path: ./components
components: [ garage_door ]
binary_sensor:
- platform: gpio
name: ${device_name} Closed Sensor
id: closed_in
entity_category: diagnostic
pin:
number: D2
inverted: true
mode:
input: true
pullup: true
filters:
- delayed_on: 50ms
- delayed_off: 50ms
- platform: gpio
name: ${device_name} Open Sensor
id: open_in
entity_category: diagnostic
pin:
number: D7
inverted: true
mode:
input: true
pullup: true
filters:
- delayed_on: 50ms
- delayed_off: 50ms
- platform: gpio
id: remote_in
pin:
number: D5
inverted: true
mode:
input: true
pullup: true
- platform: gpio
id: remote_light_in
pin:
number: D6
inverted: true
mode:
input: true
pullup: true
cover:
- platform: garage_door
name: ${device_name}
open_duration: 12947ms
close_duration: 12875ms
control_output: control_out
button_sensor: button_in
closed_sensor: closed_in
open_sensor: open_in
remote_sensor: remote_in
remote_light_sensor: remote_light_in
warning_rtttl: warning_rtttl
last_open_time_sensor:
name: ${device_name} Last Open Time
last_close_time_sensor:
name: ${device_name} Last Close Time
output:
- platform: gpio
id: control_out
pin: D1
- platform: esp8266_pwm
id: rtttl_out
pin: D8
rtttl:
id: warning_rtttl
output: rtttl_out
sensor:
- platform: adc
id: button_in
pin: A0
raw: true
update_interval: 100ms
status_led:
pin:
number: D4
inverted: false