I HAVE AN ESP01 RELAY CARD TO BE INTEGRATED IN ESPHOME …
I HAVE ALREADY USED FOR OTHER PROJECTS, BUT IT DOES NOT WORK WITH ESP HOME.
SUBSTANCE HAS A SERIAL CHIP THAT OPENS AND CLOSES THE RELAY WITH SERIAL COMMANDS THROUGH THE TX PIN OF THE ESP01 SO:
EXAMPLE OF COMMANDS COMPILED BY IDE ARDUINO
// RELAY SERIAL OARD HW655 ESP01
byte relON [] = {0xA0, 0x01, 0x01, 0xA2}; // Hexadecimal command to send to serial for open relay
byte relOFF [] = {0xA0, 0x01, 0x00, 0xA1}; // Hexadecimal command to be sent to serial port for closed relay
THIS YAML ESFOME I HAVE TRIED TO WORK BUT NOTHING TO DO
I haven’t worked on that card anymore because it’s installed in my PC. I used it with other firmware to turn it on remotely … I didn’t have time to take it apart, but I’ll do it shortly. I will let you know…
when I tried the firmware I had another card like the ones that didn’t actually work at the hardware level and I gave up. but now that I remember the firmware I had written it. soon I’ll turn it to you. try it and let me know