Hi!
I am new to the electric field but I know how to code since I am a programmer.
I want to implement home automation. I checked my socket boards they look like below picture. Socket have only 1 terminal also switch have only 1 terminal. Normally we connect L wire to switch and N wire to socket to make it work. (And its working manually) How can I control it via esp32, manually and also real status either socket is on/off.
I have code and app both ready. I am using mqtt for communcation. I just want to know how to make a circut. I googled about it and I came to know the boards they are using have switch with 2 terminals but in my case switch only have one. Seems like its internally integrated with socket.
Welcome to the forum
You started a topic in the Uncategorised category of the forum when its description explicitly tells you not to
Your topic has been moved to a relevant category. Please be careful in future when deciding where to start new topics
Note that this is an international site, and that any advice that is given may not agree with local regulations.
In this country we would put the switch in the live conductor.
It was my mistake. I edited the post. But do you have a solution?
Around here all sockets have at least 2 terminals and so do the switches. Perhaps you can make a drawing of what you really have and how you want to connect the pieces.
Yes I know. But currenty I have a board with only 1 terminals for each socket and switch. Look at second image. there are only 2 terminals. 1 for socket on left side and 1 for switch on right side.. and these 2 are connected to AC main. and board is working fine. I just want to add esp32 to it so I can also control it via app
Ok, if you say so. But still need to make a drawing of what you will be using and how it will connect.
Please, please, buy a duplicate of your panel and connect it using a 9 volt battery. Use you digital volt meter to prove you have wired it correctly.
For ALL your development use this panel, not the one powered by your AC house supply. When your project works at 9 volts DC, only then consider adapting it to the original connections.
It is required in our country that it be in the live wire,
Post your schematic and note what country this is in.
Generally what you want to do can be done with a relay.
It appears that your switch and socket do have two terminals each. The difference is that one terminal from the switch is connected to one terminal on the socket. This connection is concealed in the plastic bar joining th two devices.
In order to control the socket remotely you will need to leave the attached switch in the “ON” position. Of course you will always be able to turn the socket off with the local switch but that won’t allow you to turn it back on remotely.
Thanks for your answer. I really appreciate it