ESP8266 WiFi Smart Switch 230V

Hi everyone,

I'm looking for an ESP8266 WiFi Smart Switch that is programmable with Arduino via USB, fits into standard 230V socket for indput and output, and is CE certified. Does anyone know of a product that meets these requirements?

Thanks in advance for any suggestions you may have!

It should be suitable.

1 Like

HINT: If you plug it into 220V and your Computer you will let out a lot of smoke. If you do not have experience with mains I highly recommend you do another project or get some qualified help.

Trying to be more specifik here : https://forum.arduino.cc/t/ready-made-wifi-smart-switch/1075578

Your other topic on the same subject deleted.

Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.

Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.

Repeated duplicate posting could result in a temporary or permanent ban from the forum.

Could you take a few moments to Learn How To Use The Forum

It will help you get the best out of the forum in the future.

Thank you.

When trying to ask a legitimate question and then forum users respond that it will cause smoke to come out of one's computer and that one should seek professional help, I question if the question is formulated correctly, and then I would create another question. I have never experienced a forum before where the users are so much like a police force. :frowning:

I will try to reformulate the question

Is there any ready-made "WiFi Smart Switch" for example based on ESP8266, available in the market that one can program themselves to call their own webservice endpoint via http and which has a ready-made 230V part? When doing DIY projects with both low voltage and high voltage, it can be troublesome to get it approved. So I am looking for a ready-made 230V Smart Switch with for example ESP8266 and WIFI and which has a USB port which one can program the device with Arduino, does it exist?

Why did you not just add a post to this topic as you have done now ?

It seems that mostly new questions are being answered. And when there have been a few silly and irrelevant answers, the thread comes to a standstill :slight_smile:

There are a number of ESP8266-based WiFi smart switches on the market that meet the requirements you specified. Some popular options include:

  1. Sonoff Basic R2: This is a low-cost smart switch that can be controlled over WiFi using the eWeLink app, and it can also be programmed using the Arduino IDE via USB. It fits into a standard 230V socket and is CE certified.
  2. ESP8266 WiFi Smart Switch: This is a smart switch based on the ESP8266 WiFi module. It can be controlled over WiFi and also be programmed with the Arduino IDE via USB. It fits into a standard 230V socket, and it comes with CE and FCC certifications.
  3. ESPurna: This is an open-source firmware for ESP8266-based smart switches. It can be programmed using the Arduino IDE and controlled over WiFi. It fits into a standard 230V socket and it can be used with many popular smart switches such as Sonoff, Shelly, and others that are CE certified

It's important to note that the ESP8266 module itself is not CE certified, so ensure the complete solution you buy is CE certified as it should have been tested and certified by the manufacturer or the seller.

Please be aware that working with mains voltage can be dangerous and it is important to be familiar with all necessary safety precautions and laws before undertaking any project with mains voltage.

1 Like

Thanks for a great reply :slight_smile:

I have a electrician education, but you are correct, that you should take safety precautions

Thanks again :slight_smile:

1 Like

Hey, do you know if I need a special cable to connect my USB to the Sonoff Basic R2? I prefer not to do any soldering if possible."

Regarding the ESP8266 WiFi Smart Switch, I'm not sure which specific product you're referring to. Can you provide me more details about the device / link

Thanks in advance

Not unless you build it.

The Sonoff Basic R2 is an ESP8266-based WiFi smart switch that allows you to control devices connected to it using a mobile app or a web interface. In order to connect to the device and flash new firmware to it, you will need a USB to serial adapter. This is a cable that has a USB connector on one end and a 3.3V serial connector on the other end. You can use this cable to connect your computer to the Sonoff Basic R2's programming pins (usually labeled as TX, RX, GND) and use software such as the Arduino IDE to upload new firmware to the device.

You don't need to solder anything, and the cable comes with USB connector on one end and 3.3V Serial connector on the other end. Generally you can find such cables on the internet , most of them are compatible with the device and work just fine.

Keep in mind that before connecting the device to your computer, you should disconnect it from the power source or otherwise you may damage both device and the USB-Serial adapter.

You may also find the instructions on the manufacturer website or in the manual that came with the device, and the community of sonoff devices is also very active, so you can look for help on their forums or on the web.

1 Like

I think the Sonoff S20 is the more close to a "ready-made" device that you can find on market but it doesn't have external usb port.

Look at:

1 Like

the sonoff minir2 as mentioned in post2 is the one

with the manufacturers app you can set it to diy mode
and control it from the web with simple http post commands
it can also be reflashed using their app to your own code
and from there just use ota . and they allow for a manual switch that
works in tandem with the code , what more could you want ?

1 Like

Great, does it have RTC?
Would like it to make a http req every hour to get if it should be on or off

Why?
Whatever it is interrogating to determine its state can just as easily set it off or on as and when required and keep track of its state also. If you brew your own code then an esp can keep its own time and sync it with a ntp timeserver if you have a network connection

1 Like

Yes, you are correct
With millis and the server datetime returned in the request

In diy mode its just a switch but has some smarts
It can auto switch off after a user settable time
It can remember its last state and power back in that state if req
Its easy ,simple and reliable

I have set some of mine up with fauxmoESP server so i can use alexa with them . I also found nodered excellent as a controller to rule them all

1 Like