From 80d332cd9070303462b2fd9a05e8f5922ac69280 Mon Sep 17 00:00:00 2001
From: Bernie <74262352+FoxWhiskey@users.noreply.github.com>
Date: Thu, 2 Mar 2023 15:45:53 +0100
Subject: [PATCH] Add decoder conf for SWETUP garage door remote (#2403)

Co-authored-by: Bernie <bernie@guzzifuzzi.de>
---
 conf/SWETUP-garage-opener.conf | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 conf/SWETUP-garage-opener.conf

diff --git a/conf/SWETUP-garage-opener.conf b/conf/SWETUP-garage-opener.conf
new file mode 100644
index 00000000..1744d2c0
--- /dev/null
+++ b/conf/SWETUP-garage-opener.conf
@@ -0,0 +1,29 @@
+# SWETUP garage door opener
+# by FoxWhiskey 2023
+#
+# A four-button remote control device most likely based on EV1527 chip.
+# The device is available on AMAZON and a no-name-product branded for the german market.
+# See https://www.amazon.de/-/en/Handheld-Transmitter-Control-Universal-Wireless/dp/B09HWY1KH7
+#
+# The package includes a set of two devices. Each device, however, transmits identical signals, which suggests
+# that no ID is present and all devices are indistinguishable (if not trained to a specific code...)
+# When a button is pressed, the device transmits a 25bit code with following pattern:
+#
+# Bit 1-20  : constant
+# Bit 21-24 : BUTTON
+# Bit 25    : constant
+#
+# The pattern is being repeated as long as the button is held down. So, postprocessing is necessary if duplicates are unwanted.
+#
+#
+decoder {
+        n=SWETUP-remote-4btn,
+        m=OOK_PWM,
+        s=264,
+        l=788,
+        r=945,
+        bits=25,
+        preamble={20}57ba1,
+        get=@0:{4}:button:[0x7:A 0xE:B 0xB:C 0xD:D],
+        unique
+}