From 445ddda57a63e5d81dd1c377304bfe02ae961dfa Mon Sep 17 00:00:00 2001
From: Nuno Goncalves <nunojpg@gmail.com>
Date: Sun, 25 Apr 2021 11:51:41 +0200
Subject: [PATCH] Add Tesla charge port opener decoder conf (#1704)

---
 conf/tesla_charge-port-opener.conf | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 conf/tesla_charge-port-opener.conf

diff --git a/conf/tesla_charge-port-opener.conf b/conf/tesla_charge-port-opener.conf
new file mode 100644
index 00000000..b856054f
--- /dev/null
+++ b/conf/tesla_charge-port-opener.conf
@@ -0,0 +1,19 @@
+# Tesla charge port opener
+#
+#  * When the button on the charge handle is pressed the signal is repeated at 0.15s intervals for 10 times.
+#  * There are no unique codes or transmissions variants. The code is the same for all Tesla charge port
+#    handles and there is a single button.
+#  * The transmitter hardware is reported to be using a Si4010.
+#  * tolerance=20 worked in the initial test, larger value in the configuration for additional tolerance
+
+decoder {
+    name       = Tesla charge port opener,
+    modulation = OOK_MC_ZEROBIT,
+    short      = 400,
+    reset      = 1200,
+    tolerance  = 50,
+    match      = 094aa9b38da19,
+    rows       = 5
+    repeats    = 2,
+    countonly,
+}