Commit Graph

562 Commits

Author SHA1 Message Date
pre-commit-ci[bot] 9a5f21c792 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-11 22:01:42 +00:00
Paul Wieland 6694fcde49 Merge branch 'emulation_state_toggle' of https://github.com/ratgdo/esphome-ratgdo into emulation_state_toggle 2024-07-11 18:01:25 -04:00
Paul Wieland 83a284ebb0 set last obstruction state 2024-07-11 18:01:23 -04:00
pre-commit-ci[bot] ff109e61fd [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-11 21:53:40 +00:00
Paul Wieland 0568544ae8 Only log on state change for sec+1 2024-07-11 17:53:21 -04:00
pre-commit-ci[bot] 334154cfe3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-11 20:49:37 +00:00
Paul Wieland 0fb13fc547
Update with main (#303) 2024-07-11 16:45:08 -04:00
Paul Wieland cdcc8bacaf attempt to quit light/lock/obs state, not working yet 2024-07-11 16:41:24 -04:00
Paul Wieland f11ec99ae3 Make door state less noisy in sec+1 mode 2024-07-11 16:39:17 -04:00
Paul Wieland 86a44366c4 en/dis able emulation mode
change wall panel emulation states from WAITING | ACTIVE to ENABLED | DISABLED.

Add set mode to protocol so the GUI switch can toggle the state between enabled or disabled.

Default mode is disabled. Removed code that watches for a wall panel to simplify.
2024-07-11 16:38:47 -04:00
Paul Wieland 01a4a41809 Add an emulation switch toggle to the web UI 2024-07-11 16:36:21 -04:00
Paul Wieland b148105423
Auto detect obstruction sensors (#298)
* Auto detect obstruction sensors
* Use toggle action instead of close if no sensors detected
* Toggle for close only when door is open
2024-07-03 07:44:33 -04:00
J. Nick Koston c603f012e6
chore: add clang pre-commit (#299) 2024-07-02 19:59:37 -05:00
Paul Wieland 35e22a828e Update __init__.py 2024-04-17 18:33:03 -04:00
Paul Wieland b1facc52f8
Quick fix for build problems (#259)
* 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 <bradmck@gmail.com>

* 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 <bradmck@gmail.com>
2024-04-17 16:53:53 -04:00
Paul Wieland 1ba198e286 Update ratgdo.cpp 2024-04-17 16:26:15 -04:00
Paul Wieland 4578097306 Merge branch 'main' of https://github.com/ratgdo/esphome-ratgdo 2024-04-17 16:24:10 -04:00
Paul Wieland da0776ff12
Adds dry contact opener control (#258)
* 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 <bradmck@gmail.com>

* 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

---------

Co-authored-by: bradmck <bradmck@gmail.com>
2024-04-17 16:17:29 -04:00
Paul Wieland 93383489c3
Revert "Dry contact support" (#257)
Revert "Dry contact support (#255)"

This reverts commit 7362f46aca.
2024-04-17 11:21:20 -04:00
Paul Wieland 7362f46aca
Dry contact support (#255)
* 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 <bradmck@gmail.com>

* 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

---------

Co-authored-by: bradmck <bradmck@gmail.com>
2024-04-17 10:11:55 -04:00
Paul Wieland 705f381a12 Update ratgdo.cpp 2024-03-21 14:28:51 -04:00
Marius Muja 4b57303c1f
Fix bug with opening/closing duration calibration (#194)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-01-23 12:05:04 -10:00
J. Nick Koston 17fad73613
Reduce number of flash writes (#190) 2024-01-20 15:15:06 -10:00
J. Nick Koston f3f8f966dc
feat: Security Plus v1 support (#171)
Co-authored-by: Marius Muja <mariusmuja@gmail.com>
2024-01-19 13:24:16 -10:00
mulcmu 4c2ed4e7c0
feat: add learn and clear capability (#149)
Co-authored-by: Marius Muja <mariusmuja@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-01-18 12:25:08 -10:00
Marius Muja 53752d588c
Drop an incomplete packet if the missing bytes are lost (#144)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-16 07:50:51 -10:00
Marius Muja 892c4e2872
Detect "not connected to GDO" condition (#143)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-15 20:26:30 -10:00
Marius Muja 2ea7ca6e3e
Convert lock remotes switch to a lock component (#132)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-05 14:12:01 -10:00
Marius Muja a1dbdbe751
Add timeout for motion detection (#104) 2023-11-08 23:08:58 -06:00
Marius Muja cdc7780c72
Normalize client_id when manually entered (#97)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-11-07 12:58:16 -06:00
Marius Muja 7be33e1c20
Add limits on the range of client_id values (#95) 2023-11-05 19:50:59 -06:00
J. Nick Koston 718237ae84
Increase max client id to 0xFFFFFFFF (#94) 2023-11-05 18:24:02 -06:00
Marius Muja 66ba19e69e
Update potentially wrong client_ids (#93) 2023-11-05 18:13:32 -06:00
Marius Muja 8317f18b86
Fix issue #89 by imposing some limits on the random client_id (#92) 2023-11-05 17:47:11 -06:00
Marius Muja e2f4b6ec5f
Adding cover on_opening and on_closing triggers (#81)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-11-05 13:49:59 -06:00
J. Nick Koston c09136da50
Fix door requiring two close commands to close (#88) 2023-11-05 09:40:25 -06:00
J. Nick Koston 2091be8312
Use random client_id in lieu of static remote_id (#76)
Co-authored-by: Paul Wieland <p@ul.sickdimension.com>
2023-10-26 12:04:35 -05:00
Marius Muja 7da1282ecb
Automatically tune the optimal baud value for the next packet (#69)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-10-19 11:56:32 -10:00
J. Nick Koston f323e02df1
chore: add .pre-commit-config.yaml for end of line fixer (#66) 2023-10-18 14:23:30 -10:00
Marius Muja 6d8f3e0e86
Door opening/close relliability updates (#64)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-10-18 14:18:42 -10:00
Marius Muja 575471bda1
Rework of door position sync (#61)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-10-08 12:36:09 -10:00
Marius Muja fe593a9a76
Allow interrupts to be disabled during transmit (#60)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-10-06 12:54:49 -10:00
Marius Muja d2ae60e6ed
Refactor sync function to be more DRY and easier to extend (#50)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-09-18 13:18:13 -05:00
Marius Muja fd8e60245e
Make obstruction detection ignore spurrious detections (#41)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-08-26 16:45:51 -05:00
J. Nick Koston a1b166e563
feat: add support for disabling the obstruction pin (#39) 2023-08-26 08:11:02 -05:00
mulcmu 0c07766cab
Fix obstruction isr for ESP32 (#38)
Fix obsruction isr for ESP32

In RATGDOComponent::setup() call the ESPHome code to attach_interrupt() before software serial begin().  This allows ESPHome to call IDF gpio_install_isr_service() without error.
2023-08-18 17:37:51 -07:00
Marius Muja 03163ea9ae
Don't calibrate open/close durations if they are non-zero (#34)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-07-20 14:05:37 -05:00
Marius Muja 31b96b634b Fix build on esp32. 2023-07-07 19:19:30 -07:00
Marius Muja 38629aac52
Collision detection on transmit (#31)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-07-07 14:23:26 -10:00
Marius Muja bd36a7e6a3
Make storing persistent state the resposibility of ratgdo_number (#30)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-07-07 12:56:12 -10:00