Local Wi-Fi/MQTT Automation of Mains Appliances with Sonoff and Tasmota @PlayfulTechnology
Local Wi-Fi/MQTT Automation of Mains Appliances with Sonoff and Tasmota  @PlayfulTechnology
Uploaded December 2019 | Updated November 2026, 1 hour ago
SonOff devices are cheap Wi-Fi controlled "smart switches" often used for smart home automation. The problem with them is that they require an internet connection, and are triggered from a central Sonoff server. That might be great if you want to integrate with Amazon Alexa or Google Home, but not so great if you'd rather have the security and control of using them on a private network or controlled by a local server application. This was the case when I wanted to use my Node-RED based Escape Room control software to control mains appliances.
Fortunately, there's a (relatively) easy solution - using an FTDI programmer you can reprogram the ESP chip inside the Sonoff to use a custom Tasmota firmware instead - that lets you connect to a local Wi-Fi / MQTT broker instead, which can be triggered by your Node-RED flow. You can also connect directly to the IP address of your smart switch from, say, your mobile device to toggle power on/off.

- You can buy a Sonoff basic switch for around $5 from banggood.com/custlink/DmmvAcybbb
- You'll also need an FTDI programmer, which is around $2.50: banggood.com/custlink/v33DQcEQkE

- Download the latest Tasmota firmware from github.com/arendst/Tasmota/releases

- The easiest way to flash your Sonoff chip to use the new firmware is using Tasmotiser, available from github.com/tasmota/tasmotizer/releases

 Full guide is also available from tasmota.github.io/docs/#/installation


For more tutorials regarding escape room technology, see patreon.com/playfultech
Local Wi-Fi/MQTT Automation of Mains Appliances with Sonoff and TasmotaUltrasonic Range Sensor Touch-Free Input Tutorial for Arduino / ESP32Create Glowing Liquid!Escape Room Tech Prop Tutorial : Document Retrieval SystemSlipring Sword - Escape Room Puzzle Tutorial
Playful Technology |

Local Wi-Fi/MQTT Automation of Mains Appliances with Sonoff and Tasmota

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER