-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.yaml
305 lines (267 loc) · 8.6 KB
/
test.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
####
##
## Konnected Garage Door Opener blaQ (GDOv2-Q)
## Firmware configuration for ESPHome
##
## filename: garage-door-esp32.yaml
## GitHub: https://github.com/konnected-io/konnected-esphome
## Buy Konnected hardware: https://konnected.io
## Help & Support: https://[email protected] (support is provided for purchasers of Konnected hardware)
##
## Copyright© 2023 Konnected Inc.
##
## Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
## files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
## modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
## is furnished to do so, subject to the following conditions:
##
## The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
##
## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
## OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
## LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
## IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
##
####
####
# INTRODUCTION
#
# This ESPHome based firmware configuration is designed for the Konnected Garage Door Opener GDOv2-Q (GDO blaQ)
# which is designed as a smart garage door accessory for Security+ and Security+ 2.0 garage openers manufactured
# by Chamberlain Group brands including Chamberlain, LiftMaster, Craftsman and Merlin (Australia).
#
####
# GENERAL SETTINGS
# Customize these variables to your preferences and needs
# more: https://esphome.io/guides/configuration-types.html#substitutions
####
# GENERAL SETTINGS
# Customize these variables to your preferences and needs
# more: https://esphome.io/guides/configuration-types.html#substitutions
substitutions:
####
# NAME
# By default, the name of the ESPHome device is "garage-door-xxxxxx" where xxxxxx is a unique identifier. The device's
# hostname on your network is also defined by the name, defaulting to "garage-door-xxxxxx.local". Edit this variable to
# customize the name and hostname. Note: only lowercase characters, numbers and hyphen(-) are allowed.
name: konnected
friendly_name: Garage Door Opener
project_name: konnected.garage-door-gdov2-q
project_version: "0.0.2"
garage_door_cover_name: Garage Door
####
# GARAGE DOOR OPENER MOMENTARY DURATION
# Duration to make the relay contact closure for the garage door opener button circuit.
garage_door_opener_momentary_duration: 300ms
####
# OPEN GARAGE DOOR DISTANCE MARGIN OF ERROR
# The margin of error (+/-) in meters from the value above to consider the garage door in the open position.
open_garage_door_distance_margin_of_error: "0.05"
####
# GARAGE DOOR CLOSE WARNING DURATION
# Duration to blink the warning LED and beep the buzzer before the garage door closes.
garage_door_close_warning_duration: 5s
####
# ADDITIONAL SETTTINGS
warning_beep_pulse_time: 100ms
warning_beep_pause_time: 130ms
warning_beep_internal_only: "true"
warning_beep_shared: "false"
sensor_debounce_time: 200ms
range_sensor_polling_time: 2500ms
range_sensor_debounce_time: 3s
blink_on_state: "true"
####
# INTERNAL MAPPINGS
# DO NOT EDIT these when using Konnected hardware
uart_tx_pin: GPIO1
uart_rx_pin: GPIO2
input_obst_pin: GPIO5
warning_beep_pin: GPIO4
warning_leds_pin: GPIO3
status_led: GPIO18
external_components:
#- source:
# type: git
# url: https://github.com/konnected-io/esphome-secplus-gdo.git
# refresh: 1s
- source:
type: local
path: components
####
# PACKAGES
# Each package includes a Garage Door Opener feature described
# Remove or comment out any packages that you do not need or want.
packages:
remote_package:
url: http://github.com/konnected-io/konnected-esphome
ref: master
refresh: 5min
files:
####
# CORE
# This package is required and sets up core ESPHome features.
- packages/core-esp32-s3.yaml
####
# WIFI
# Enables WiFi connectivity and diagnostics. Uncommet below to enable WiFi.
# wifi: !include packages/wifi.yaml
- packages/wifi.yaml
####
# WARNING LED
# Enables the onboard warning LED light, with strobe effect. Used to visually warn of garage door automatic closing.
# warning_led: !include packages/warning-led.yaml
- packages/warning-led.yaml
####
# PRE-CLOSE WARNING
# Enables a pleasant and customizable pre-close warning tone using the onboard piezo buzzer. Used to audibly
# warn of a garage door automatic closing.
- packages/buzzer-rtttl.yaml
- packages/pre-close-warning-tones.yaml
####
# STATUS LED
# Enables the onboard blue status LED as an activity/error indicator
# status_led: !include packages/status-led.yaml
- packages/status-led.yaml
####
# SELF-TEST
# Self test script used to validate the hardware post-assembly
# - packages/gdo-self-test.yaml
script:
- id: pc_warn
then:
- button.press: pre_close_warning
secplus_gdo:
id: konnected_blaq
input_gdo_pin: ${uart_rx_pin}
output_gdo_pin: ${uart_tx_pin}
input_obst_pin: ${input_obst_pin}
light:
- platform: secplus_gdo
name: garage_light
secplus_gdo_id: konnected_blaq
id: gdo_light
cover:
- platform: secplus_gdo
name: garage_door
secplus_gdo_id: konnected_blaq
id: gdo_door
pre_close_warning_duration: $garage_door_close_warning_duration
pre_close_warning_start:
- script.execute:
id: pc_warn
pre_close_warning_end:
- script.stop: pc_warn
- light.turn_off: warning_led
#- light.turn_off: warning_beep
sensor:
- platform: secplus_gdo
secplus_gdo_id: konnected_blaq
id: gdo_openings
type: openings
name: "Garage Door Openings"
unit_of_measurement: "openings"
icon: mdi:open-in-app
lock:
- platform: secplus_gdo
id: gdo_lock_remotes
secplus_gdo_id: konnected_blaq
name: "Lock remotes"
binary_sensor:
- platform: secplus_gdo
name: "Garage Motion Sensor"
id: gdo_motion
secplus_gdo_id: konnected_blaq
device_class: motion
type: motion
- platform: secplus_gdo
name: "Garage Door Obstruction Sensor"
id: gdo_obst
secplus_gdo_id: konnected_blaq
device_class: problem
type: obstruction
- platform: secplus_gdo
name: "Garage Door Motor"
id: gdo_motor
secplus_gdo_id: konnected_blaq
entity_category: diagnostic
type: motor
- platform: secplus_gdo
name: "Garage Button"
id: gdo_button
secplus_gdo_id: konnected_blaq
entity_category: diagnostic
type: button
switch:
- platform: secplus_gdo
id: "gdo_learn"
type: learn
secplus_gdo_id: konnected_blaq
name: "Learn"
icon: mdi:plus-box
entity_category: config
select:
- platform: secplus_gdo
id: gdo_protocol
secplus_gdo_id: konnected_blaq
name: protocol
icon: mdi:settings
entity_category: config
button:
- platform: factory_reset
name: Factory Reset
entity_category: config
number:
- platform: secplus_gdo
name: Garage door opening duration
secplus_gdo_id: konnected_blaq
entity_category: config
id: gdo_open_duration
type: open_duration
unit_of_measurement: "ms"
- platform: secplus_gdo
name: Garage door closing duration
secplus_gdo_id: konnected_blaq
entity_category: config
id: gdo_close_duration
type: close_duration
unit_of_measurement: "ms"
####
# DASHBOARD IMPORT
# Enables automatic discovery and upgrades via ESPHome Dashboard
# more: https://esphome.io/guides/getting_started_hassio.html
dashboard_import:
package_import_url: github://konnected-io/esphome-secplus-gdo/test.yaml@master
import_full_config: false
####
# LOGGER
# more: https://esphome.io/components/logger.html
logger:
level: VERBOSE
hardware_uart: UART0
logs:
ledc.output: INFO
vl53l0x: DEBUG
sensor: INFO
json: INFO
api: DEBUG
####
# NATIVE API
# Enables the native ESPHome API
# more: https://esphome.io/components/api.html
api:
####
# OTA UPDATES
# Enables over-the-air updates
# more: https://esphome.io/components/ota.html
ota:
improv_serial:
esp32_improv:
authorizer: false
web_server:
include_internal: true
esphome:
platformio_options:
build_flags:
- -L"../../../gdolib"
- -llibgdolib.a -llibsecplus.a