gbg108 said:
I tried the scripting solution for my Gosund SW2 and it worked pretty well. Thanks for putting that together.
But I was still getting some flaky behavior when using the touch panel due to the 47 character limitation on serial data mentioned earlier. It was bothering me so I looked into fixing it which eventually I decided to just skip the script and do a driver directly. I'm new to Tasmota so I doubt I hooked things up "correctly" enough for a pull request, but it's working fine for me and I figured I'd post it here in case anyone else isn't fully happy with the scripting solution.
https://github.com/gbg108/Tasmota/releases/tag/v9.0.0.3_GS1.0
Process is the same as any other versions -
Load it (probably need to load the minimal FW first due to the size)
Reset settings with 'reset 6'
In configurations select 'Gosund Dimmer (76)"
Thank you for adding support for the Gosund dimmers at a lower level. I was having issues with the scripting,
where I could use operate the dimmer from the web ui, but whenever I operated from the touch panel Tasmota would crash and the device would restart.
The new firmware prevents crashes (I haven't had one yet), but I am still experiencing problems. I can control the on/off and
brightness level from the web. But when I change the brightness from the touch panel the brightness in Tasmota doesn't update.
Pressing the physical on/off button will send:
07:32:51 MQT: stat/dimmer1/RESULT = {"POWER":"ON"}
07:32:51 MQT: stat/dimmer1/POWER = ON
07:32:52 MQT: stat/dimmer1/RESULT = {"POWER":"OFF"}
07:32:52 MQT: stat/dimmer1/POWER = OFF
Operating the physical touch sensor will send nothing.
The light still changes brightness and the indicator lights change too,
but the brightness does not match the slider in the web UI.
Operating the slider in the web UI will send:
07:25:20 MQT: stat/dimmer1/RESULT = {"POWER":"ON","Dimmer":11}
07:25:21 MQT: stat/dimmer1/RESULT = {"POWER":"ON","Dimmer":42}
07:25:22 MQT: stat/dimmer1/RESULT = {"POWER":"ON","Dimmer":90}
(expected operation)