From 1cb4a57403b419e19b422aad282d7f6ae2508fa0 Mon Sep 17 00:00:00 2001 From: Crazor Date: Fri, 19 Apr 2019 16:55:41 +0200 Subject: [PATCH] Updated Shelly 1 and 2 (markdown) --- Shelly-1-and-2.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shelly-1-and-2.md b/Shelly-1-and-2.md index 13b899b7..8215e995 100644 --- a/Shelly-1-and-2.md +++ b/Shelly-1-and-2.md @@ -75,6 +75,9 @@ Tasmota 6.5.0.8 and up supports Shelly 2.5 using the following template:
As the Temperature sensor uses the Analog input the firmware needs to be compiled with ``//#define USE_ADC_VCC``. +If you connect momentary switches and want press/double press/hold functionality, use the following template: +``{"NAME":"Shelly 2.5 (buttons)","GPIO":[56,255,17,255,21,127,0,0,6,128,5,22,156],"FLAG":2,"BASE":18}``. Run ``backlog SetOption1 1; SetOption11 1; SetOption32 1`` to enable all three states. Button1 is the button on the back of the device, Button2 and Button3 are the externally connected buttons. + ## Flash mode To be able to flash the Tasmota firmware you need to get into flash mode. Therefore connect a wire from GPIO0 to ground. For further information have a look at [bringing-the-module-in-flash-mode](https://github.com/arendst/Sonoff-Tasmota/wiki/Hardware-Preparation#bringing-the-module-in-flash-mode).