From b1facc52f823b80f6705efafd229d1d53ea00169 Mon Sep 17 00:00:00 2001
From: Paul Wieland
Date: Wed, 17 Apr 2024 16:53:53 -0400
Subject: [PATCH] Quick fix for build problems (#259)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Setting up dry contact protocol
* limit switch implementation
* setup door controls
* Initial commit to make the component aware of the dry_contact sensors… (#249)
Initial commit to make the component aware of the dry_contact sensors and eliminate the need for lamda calls
Co-authored-by: bradmck
* send both sensor values
* removing irrelevant dry contact config
* Add triple button (discrete) control for commercial openers & gates
* point to git
* Add dry contact to installer
* rm whitespace
* updated wiring diagram
* organize dry contact methods & fix initial limit switch state
* A dirty ifdef
refactor of this needed
---------
Co-authored-by: bradmck
---
components/ratgdo/ratgdo.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp
index 5353074..a9f49c8 100644
--- a/components/ratgdo/ratgdo.cpp
+++ b/components/ratgdo/ratgdo.cpp
@@ -427,9 +427,10 @@ namespace ratgdo {
// dry contact protocol:
// needed to trigger the intial state of the limit switch sensors
// ideally this would be in drycontact::sync
- // this->dry_contact_open_sensor_->state;
+#ifdef PROTOCOL_DRYCONTACT
this->protocol_->set_open_limit(this->dry_contact_open_sensor_->state);
this->protocol_->set_close_limit(this->dry_contact_close_sensor_->state);
+#endif
}
void RATGDOComponent::door_open()