forked from konnected-io/konnected-esphome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalarm-panel-pro-esp32.yaml
268 lines (234 loc) · 7.16 KB
/
alarm-panel-pro-esp32.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
####
##
## Konnected Alarm Panel Pro (ESP32)
## Firmware configuration for ESPHome
##
## filename: alarm-panel-pro-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.
##
####
####
# 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 "alarm-panel-pro-xxxxxx" where xxxxxx is a unique identifier. The device's
# hostname on your network is also defined by the name, defaulting to "alarm-panel-pro-xxxxxx.local". Edit this variable to
# customize the name and hostname. Note: only lowercase characters, numbers and hyphen(-) are allowed.
name: alarm-panel-pro
friendly_name: Alarm Panel Pro
project_name: konnected.alarm-panel-pro-esp32
project_version: "0.1.0"
# ETHERNET CONFIG
# Uncomment one of the two lines below depending on your hardware version.
# ethernet_type: LAN8720 # Alarm Panel Pro up to 1.7
# ethernet_type: RTL8201 # Alarm Panel Pro 1.8 and up
sensor_debounce_time: 200ms
warning_beep_pulse_time: 100ms
warning_beep_pause_time: 130ms
warning_beep_internal_only: "false"
####
# ZONE MAPPING
# Do not edit this section.
zone1: GPIO4
zone2: GPIO2
zone3: GPIO15
zone4: GPIO13
zone5: GPIO18
zone6: GPIO14
zone7: GPIO33
zone8: GPIO32
zone9: GPIO36
zone10: GPIO39
zone11: GPIO34
zone12: GPIO35
alarm1: GPIO12
alarm2: GPIO5
out1: GPIO23
out2: GPIO5
status_led: GPIO3
####
# CONNECTION MAPPINGS
warning_beep_pin: $out1
####
# INPUT ZONE COMMON SETTINGS
.input_zone_common: &input_zone_common
platform: gpio
filters:
- delayed_on_off: $sensor_debounce_time
on_state:
then:
- light.turn_on: blue_status_led
- delay: 100ms
- light.turn_off: blue_status_led
####
# BINARY SENSOR SETUP
# A "Binary Sensor" is any type of sensor that has two states, such as open/closed or detected/not-detected.
# Set up zones for door, window, motion, smoke/fire, CO, water/leak sensors in this section by repeating the configuration
# block below for each zone.
binary_sensor:
- id: zone1
name: Zone 1
device_class: door
pin:
number: $zone1
mode: INPUT_PULLUP
<<: *input_zone_common
- id: zone2
name: Zone 2
device_class: door
pin:
number: $zone2
mode: INPUT_PULLUP
<<: *input_zone_common
- id: zone3
name: Zone 3
device_class: motion
pin:
number: $zone3
mode: INPUT_PULLUP
<<: *input_zone_common
- id: zone4
name: Zone 4
device_class: window
pin:
number: $zone4
mode: INPUT_PULLUP
<<: *input_zone_common
- id: zone5
name: Zone 5
device_class: door
pin:
number: $zone5
mode: INPUT_PULLUP
<<: *input_zone_common
- id: zone6
name: Zone 6
device_class: window
pin:
number: $zone6
mode: INPUT_PULLUP
<<: *input_zone_common
- id: zone7
name: Zone 7
device_class: window
pin:
number: $zone7
mode: INPUT_PULLUP
<<: *input_zone_common
- id: zone8
name: Zone 8
device_class: window
pin:
number: $zone8
mode: INPUT_PULLUP
<<: *input_zone_common
- id: zone9
name: Zone 9
pin:
number: $zone9
mode: INPUT
<<: *input_zone_common
- id: zone10
name: Zone 10
pin:
number: $zone10
mode: INPUT
<<: *input_zone_common
- id: zone11
name: Zone 11
platform: gpio
pin:
number: $zone11
mode: INPUT
<<: *input_zone_common
- id: zone12
name: Zone 12
platform: gpio
pin:
number: $zone12
mode: INPUT
<<: *input_zone_common
switch:
- id: alarm1
name: Alarm 1
pin: $alarm1
platform: gpio
icon: mdi:bullhorn
- id: alarm2
name: Alarm 2
pin: $alarm2
platform: gpio
####
# PACKAGES
# Each package includes the alarm panel feature
# Remove or comment out any packages that you do not need or want.
# If you're developing/installing locally, replace the github package line with the local package include above it.
packages:
####
# CORE
# This package is required and sets up core features.
# core: !include packages/core-esp32.yaml
core: github://konnected-io/konnected-esphome/packages/core-esp32.yaml@master
####
# ETHERNET
# Enables ethernet connectivity. Uncomment below to enable ethernet.
# ethernet: !include packages/ethernet.yaml
# ethernet: github://konnected-io/konnected-esphome/packages/ethernet.yaml@master
####
# WIFI
# Enables WiFi connectivity and diagnostics. Uncommet below to enable WiFi.
# wifi: !include packages/wifi.yaml
# wifi: github://konnected-io/konnected-esphome/packages/wifi.yaml@master
####
# WARNING BEEP
# Enables a 'Warning Beep' entity, intended to be used with a piezo buzzer. This is
# implemented using a light entity with strobe effect to create a repeated beeping sound.
# warning_beep: !include packages/warning-beep.yaml
warning_beep: github://konnected-io/konnected-esphome/packages/warning-beep.yaml@master
####
# STATUS LED
# Enables the onboard blue status LED as an activity/error indicator
# status_led: !include packages/status-led.yaml
status_led: github://konnected-io/konnected-esphome/packages/status-led.yaml@master
dashboard_import:
package_import_url: github://konnected-io/konnected-esphome/alarm-panel-pro-esp32.yaml@master
import_full_config: true
####
# WEB SEVER
# Enables the built-in web server for viewing the device state, internals and controls via web browser
# on the same local network as the device.
web_server:
include_internal: true
####
# LOGGER
# more: https://esphome.io/components/logger.html
logger:
####
# NATIVE API for HOME ASSISTANT
# Enables the native API for Home Assistant
# more: https://esphome.io/components/api.html
api:
####
# OTA UPDATES
# Enables over-the-air updates
# more: https://esphome.io/components/ota.html
ota: