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.05k stars 4.78k forks source link

Compatibility with T1 #582

Closed ageorgios closed 6 years ago

ageorgios commented 7 years ago

Is Tasmota compatible with Sonoff T1? If not, will it ever be? It is great for motored shades.

https://www.itead.cc/sonoff-t1.html

ferbulous commented 6 years ago

@codedmind Try flashing to t1 3ch firmware, see if the 2nd button responds after that Or the sonoff 4ch

codedmind commented 6 years ago

@ferbulous flashing or change type?

ferbulous commented 6 years ago

@codedmind Chane the type should be sufficient

codedmind commented 6 years ago

@ferbulous I will try that, thanks

LurchiStromberg commented 6 years ago

I have the 3 Gang Switch.... Works without problems.....

After flashing you should update the firmware with Webinterface...

SONota flashes an older Version of Arends Tasmota....... Just go to the Wiki and download the newest *.bin

son2 son1

The 29 should work for you

ageorgios commented 6 years ago

@codedmind I saw from the link to aliexpress that this is not from iTead. Is this 2gang EU socket also compatible with Sonoff? Do the buttons work? Is the build quality good? Does it have holes for the serial connection?

codedmind commented 6 years ago

@ferbulous change to t1 3ch works ok :) @LurchiStromberg after update with the latest firmware from tasmota it works well with t1 2ch @ageorgios yes, is a "clone" i can upload the firmware with sonota and it works. The build material is good, but the relay isn't ssd, so it make noise when change state. Other think i notice is that exists a certain delay toggle the switch(in both cases in the switch and via tasmota) but because sonoff don't sell an EU version this is a acceptable alternative

ferbulous commented 6 years ago

@ageorgios As long as it's using itead chipset/ewelink app You should be able to flash it I bought this one which is pretty much a cheaper version of sonoff t1 with more color option

https://m.intl.taobao.com/detail/detail.html?id=554114857768&spm=a2141.7631563.1.detail&ttid=212200%40htao_android_4.1.4

codedmind commented 6 years ago

@ferbulous the relay in that version are ssd ?

davidelang commented 6 years ago

if it uses an ESP8266 you should be able to use Tasmota on it, it doesn't matter what firmware is currently on it.

spike3312 commented 6 years ago

Anyone still struggling with the Sonoff T1 R2 units.

They are an ESP8285.

Pin connections in Arduino are: GPIO feature 0 Button 1 4 Relay 3 5 Relay 2 9 Button 2 10 Button 3 12 Relay 1 13 Wifi led

And the board connections for programming are: sonoff t1 r2 wiring

lszeremeta commented 6 years ago

@ageorgios Sonoff T1 EU versions are now available: https://www.itead.cc/smart-home/sonoff-t1-eu.html

dixonjamesa commented 6 years ago

Hi. Managed to sort out flashing to a UK 2 switch T1 this evening, but it is continually rebooting - seems to receive RESET command from something, reporting reboot reason as software/system. Anyone else encountered this? In general is all working (switches work and respond to mqtt messages), just reboits continually, few seconds after it connects to the mqtt server.

davidelang commented 6 years ago

set logging to more detailed and see what it reports. k

dixonjamesa commented 6 years ago

Ok, nice Seem to be getting:

RSL: Group 0, Index 1, Command RESET, Data 1 Any ideas where that might be coming from? Nothing on the mqtt network. Could it come from flash, or hardware config?

dixonjamesa commented 6 years ago

Hmm. Debug_more... Seems to be receiving the mqtt topic /Reset, but I'm not seeing that when tracing all mqtt traffic in a separate console. Does the tasmota code use the mqtt message parsing code itself not just for network messages? If so, next step need to know why it would be resetting?

dixonjamesa commented 6 years ago

Ok, to answer my own question, yes. It's using the mqtt message code internally. Coming from line 1993 in sonoff.ino inside ButtonHandler(). looks like it thinks button 0 (i==0) is being held. does this mean gpio0 is staying low? (which way around do the 8285 gpio pins work?)

davidelang commented 6 years ago

check to see if you have a 'retained' message on your mqtt server (try setting it to a high debugging level)

if the last message sent to the device was reset, and the mqtt server is set to retain messages, as soon as you connect, it will send the last message (just like you instructed it to) and reset the device.

I really hate the retain feature, It causes more support questions than anything else, even 'how do I flash'

davidelang commented 6 years ago

what do you have specified as button0?

dixonjamesa commented 6 years ago

Well that was frustrating. Turns out it was because the ftdi wasnt providing enough power to the unit, presumably resulting in floating gpio values. Powered from the mains, all is working fine - this is going to be a great addition to the house! Appreciate the suggestions David - helped me get going through the code to trace what on earth was happening.

Kallb123 commented 6 years ago

Is Tasmota compatible with the RF function of the T1? For example, the user guide says to hold the touch button down until a beep and then press an RF remote button. Will this still work with Tasmota flashed? The wiki says the procedure for the Sonoff RF remains the same as the iTead software so I hope that also applies to the T1.

Also, I have just seen that there is firmware version 1.7.0 available. Should I update or will this get in the way of flashing Tasmota?

matphillips commented 6 years ago

@Kallb123 I hope to be wrong, but I dont think RF works. At least, not that way. I have a T1 running tasmota and holding down the button in that way seemed to just reset the switch to defaults ! (Tasmota defaults, not resetting the switch back to stock fw)

Kallb123 commented 6 years ago

@matphillips Argh no, so I have to choose between controlling it with a remote or controlling it via mqtt.

I do actually have the RF Bridge as well, so I could use the rf remote to send an mqtt message to a flashed T1 I suppose?

arendst commented 6 years ago

RF procedure works fine with tasmota as long as you disable the tasmota long press function. See other issues with correctt amswer. See wiki about setoption commands to use.

jeylites commented 6 years ago

is it wise to flash all devices with a default static IP address Eg: 192.168.1.2 and assign specific IP address via the tasmota terminal as we go along? The reason I'm asking is I've 13pcs sonoff T1 touch flashed with a default IP address and I gave it unique IP addresses as I was going through the install.

All worked until today I had a quick power outage, power went out and came back 5 seconds later. What I realize was all the T1 when back to default setting and all custom setting has been lost. I had to manually configure each T1 again.

matphillips commented 6 years ago

I set everything to DHCP and assign static leases in the pfSense box. That way you "get" static IP behaviour, but if you change your dns settings or something, you can just update the duchy server and the devices will get the new settings.

Kallb123 commented 6 years ago

I would either flash with all custom static IPs, or flash with DHCP and then set up reservation.

I managed to get this flashed, but MQTT seems to work ok so I shouldn't need the RF part. I disabled the long press only, just in case.

jeylites commented 6 years ago

Hi,

I have got two version off T1 touch UK. The old module I’m able to use the Arduino OTA functionality however the new type that functionality is not working.

Why is that, any ideas?