Skip to content

Commit a799907

Browse files
Add ToF Sensor config details
1 parent ec76428 commit a799907

5 files changed

+67
-5
lines changed

gdo.guides/Secplus-GDO-Setup-Guide.md

+67-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This Secplus GDO ESP32 setup guide provides two methods to add the GRGDO1 to an
1616

1717
Availble from [https/www.gelidus.ca/](https/www.gelidus.ca/)
1818

19-
Inside the enclosure.
19+
Inside the enclosure - v1 board.
2020

2121
<img src="/images/gdo/grgdo1.top.bare.jpg" alt="GRGDO1" style="width: 400px;"/>
2222

@@ -32,6 +32,14 @@ Inside the enclosure.
3232
- 1 Meter of 3 conductor 22 AWG bell wire
3333
- 3D printed protective safety enclosure.
3434

35+
Inside the enclosure - v2 board differences.
36+
37+
<img src="/images/gdo/GRGDO1.v2.USB-C.JPG" alt="GRGDO1" style="width: 400px;"/>
38+
39+
- 4 Pin Aux port header (GND, 3.3v GPIO26, GPIO25) GPIO2 unsoldered
40+
- USB-C programing interface.
41+
42+
3543
Protective 3D enclosure (FR ABS)
3644

3745
<img src="/images/gdo/grgdo1.enclosed.jpg" alt="GRGDO1" style="width: 400px;"/>
@@ -79,6 +87,8 @@ substitutions:
7987
dry_contact_open_pin: GPIO18 # J4 Pin 6 Green
8088
dry_contact_close_pin: GPIO19 # J4 Pin 7 Blue
8189
dry_contact_light_pin: GPIO17 # J4 Pin 8 Orange
90+
tof_sda_pin: GPIO26 # v1 board=GPIO3 v2(USB-C) board=GPIO26
91+
tof_scl_pin: GPIO25 # v1 board=GPIO1 v2(USB-C) board=GPIO25
8292
garage_door_cover_name: Garage Door
8393
garage_light_name: Garage Light
8494
garage_openings_name: Garage Openings
@@ -102,8 +112,6 @@ esphome:
102112
# name: konnected.garage-door-gdov2 #Required if using homebridge-ratgdo
103113
# version: "1.0"
104114
comment: "ESP32: Garage Door Opener"
105-
libraries:
106-
- https://github.com/gelidusresearch/gdolib.git
107115
platformio_options:
108116
build_flags:
109117
- -Wl,--wrap=esp_panic_handler
@@ -124,6 +132,7 @@ wifi:
124132
captive_portal:
125133

126134
logger:
135+
baud_rate: 921600 # Set to 0 for GRGDO1 v1.0 hardware with the VL53L1X sensor
127136

128137
api:
129138
encryption:
@@ -147,6 +156,9 @@ secplus_gdo:
147156
id: grgdo
148157
input_gdo_pin: ${uart_rx_pin}
149158
output_gdo_pin: ${uart_tx_pin}
159+
#input_obst_pin: ${input_obst_pin} # Used to enable physical pin obstruction sensing
160+
#tof_sda_pin: ${tof_sda_pin} # If defined the ToF code will be enabled and requires number: vehicle_parked_threshold
161+
#tof_scl_pin: ${tof_scl_pin} # Required for ToF Sensor
150162

151163
light:
152164
- platform: secplus_gdo
@@ -173,9 +185,21 @@ sensor:
173185
name: "Garage Door Openings"
174186
unit_of_measurement: "openings"
175187
icon: mdi:open-in-app
188+
- platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
189+
id: wifi_signal_db
190+
update_interval: 60s
191+
entity_category: "diagnostic"
192+
- platform: copy # Reports the WiFi signal strength in %
193+
source_id: wifi_signal_db
194+
name: "WiFi Signal Strength"
195+
filters:
196+
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
197+
unit_of_measurement: "%"
198+
entity_category: "diagnostic"
199+
device_class: ""
176200
# - platform: dht
177201
# model: DHT22
178-
# pin: GPIO3
202+
# pin: GPIO3 # v1 board=GPIO3 v2 board=GPIO26
179203
# temperature:
180204
# name: "Temperature"
181205
# accuracy_decimals: 1
@@ -221,6 +245,21 @@ binary_sensor:
221245
secplus_gdo_id: grgdo
222246
type: sync
223247
device_class: connectivity
248+
# ToF Sensor
249+
# - platform: secplus_gdo
250+
# secplus_gdo_id: grgdo
251+
# id: gdo_vehicle_parked
252+
# type: vehicle_parked
253+
# name: "Vehicle parked"
254+
# - platform: secplus_gdo
255+
# secplus_gdo_id: grgdo
256+
# id: gdo_vehicle_arriving
257+
# type: vehicle_arriving
258+
# name: "Vehicle arriving"
259+
# - platform: secplus_gdo
260+
# secplus_gdo_id: grgdo
261+
# id: gdo_vehicle_leaving
262+
# type: vehicle_leaving
224263

225264
- platform: gpio
226265
id: "${id_prefix}_dry_contact_open"
@@ -348,6 +387,16 @@ number:
348387
mode: box
349388
unit_of_measurement: "s"
350389

390+
# ToF Sensor - Required
391+
# - platform: secplus_gdo
392+
# name: "Vehicle Parked Threshold"
393+
# secplus_gdo_id: grgdo
394+
# entity_category: config
395+
# id: gdo_vehicle_parked_threshold
396+
# type: vehicle_parked_threshold
397+
# mode: box
398+
# unit_of_measurement: "cm"
399+
351400
button:
352401
- platform: restart
353402
name: Restart
@@ -405,7 +454,7 @@ GRGDO1 will now come online and you can add it to Home Assistant with the config
405454
406455
To enable flash mode on the GRGDO1 you need to depress and hold SW1 then connect your USB to serial adapter to the UART flashing connector as shown here. Once power is applied the button can be released and GRGDO1 will be in flash mode. (Pre-connecting J1 and then plugging in the USB end is usually easier)
407456
408-
GRGDO1 Flashing Header
457+
GRGDO1 v1 Board Flashing Header
409458
410459
<img src="/images/gdo/gdo1.flash.header.JPG" alt="Select" style="width: 200px;"/>
411460
@@ -417,6 +466,10 @@ RX &lt;- TX
417466
3.3v - 3.5v Max
418467
GND - GND</code></pre>
419468
469+
GRGDO1 v2 Board Flash - plug into the USB-C portal
470+
471+
<img src="/images/gdo/GRGDO1.v2.USB-C.JPG" alt="Select" style="width: 200px;"/>
472+
420473
Prepare the firmware by selecting install on the top right of the ESPHome edit screen.
421474
422475
Select Plug into this computer.
@@ -446,6 +499,15 @@ This example is a basic config and is the most common way to connect up the GRGD
446499
## DHT22 Add-On Connections
447500
<img src="/images/gdo/dht22.grgdo1.connection.png" alt="Select" style="width: 400px;"/>
448501
502+
## ToF Sensor Add-on
503+
504+
The ToF sensor is keyed and connects one way by aligning the pins in the Aux port.
505+
506+
<img src="/images/gdo/GRGDO1.ToF.VL53L1X.Add-On.JPG" alt="Select" style="width: 400px;"/>
507+
<img src="/images/gdo/GRGDO1.black.side.JPG" alt="Select" style="width: 400px;"/>
508+
509+
510+
449511
## Home Assistant Dashboard Examples
450512
451513
Button Card

images/gdo/GRGDO1-V2-Aux-Pins.jpg

13.7 KB
Loading
190 KB
Loading

images/gdo/GRGDO1.black.side.JPG

24.6 KB
Loading

images/gdo/GRGDO1.v2.USB-C.JPG

40.9 KB
Loading

0 commit comments

Comments
 (0)