Skip to content

Commit f0fcf4a

Browse files
committed
Start secplus_gdo before MQTT so that state is initialized before MQTT reports initial state
1 parent 3da1d6b commit f0fcf4a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/secplus_gdo/secplus_gdo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ namespace secplus_gdo {
101101
status->paired_devices.total_wall_controls, status->paired_devices.total_accessories,
102102
status->paired_devices.total_all);
103103
break;
104-
case GDO_CB_EVENT_OPEN_DURATION_MEASURMENT:
104+
case GDO_CB_EVENT_OPEN_DURATION_MEASUREMENT:
105105
ESP_LOGI(TAG, "Open duration: %d", status->open_ms);
106106
gdo->set_open_duration(status->open_ms);
107107
break;
108-
case GDO_CB_EVENT_CLOSE_DURATION_MEASURMENT:
108+
case GDO_CB_EVENT_CLOSE_DURATION_MEASUREMENT:
109109
ESP_LOGI(TAG, "Close duration: %d", status->close_ms);
110110
gdo->set_close_duration(status->close_ms);
111111
break;

components/secplus_gdo/secplus_gdo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace secplus_gdo {
3838
void start_gdo() { start_gdo_ = true; }
3939

4040
// Use Late priority so we do not start the GDO lib until all saved preferences are loaded
41-
float get_setup_priority() const override { return setup_priority::LATE; }
41+
float get_setup_priority() const override { return setup_priority::BEFORE_CONNECTION; }
4242

4343
void register_protocol_select(GDOSelect *select) { this->protocol_select_ = select; }
4444
void set_protocol_state(gdo_protocol_type_t protocol) { if (this->protocol_select_) {

garage-door-GDOv2-Q.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ substitutions:
5757
name: konnected
5858
friendly_name: GDO blaQ
5959
project_name: konnected.garage-door-gdov2-q
60-
project_version: "1.3.2"
60+
project_version: "1.3.3"
6161
garage_door_cover_name: Garage Door
6262
garage_light_name: Garage Light
6363
garage_openings_name: Garage Openings
@@ -186,7 +186,7 @@ web_server:
186186
esphome:
187187
platformio_options:
188188
lib_deps:
189-
- https://github.com/konnected-io/gdolib#76ba232
189+
- https://github.com/konnected-io/gdolib#4a55112
190190
build_flags:
191191
- -DUART_SCLK_DEFAULT=UART_SCLK_APB
192192
- -Wl,--wrap=esp_panic_handler

0 commit comments

Comments
 (0)