@TheEebb Sorry, but no go on all accounts. I even recompiled your files as well, just to make sure I didn’t mess anything up the first time around… still no bueno. If I cut power to the switch, whether I’m configuring via module or my template (and yes I’m setting your Tuya TX Special 108 option), it still requires a reset 6 and reconfiguration.
I think there is some confusion with my post about on/off and brightness. Brightness change never refers to trying to turn on/off the switch, so consider that mention to be between 1-100%, never “0.” Basically WiFi commands are not updating the switch, be it web server or something like HA. When the switch goes back to its “old ways” (like after a physical power cycle), WiFi DOES update the switch again, but with the dreaded Off/On/On/On/Off issue.
Mind you electrically controlled devices (e.g. anything connected to “Load” on the switch) still turn On/Off and brighten just fine with physical button presses… it has always done this, even on stock Tasmota… it just doesn’t update the “software” correctly, so things like HA and automations function improperly. So basically what I’m seeing when your firmware is doing something “different” than stock firmare are:
- Physical switch changes for “Loads” function correctly;
- Physical switch changes for “Automations” function correctly;
- WiFi switch changes for “Loads” do not function at all;
- WiFi switch changes for “Automations” function correctly;
- Soft restarts do not affect your firmware changes; and
- Hard restarts (power removal & reapplication) do affect your firmware changes.
Hope this helps in the bug hunt, and again what you’re doing is super appreciated!