Dondolo wrote: ↑02 Oct 2021, 14:23
The Arduino code according to
on
byte open [] = {0xA0, 0x01, 0x00, 0xA1};
Serial.write (open, sizeof (open));
off
byte close [] = {0xA0, 0x01, 0x01, 0xA2};
Serial.write (close, sizeof (close));
Does it even work with the "Serial MCU controlled switch" plug-in?
Yes, this is the standard LCTECH command sequence, it is contained in this plugin. If you choose LCTECH, selected the correct baud rate, enable serial in ESPEasy settings, and disable serial logging, it should work. There were a bad batch which needs "Use IPD preamble" option. There were also a faulty batch which needs "command doubling" option to work.
Also there are several pieces of these LCTECH relays which are not original (clones) and even the other chip onboard is not programmed, so it can not be controlled by the ESP, does not matter, which firmware you use. And if it is not enough there are also some faulty ones, which has a power supply inadequate to even power on the relay.
![Erg Blij :D](./images/smilies/icon_e_biggrin.gif)
Not to mention soldering issues.
So although it is a very challenging and interesting game to try to make them work, but i will never buy from this kind of device.