Jump to content


Photo
- - - - -

Gosund WiFi dimmer replacing firmware


  • Please log in to reply
50 replies to this topic

#46 reverendalc

reverendalc

    Newbie

  • Registered
  • Pip
  • 7 posts

Posted 29 January 2021 - 06:48 PM

well, I'm afraid that perhaps the status LED is controlled by the script and not the template... I've tried all possible configurations of the LEDi variable with no change in behavior



#47 sully81

sully81

    Newbie

  • New Member
  • Pip
  • 2 posts

Posted 02 February 2021 - 09:20 AM

I have purchased several of the Gosund SW2 dimmer switches over the past year and have been able to successfully load the Tasmota firmware using the OTA method.  Recently I purchase a 4-pack of the switches off of Amazon that seem to be a newer design than the previous ones.  The OTA flashing does not work but I was able to load the tasmota firmware using the serial flash method.  I have tried several different flavors of firmware but the result is always a very flaky response to commands from the web interface and also the physical switch itself.  In the console, I can see all the commands are being received by the switch but they don't always actually change the dimmer setting or even the on/off setting.  The datecode on these switches is "Date Code: 12/2020".  I have tried two out of the four switches that I have with the same results on both.  Has anyone else had luck with recently purchased SW2 switches?



#48 pete_c

pete_c

    Cocoonut

  • -=Gold Supporter=-
  • 10362 posts
  • Location:House
  • Experience:guru
  • Software:Main Lobby, Open Source Automation
  • Hardware:HAI OmniPro II, Mi Casa Verde Vera, Ocelot
  • Tech:X10-PLC, X10-RF, UPB, INSTEON, Z-Wave, ZigBee, 1-Wire, xAP, xPL, ALC
  • Audio:Russound
  • Video:MythTV
  • CCTV:analog, ip, dvr
  • Phone:Asterisk, FreePBX, Ooma, POTS, VoIP via ISP

Posted 03 February 2021 - 06:42 AM

Yeah here purchased my Gosund SW2 dimmers back in July, 2020.  Reading this on the Tasmota templates page I did not think I would be able to use OTA Tuya convert on them and I did.

 

Gosund SW2 Dimmer Template

 

Tuya-Convert might not be possible for this device if the manufacturer started using newest Tuya firmware since this template was published (2019-12-10).
 

In order to be able to flash the device from the pins, make sure to disconnect the front panel from the rest of the device. If not done, the tuya MCU will prevent the ESP chip to be flash.

To use the script, you have to compile Tasmota with Scripting enabled. A precompiled binary from development branch is availiable here.

All dimming and on/off functionality is controlled by an MCU that does not follow the Tuya protocol. Dimming and on/off can be set by Tasmota using simple serial commands. Reading local dimming when set by the capacitive touch panel requires a Script-enabled build and the script below to process serial status codes sent by the dimmer MCU.

Status codes take the form of 24xx012123, with xx ranging from 01 to 64 (hex 1-100).

Minimum dimming level may vary by light fixture - adjust the ‘off’ value to match your setup in the >D section.

I did initially use the posted script then a Cocoontech user @gbg108  posted a custom Tasmota bin that worked with the dimmer switch.

I would suggest getting older manufactured Gosund dimmer switches.



#49 pete_c

pete_c

    Cocoonut

  • -=Gold Supporter=-
  • 10362 posts
  • Location:House
  • Experience:guru
  • Software:Main Lobby, Open Source Automation
  • Hardware:HAI OmniPro II, Mi Casa Verde Vera, Ocelot
  • Tech:X10-PLC, X10-RF, UPB, INSTEON, Z-Wave, ZigBee, 1-Wire, xAP, xPL, ALC
  • Audio:Russound
  • Video:MythTV
  • CCTV:analog, ip, dvr
  • Phone:Asterisk, FreePBX, Ooma, POTS, VoIP via ISP

Posted 03 February 2021 - 06:53 AM

Or ask Gabriel Goslin over here ==> gbg108



#50 sully81

sully81

    Newbie

  • New Member
  • Pip
  • 2 posts

Posted 04 February 2021 - 04:16 PM

@pete_c, thanks for info. I did try @gbg108's firmware and had the same issue. In general it works but less than 50% of the commands that I send actually take effect.

I'd love to find the older modules however I'm not sure that's possible for me since I'm purchasing them off of Amazon.

#51 pete_c

pete_c

    Cocoonut

  • -=Gold Supporter=-
  • 10362 posts
  • Location:House
  • Experience:guru
  • Software:Main Lobby, Open Source Automation
  • Hardware:HAI OmniPro II, Mi Casa Verde Vera, Ocelot
  • Tech:X10-PLC, X10-RF, UPB, INSTEON, Z-Wave, ZigBee, 1-Wire, xAP, xPL, ALC
  • Audio:Russound
  • Video:MythTV
  • CCTV:analog, ip, dvr
  • Phone:Asterisk, FreePBX, Ooma, POTS, VoIP via ISP

Posted 05 February 2021 - 04:49 AM

Maybe Ebay.  You can ask about the date code before purchasing them.  I am only using GBG's firmware here.  Maybe clear the chips using ESPTool a couple of times.  Then write the Tasmota bin.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users