arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.08k stars 4.78k forks source link

Sonoff T1 2 CH #1424

Closed Majo96 closed 6 years ago

Majo96 commented 6 years ago

Dear Community,

is there a way to define the switches of the Sonoff T1 2 CH as pushbuttons? I can only find the option to change the SwitchMode for external switches.

Would be nice if someone can help me.

Thank you!

PiOver2 commented 6 years ago

I have flashed the 3-gang US version (as photographed by meneelyt) successfully with Tasmota 5.13.1 The T1 R2 US TOUCH BOARD V1.0 enters flash mode by touching pad P3 while pressing switch S1. This may require multiple presses but it does work and will flash with 1M (NO SPIFFS). Good luck.

tosie commented 6 years ago

@atriOo Set the ButtonTopic to something other than the normal topic and a button press will just send an MQTT message but not toggle the relay. Search for ButtonTopic on this Wiki Page. This worked for me with recent EU version and the newest Tasmota release. There is no need to change the source code.

dcazarez05 commented 6 years ago

@meneelyt Can you explain how you do it to install Tasmota with Sonota.exe? I try but I just can't. I have Sonoff touch and on them I can install with Sonota.exe but not on Sonoff t1 us.

7h30n3 commented 6 years ago

@kegra Did you get rid of these strange button behavior with the tips @kanttti suggested?

~~I also have an T1 R2 2CH and button1 occasionally turns on and off. The log shows that the button was directly pressed (so not triggered by MQTT or whatsoever). I also removed the plastic film, but nothing changed. Button2 works fine. I've run out of ideas.~~

Turns out, it was just this known issue: https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-T1-UK-and-T1-EU#known-issues-please-read

luketoh commented 6 years ago

@meneelyt @PiOver2

Please help us by providing specific instructions. Mine is a 1 gang T1 US R2 version 1.8.1 firmware. I held the only button for 7 secs, release, and hold for another 7 secs. The light will blink continuously and broadcast the ITEAD SSID. Then I tried Sonota but then after I connected to the ITEAD SSID and reconnected to my own router's SSID (I think Stage 2), then the T1 fails to connect to my PC "Server". The led flashes 2 times and pause...2 times and pause etc.

Please help!

subzero79 commented 6 years ago

@tosie can you clarify if is possible to set button topic to only one button? Seems like the option turns all three buttons into toggles. If is not possible with the console is the only option then the one described by @SupraJames?

gitolicious commented 6 years ago

I have two T1 2CH EU lying around. As I currently don't have any use for them switching the built-in relays, I thought about using them as nicely looking remote switches indepedendently.

After taking off the front plate and PCB it should be as simple as powering the chip with 3V3 via J1/J3 or with 5V via J2 with a regular USB charger, and somehow tape it to wherever I want it to be. Connection of the buttons to some logic will happen via NodeRed. Just need to find a good connection for the wiring (would prefer J2 for that reason) and a back plate.

Do you see any issues with that setup being run permanently?

Stefos13 commented 6 years ago

hello to the community,

I got yesterday the T1 shown in the picture and i want to flash it, can someone tell me how to put it in flash mode? Pins are 3.3V Rx Tx GND starting from the square one correct? Which one is the GPIO0? i read something about reset button and touch button but i do not have reset button. baudrate should be set to 74480 and the latest sonoff.bin firmware it will work? Thanks for your time.

20180823_005957 20180823_010016

ascillato2 commented 6 years ago

Hi,

Closing this issue as it is too long to follow. Please, if you have an issue, open a new one with the troubleshooting template completed in order to help you properly.

Thanks a lot for everyone sharing it experiences.