-
Esphome Sonoff Switch To flash ESPHome onto the device we'll need to take it apart and connect to the serial pins on the circuit board. Please don't forget to The Sonoff Basic is a great little wifi switch that’s easily flashed with your custom firmware of choice to keep all of the control local and out of the nasty cloud. io – 10 Jun 20 Sonoff S31 A database of configuration files and guides for devices commonly flashed with https://esphome. Hi, i find this new feature great for 2 reasons: Easy to add into existing 2 way wiring without adding new cables. The switch is flashed and working correctly with the basic code that controls them though i want to add some more functionality in A Perfect Touch Screen Light Switch Solution? (SONOFF NSPANEL) In todays video we are flashing the Sonoff NSPanel with ESPHome. The main relay is bistable/latching, meaning a pulse on pin 1 switches the relay ON, and a pulse on pin 2 switches The SONOFF TX Ultimate is the latest Smart Light Switch by Sonoff with integrated LEDs. Once flashed, we'll be able to easily add it to #HomeAsssitant. e 2 switches 1 light ) (or 3 way) depending Sonoff Dual R1 This is a DIY solution, and you will need to have some knowledge of electrical wiring and enough capabilities to do this work safely. toggle: relay2 - platform: gpio pin: A deep dive into the Sonoff S31 and S31 Lite. Hold down the button while Sonoff BASIC R4 v1. This I have been trying to integrate a Sonoff S31 via ESPhome (currently using tasmota firmware) without luck as far as the power metering is concerned. program a Sonoff wifi smart plug and control it with Home Assistant and The all new Sonoff Dual R3, a Dual Relay Wi-Fi Smart Switch with Power Metering running esphome! My ESPHome Configuration This page is the starting point for all installation and configuration documentation of all my devices which are configured with ESPHome . toggle: relay - switch. In my specific context, the Sonoff Basic lives between the power socket and a lamp (the lamp is name: "${dev_name}_button" #toggle both relays on push on_press: - switch. Also all the features of the touch switches is explained with the real time use We focus on Home Automation, Security Cameras, and Smart Home products that are easy to put together, cheaper and offer many additional features than more expensive ones. toggle: relay switch: - platform: gpio name: "AlarmDecoder Sonoff Relay" pin: GPIO12 id: relay status_led: pin: number: GPIO13 inverted: yes I configured ESPHome Sonoff TH10/TH16 Information The Sonoff TH10 and TH16 are 10A/16A smart WiFi switches with optional temperature and humidity monitoring. I can just use this config . In HA it’s registered as a switch, is there a way to have it register The regular way to switch a Sonoff relay is to use the official ewelink app. With Magic Switch Mode, In ESPHome that's often called "inverted". You must remove the cover and use the serial header for first upload. Out of the box, the preloaded firmware ties it into various cloud services, You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you! 0:00 - Intro 0:56 - Sonoff SwitchMan M5 Overview 1:43 - Things you will need 3:02 - switch. [Sonoff T2EU 3C - Wall Panel Wireless RF Remote] [Sonoff 4Ch Pro R3] Second option I have is to just use one of the T1-T3 gang switch’s and try rewire the extra cables needed, Hacking Sonoff T4EU1C with ESPHOME 5 minute read What’s this? A no-neutral WiFi-controlled smart switch made by Sonoff? Yep, that’s In this project you'll learn how to use the ESP Easy firmware on a Sonoff basic smart switch and control it with Node-RED using Node-RED I am trying to write the code for my Sonoff M5 to run on ESP home. Sonoff S26 GPIO Pinout Flashing via serial To put the device into flash mode: hold the button connect board to the 5V (do not connect it to the AC) release the button start flashing Basic The Sonoff S31 is an inexpensive WiFi-controlled switched outlet. SwitchMan DIY SONOFF USING ESP8266-01: What is Sonoff? Sonoff Basic is an affordable device that provides users with smart home control. It gives you the ability to use your Switch with ESPHome, including the ESPHome is a tool that allows creating custom firmware for ESP8266 and ESP32 boards easily. I am trying to write the code for my Sonoff M5 to run on ESP home. This is an ESPHome custom component for the SONOFF TX Ultimate Smart Switch. I was able to successfully flash the firmware using the below yaml file and now I was Let’s go through and show you step by step how to flash a custom firmware on the Sonoff SwitchMan, such as ESPHome, to give you Taking advantage of these unique features requires a considerably more complex ESPHome configuration than the M5 series This will typically present as esphome rst:0x1 (POWERON_RESET), boot:0x13 (SPI_FAST_FLASH_BOOT). Can be GPIO Pinout # Basic Config esphome: name: sonoff_4chpror2 esp8266: board: esp01_1m wifi: ssid: !secret wifi_ssid password: !secret wifi_password logger: api: ota: - platform: esphome # Device Sonoff Wi-Fi smart switch Sonoff Wi-Fi smart switch Also, in case I forget, the smart socket is set to switch off every night. The sensor appears to I have ESPHome working controlling a range of devices, mostly self-built using NodeMCU and ESP8266_01 devices. This post shows how to control the Sonoff with the ESPHome component. Sonoff is a popular brand of smart Last year I released an open source solution on Github which showed how to flash a Sonoff S31 power plug on esphome such that the plug when turned off would automatically turn I found a basic version of the code below for the Sonoff S31 and made a number of improvements, at least for my use scenario. 4 differs from the previous iterations of the Sonoff BASIC in that the two colour LED is blue and red (opposed to green and red). Sonoff Wi-Fi smart switch Sonoff S20 Smart WiFi socket I have flashed ESPhome and the Portisch firmware to my Sonoff Bridge My esphome config is mostly based on the instructions here: RF In this video, Sonoff TX Ultimate Touch switch is flashed with ESP Home in Home Assistant to make it work locally. We'll connect these pins to a USB serial adaptor and use ESPHome's Lunch the ESPHome Flasher tool, and under Serial Port, you should now have the Sonoff switch coming up. In this Instructable I will show you how to configure it for use with Hi, I would like to use my Sonoff Switchman M5 as a smart switch for the yeelight lamp and not as a power cutter. On this video, I'm going to show you step by step how to use the Hi everyone, Quick question. The relays GPIO are active-high. The S31 version uses an ESP8266EX which can be reflashed with SONOFF BASICR4 is an affordable Wi-Fi smart switch powered by the advanced ESP32 chip for faster, more stable performance. My understanding is flashing an ESP32 with code supplied above (here is my I bought a couple Sonff Mini’s from Amazon this week, and when I looked for information on how to flash them (to ESPHome in my case) I Direct Mode: The switch will directly change the relay Double Toggle: Detect a quick double toggle Multiple Button Support: 'Easly' add an extra input to your sonoff I successfully flashed and integrated Sonoff Basic switches to Home Assistant. Once you've performed the initial installation using a programmer, you can set this to RESTORE_DEFAULT_OFF to make the device keep its state through power cycles. esphome: name: sonoff_s20 esp8266: board: esp01_1m wifi: ssid: !secret wifi_ssid password: !secret wifi_password logger: api: ota: # Device Specific Config binary_sensor: - platform: gpio pin: number: Not much, but if someone needs an example yaml file for Sonoff SwitchMan M5 3C you can find it here Works with the ESPHome integration of Home Assistant. Only install Flashing via the web installer and then adopting the device in Home Assistant is sufficient to use the p Detected touch events are visualized by short LED signals. Full guide: setup, config, flashing, and The Sonoff Basic is an inexpensive wi-fi switch. Hold down the button while Last year I released an open source solution on Github which showed how to flash a Sonoff S31 power plug on esphome such that the plug when turned off would automatically turn With the recent work on ESPHome (thanks @OttoWinter) and the new direct ESPHome API integration for HA, I finally pulled the trigger on Mine is just one, get this working better with the Home Assistant Energy Dashboard. GPIO Pinout Basic Configuration The following Ok, so I thought I would add a quick post, to possibly help someone trying to create a 2 way (i. For the Firmware, search and I have a sonoff mini which I am testing with ESP home. The goal is to mode: INPUT_PULLUP inverted: True name: Button on_press: - switch. Sonoff is RF Bridge Component The RF Bridge component provides the ability to send and receive 433MHz signals (like RF remotes/key fobs) using radio microcontrollers ESPHome firmware for Sonoff devices Powered by ESPHome and ESP Web Tools This site contains a list of Sonoff devices and pre-built base firmwares for each you can install to get started. io This website is a repository of device configuration templates and setup guides for Sonoff BASIC R2 v1. 4 v1. Below are examples when using either single state or dual state sensors. I’m looking for some guidance on getting the Sonoff R5 switch working with ESPHome / HA. As I # use esphome log viewer to get binary transmission for sensor state. The sonoff_d1 light platform creates a simple brightness-only light for the hardware found in Sonoff D1 dimmer. io firmware. It is a WiFi-based wireless ESPHome sonoff, configuration, esphome, lights, switch dosdroid (Dosdroid) April 9, 2025, 4:28pm 1 Hello, I had trouble finding the right value for timeout on MagicSwitch Hi, the sonoff basic r4 got an esp32 upgrade as well as a new ‘magic switch mode’ That one intrigued me because it allows me to install it to a My Sonoff BASIC units are equipped with an ESP-8266EX processor and 1MB flash. Intro. esphome. Looking at the differences between the Wifi and Zigbee version of this smart outlet. This opens the panel up to a whole bunch of customisation and creation. Make dumb electronics smart and automate anything with our how to setup Sonoff Basic with ESPHome & Tasmota guide! In this video we will walk you through the entire process of adding a Sonoff Notes Sonoff T1 R2 Touch Wall Switch Notes to boot chip (blue led blinking): connect ftdi to enter flash mode (blue led not blinking): short resistor R19 to GND then connect ftdi GPIO Pinout 2-Gang Version Sonoff M5 Wall Switch 1/2/3-gang | devices. This website is a repository of device configuration templates and setup guides for Most Sonoff devices are based on either ESP8266 or ESP32 microcontrollers, making them ideal candidates for custom firmware like ESPHome. Installations with Sonoff RM433 433MHz radio I have used the ESPHome example YAML for a SonOff Mini R4 Extreme and have it working as below in Home Assistant. The Total Daily Energy sensor works but it would be nice to have near realtime data. The ESPHome In this tutorial, we'll see how to install #ESPHome on a #Sonoff Basic. toggle: relay switch: - platform: gpio id: relay name: Relay pin: GPIO12 # the device has two LEDs: a red LED wired to the relay In a previous article, I showed you how to flash Tasmota to a Sonoff RF Bridge, which allows you to receive and Alternative Config for Lights This config will cause the entities to appears as lights rather than switches in Home Assistant I have been using this example code from @frenck The code works perfect, but i would like that the sonoff showed up in HA as a light, not switch (better for google assistant) I still Flash your Sonoff RF BridgeR2 with ESPHome and integrate 433 MHz devices into Home Assistant. Other ways require you to ‘flash’ the Sonoff device with Tasmota or Since the sonoff is meant to act as a switch, I found this post where you can convert it to a light rather a switch in HA. The switch is flashed and working correctly with the basic code that controls them though i want to add some more functionality in I can control them on the sonoff itself, I have a esp32 with ble proximity sensor and a switch that controls them, I have pir sensors that automatically turn them off Sonoff R2 Enclosure & ESPHome: The Sonoff Basic R2 is a great switch for home automation. Flashing it with the sample configs of ESPHome (cf. I have a lot of different Sonoff switches (all flashed with ESPHome) and use Home Browse switch devices for ESPHome DETA Grid Connect Smart Switch (Single 6911HA / Double 6912HA / Triple 6903HA / Quad 6904HA) By following these steps, you’ll have effectively connected 433MHz devices to Home Assistant using the Sonoff RF Bridge and ESPHome, In addition, Sonoff allows controlling the switch in a local network, which enables integrations into alternative smart home control systems. Installed esphome, configuration as below, I searched the entire Hi, I’ve installed 3 sonoff minis into my house which 2 are working fine but one of them the relay keeps switching on and off fast randomly. When connected to and powered by its wall plate, it Initial Install Sonoff S31 Initial Install This device cannot be converted to ESPHome using tuya-convert. With Sonoff-Tasmota, it’s fairly straightforward to connect external switches, such as push button or even rocker switches to a Sonoff device and Not much, but if someone needs an example yaml file for Sonoff SwitchMan M5 3C you can find it here Works with the ESPHome integration of Home Assistant. Recently, the ESPHome Examples site featured @bruxy70's Irrigation My story with Sonoff RF Bridge and ESPHome. Refer to picture 1. Our goal is to have local Sonoff Wi-Fi smart switch Sonoff S26 Smart WiFi socket ESPHome-Configs. I go through integration into Home Assistant using ESPHome. 0 Sonoff BASIC R4 is upgraded with esp32c3 and a new 'magic mode switch' feature that can be enabled with custom component by ESPHome for Sonoff T5 family of Switches It’s hard to beat Sonoff switches when it comes to well-made, affordable, Home Assistant Sonoff has recently released some brand new affordable smart wall switches called the Sonoff SwitchMan M5, featuring an ESP32 inside – and I would like to now update the yaml and firmware so the switch can actually do something, but not able to figure out what exactly needs This page documents Sonoff devices that can be flashed with ESPHome firmware and provides configuration examples for various Sonoff models. I rely a lot on Initial Install Sonoff S31 Initial Install This device cannot be converted to ESPHome using tuya-convert. I’m now trying to add I have a Sonoff Basic with ESPHome in it, that I’m using to control a light. # use this for single state sensors (single trigger) - platform: The ESPHome projects I have done around our house have been extremely reliable and useful additions to our smart home. The problem seems to Today’s video, I'm going to show you step by step how to use the ESPHome add-on in Home Assistant to flash a custom firmware to a Sonoff basic switch.