It’s nice to make your own stuff sometimes, rather than buying the off the shelf options.
Can I suggest a few minor modifications…
-
remove those unused plastic stand-offs to allow you to position the relay and the other stuff further apart, and fix everything down so that it can’t move.
-
think about adding an LED to indicate things, like connecting to Wi-Fi/ Blynk, and the on/off status of the relay.
-
think about adding a physical push button to allow control without the app. You’d need to synchronise the app button of course. You might also want to add a non-blocking routine so that the physical button can be used if the Wi-Fi or Blynk server are down.
-
adding an OTA update routine would be handy if you want to update your code without disassembling the socket.
The LED, physical switch and OTA (but not non-blocking code) are included in the example code for these switches…
Pete.