stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
127 stars 41 forks source link

Tuya-based Switch bricked #149

Closed bastian987 closed 5 years ago

bastian987 commented 5 years ago

<<<<<<< HEAD

IMPORTANT NOTICE If you do not complete the template below it is likely that your issue will not be addressed. When providing information about your issue please be as extensive as possible so that it can be solved by as little as possible responses.

FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED

8f585b7f5354b19aff4bc6d1f238df4588d5693f Make sure these boxes are checked [x] before submitting your issue - Thank you!

(Please, remember to close the issue when the problem has been addressed)

I'm currently installing electric shutters and therefore tried out a Jinvoo Smart Switch with this cool Tasmota fork. The switch is Tuya based (https://docs.tuya.com/en/hardware/WiFi-module/wifi-e3s-module.html), I could flash standard tasmota with tuya-convert and all seemed to work fine. I could also flash the minimal version of this stefanbode fork, but the full version seem to have bricked the device: when plugged in, the LED flashes quickly, the switch can no longer be accessed in the browser, it does not connect to the wifi.

Is this issue known already, can it somehow be fixed?

(I don't worry about the switch, I am well aware this is experimental)

stefanbode commented 5 years ago

No, this version is 99% the same like the original one. I try to change as minimal as possible. Therefore the behavior is unusual but it was already reported one time, but not reproduceable. If connecting serial you should be able to flash in any case. Check if there is a WiFi opened by the device.

bastian987 commented 5 years ago

Thanks for the quick reply, it solved the issue for me! Actually, a sonoff-xxxx WiFi was opened, I could connect, enter the Wifi credentials and configure the device. I'm new to Tasmota and didn't expect the credentials are overwritten -- I'm sorry. Thanks again, I'm now looking forward to awesome shutter control :)

In case somebody else tries this: I used the following configuration for the Jinvoo Smart Switch Dual 52,0,0,18,22,0,0,0,17,21,0,0,0 (put this in modify template, then select the created template in configure module).

stefanbode commented 5 years ago

The issue is that my config definition is a bit larger than the original one and need some more bytes. The new algorithm for detecting errors reject a new flashed device because of the wrong checksum and bring it back to default. Since now I haven’t found a suitable way for me to overcome this new check.