Esphome sonoff mini ) I tried to use “restore mode” but it doesn’t have option - toggle. 4 v1. HA then detects the device. After voltage is applied it connects to WiFi but after switching the relay (from HA or with PINs) whole May 22, 2020 · ESP (ESP32/ESP8266, Board/Sonoff): NODEMCU, D1 Mini PRO Affected component: Description of problem: Disconnections every 3 minutess or so Problem-relevant YAML-configuration entries: The Sonoff Mini is, as the name implies, a very small device, designed to be hidden where there's only supposed to be cables. May 25, 2021 · I hope this instruction on how you can flash the Sonoff MiniR2 with with firmware 3. Why? Let’s look at the details. 3 GND TX RX. YAML file: esphome: name: sonoff-minir4 friendly_name: Sonoff MiniR4 esp32: board: esp32dev framework: type: arduino # Enable logging logger: # Enable Home Assistant API Jul 29, 2025 · ESPHome esphome hiren1771 (h1771t) July 29, 2025, 9:09am 1 Hi all, Wondering if anyone has esphome firmware working on a sonoff mini L2 (no neutral wire needed). (eWeLink stinks; Tastmosta’s great, but so many different places I need to go to set all the configuration options detracts from the greatness. Use a Oct 6, 2021 · Hi everybody, Today I was flashing the custom ESPHome firmware to my Sonoff MINI R2 and after this job was done I tried out of curiosity to connect this small device to low DC voltage and miraculously it was working. Let alone enable control without it being connected to the internet. Is this posible only using esphome scripting?? Jul 18, 2020 · I recently went to visit my parents who have one of my old Pi 3’s running OMV 5 for a local Plex server to allow them to stream music around the house. I want to use a sonoff mini with esphome on a regulare push switch to controll a light group i have in home assistant. Jan 15, 2024 · After successfully flashing the MiniR4 and resetting, the device constantly reboots. toggle: relay_1 - min_length: 351ms max Jan 31, 2025 · I use a Sonoff mini-d dry contact relay for this. ESPHome turns ESP32, ESP8266, and RP2040 microcontrollers into fully-featured smart home devices. ) And, I don’t have the time or energy to physically go to each device, solder cables and connect each device to a ESPHome - Smart Home Made Simple. Since it's not supposed to be visible, it's also designed to easily attach an external button. 0). To keep things simple, we will use ESPHome CLI, so you will need Python installed on your PC. To flash a custom firmware to a Sonoff basic switch. I’d like to flash them with ESPHome, put them behind conventional light switches and use them alongside smart bulbs. Working: Both relay’s Both switches Button Status LED Not working: Power metering (feature request@esphome. I tried hard to get the same behavior as i have in the tasmota: (Power on state : toggle. io If anyone knows how SONOFF POW Origin is a Wi-Fi smart power meter switch with real-time monitoring of power, voltage, current, and energy consumption. In my case I made it under /home/<user>/Projects/esphome. 3vdc is found on the U2 pad on the bottom. They use MQTT for communication. g. A 1-Wire bus is required to be set up in your configuration for this sensor to work. marcos (Marcos) January 4, 2024, 3 Apr 24, 2025 · Hallo, ich versuche ein Sonoff MINI-R4 mit ESPHome zu flashen und diesen dort einzubinden. It also supports the Matter protocol, allowing seamless integration with smart devices from other brands to build your home automation system. If you want to create and edit ESPHome projects, install ESPHome on your computer or inside Home Assistant (it's free!). 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. Small size (38*33*17mm), single-channel, but with multiple switching options, Wi-Fi device Dec 4, 2022 · SONOFF MINI Extreme Wi-Fi Smart Switch – or MiniR4M – is almost entirely a carbon copy of the MiniR4. We're also going to look at some of the In common with the Shelly, and the Sonoff Mini, this means the internals are connected directly to the mains, that means to most people they really are not hackable and you should put a massive disclaimer on the section in the text. Purchase - Not Available Yet. If the device fail to connect to wifi from the installation dialog either in web. Jan 29, 2025 · ESPHome is a powerful and user-friendly tool that allows you to program ESP32 (and other ESP devices) to interact with sensors, actuators, and Home Automation systems like Home Assistant. Flashing and troubleshooting common issues like 'Improv Wi-Fi Serial not detected'. Our goal is to have local ESPHome configurations for various devices. GitHub Gist: instantly share code, notes, and snippets. This post shows how to install the ESPHome add-on in Home Assistant . This is a problem as say during the night if the fan is on before the power cut, it just stays I do this with esphome. Its ultra-compact design fits standard EU/86 boxes, ideal for retrofits. Base Switch Configuration Dec 14, 2020 · I recommend a wifi relay which is flashable with Esphome (Sonoff Mini or Shelly 1) instead of the ZBMINI for steering smart bulbs. This is by no means a comprehensive guide but it aims to outline the process for getting up and running (potentially on existing hardware). Mar 12, 2024 · Flashear un Sonoff MINI R4 con ESPHome implica reemplazar el firmware original del dispositivo con el firmware de ESPHome, lo que te permite personalizar y controlar el dispositivo de acuerdo a tus necesidades. Why do I want do do this you might ask? I want to make use of a mmWave presence sensor to trigger a floodlight at the rear of my house 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. This configuration is setup so that when the relay is manually activated via the button both the blue and red LED are lit (making the LED colour output purple). I didn't realise the eWeLink app is so terrible and the device doesn't even expose API's for local control with it's default firmware. Flashing is done via the exposed pin headers on the board (see pics below) KEY is GPIO 0 and 3. (Except devices running stock sonoff devices). Even if I flash the unit with a blank config it still reboots constantly. Given that the reply shows on or off, what is the point of the sensor? substitutions: device_name May 3, 2023 · Sonoff Mini R4 | digiblurDIY Sonoff Mini R4 Template and Setup for TASMOTA and ESPHome Sonoff BASIC R4 is upgraded with esp32c3 and a new 'magic mode switch' feature that can be enabled with custom component What is ESPHome? ESPHome is an open-source firmware framework that simplifies the process of creating custom firmware for popular WiFi-enabled microcontrollers. I assume I need to reset the device, while it is powered from the converter. I was able to successfully flash the firmware using the below yaml file and now I was able to add the device to Home Assistant. Sonoff Mini flashing ESPHome (OTA v2. the problem I want to solve is how do I trigger the on off switch on a SonOff zigbee mini, i. ESPHome was much easier then Tasmota for me. What is ESPHome? ESPHome is an open-source firmware framework that simplifies the process of creating custom firmware for popular WiFi-enabled microcontrollers. io or on the ESP dashboard (dependent where do you install the software) then the device is in the AP mode. Convenient to automate your home appliances with eWeLink app through your smartphone or tablet or your voice command. I tried to hot plug the device to the converter, but it cause SONOFF'S First Matter Device, with one (detachable) relay, one external input, one button. So, you can integrate them and easily control them via Home Assistant. bin created from the ESPHome integration and Sonoffs DIY tool. With dual core ESP32. Jun 30, 2019 · SONOFF MINI IS a mini and compact DIY smart switch used for different kinds of switch boxes, even the smallest EU standard switch box. Sonoff BASIC 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. Software For the software to control the onboard ESP32 (or ESP8266), I decided to go with ESPHome due to its ease of use, especially with Home Assistant. ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems. There are two test pads exposed RST and KEY other than the normal 3. I want it to be so if i “click” the switch i toggle the ligth group on and off, but if i hold the switch it “dims” to max and if i hold it again it “dims” to min. NotesSonoff M5 Wall Switch 1/2/3-gang Notes the Matter compatible version of this switch (part numbers ending in W, e. I need to toggle the sonnoff relay from the previous state when i cut the power for a short period of time using the self returning wall ESPHome has a nice single pane management GUI (without needing to rely on a third party add-on like TasmoAdmin). I had a couple Sonoff S31 wifi smart switches around and decided to try to flash one with ESPHome to start getting familiar with that system. Installations with Sonoff RM433 433MHz radio remotes are also supported. WARNING i don’t know if its pos… May 20, 2024 · Hi, I’m trying to FLASH ESPhome to the Sonoff Mini R4 Extreme module (Sonoff Mini R4 Extreme | devices. Then comment out the relay parts and it will stay on. Sonoff TX Ultimate 3 Gang Feb 4, 2020 · Sonoff Mini Relay | devices. In this guide, we’ll walk you through how to install ESPHome onto a device/microcontroller using the ESPHome Device Builder, installed as a Home Assistant add-on. binary_sensor: - platform: gpio pin: GPIO4 id: sw_1 filters: - invert: on_click: - min_length: 50ms max_length: 350ms then: - switch. Disassembling the MiniR4M The build of both devices is also almost identical, the only difference being the controller microcircuit. Whenever I is triggered from Home assistant there is around 2 second lag before it actually turns on. Out of the box, the preloaded firmware ties it into various cloud services, but since it’s basically an ESP8266, a relay, and a small handful of other parts, it’s fairly easy to drop ESPHome (or other open-source firmware) onto the S31 so that it doesn’t phone home every time you use it to switch your coffee maker on and Jan 28, 2023 · The problem I decided to pass from tasmota to esphome on one sonoff mini modificated with 5 switches , everything is working but the switch on Gpio03 is not turning on, before i made the same on so GPIO Pinout# Basic Config esphome: name: sonoff_s20 esp8266: board: esp01_1m wifi: ssid: !secret wifi_ssid password: !secret wifi_password logger: api: ota: # Device Comments 3 Description Migrate from ESPHOME to TASMOTA on SONOFF MINI 30Likes 4,996Views 2019Aug 30 Bluetooth Proxy Home Assistant can expand its Bluetooth reach by communicating through the Bluetooth proxy component in ESPHome. You must remove the cover and use the serial header for first upload. In short: rethought design and choice of components for a more goal-oriented use case. Dec 12, 2021 · The Sonoff S31 is an inexpensive WiFi-controlled switched outlet. Mar 9, 2023 · The problem I have 10 Sonoff mini modified with esphome, they are all with some HW modifications, for example i have: 1 with 2 dht AM2302 and one relay more, other than the original 1 with 5 relay Dec 17, 2023 · I have about 35 Tasmota devices and 25 Sonoff eWeLink devices and am tired of configuring each one separately in multiple places. Use this component to integrate Sonoff D1 dimmer into ESPHome / Home Assistant ecosystem. Support to connect an external rocker light switch unable to automatically spring back for easily managing connected devices in your home, both Jan 26, 2025 · Thank you for the comprehensive instructions which has made my life easier this evening in my efforts to flash a sonoff Mini R2 with firmware 3. Feb 23, 2023 · SONOFF MINI Extreme (aka MINIR4) is a ridiculously small WiFi smart switch based on ESP32 wireless microcontroller and designed to be connected to a load such as a light bulb and a wall switch that can be a momentary switch, a door exit switch, an SPDT switch, a latching switch, or even dry contact sensors. It was time to put one of those Wemos D1 Mini to use. Aquí tienes los pasos básicos para hacerlo: Preparación del hardware: Apr 28, 2022 · This is a digital render of the board using MeshLab. io This website is a repository of device configuration templates and setup guides for devices running ESPHome firmware. The goal is to replace the light switch with one that can be controlled by home assistant, whilst retaining the ease of use of a standard light that would also continue to work if the network went down, or Home Assistant failed etc. It is made to do exactly this with no programming required. e. But far easier just to wire the mains input to the mini and the bulb and ignore the output from the relay. Mar 4, 2021 · Got this working today, just power metering is still an issue. With 16A max load support, it’s ideal for high-power appliances like heaters or lighting systems. ¿Podremos meter todas las funcionalidades, y sobre todo, m Sonoff D1 Dimmer The sonoff_d1 light platform creates a simple brightness-only light for the hardware found in Sonoff D1 dimmer. a series of templates for installing esphome on various devices - somarkram/esphome-examples Hi, I have a Sonoff Mini R2 flashed with Esphome, up to date. Below the yaml part from esphome. Connect to it and it asks you which network you would like to connect. Typically used for areas such as 'Lounge Room', 'Kitchen' etc room: "" # Appends the mac Address to the device name, set to "false" to disable add_mac_suffix: "true" # Description as appears in ESPHome & top of webserver page device_description: "Sonoff TX Ultimate 3 Gang" # Project Name project_name: "SmartPad. Nov 26, 2024 · Learn how to set up ESPHome on ESP32 boards with our step-by-step guide. the manual one that would normally be connected to a physical switch. Mar 6, 2021 · I just bought a sonoff Mini R2, to make it completely local. Dec 6, 2024 · I have used the ESPHome example YAML for a SonOff Mini R4 Extreme and have it working as below in Home Assistant. I am using the default config from the ESPHome Sonoff MiniR4 page. One issue is when we loose power (that happens more often in India then guys in the west), all my devices default to OFF. Feb 8, 2023 · I have a couple Sonoff Mini R2 relays. 7 Likes Sonoff Ifan04 - ESPHome working code abreu. Mar 28, 2025 · New to ESPHome? This guide will walk you through what it is, its features, use cases, supported devices, and how to get started with your own projects. Now Sonoff has caught up with their newest model, the Mini. Viele Anleitungen später versuche ich mein Glück mal hier. 6. All Devices Sonoff Mini Relay Device Type: relay Electrical Standard: global Board: esp8266 Jan 29, 2021 · 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 was surprised by how much digging I had to do. should i still do those steps Flash ESPHome on a Sonoff R2 Mini using OTA DIY mode - Random DiY Projects or sonoff has made it simpler to install ESPHome Regards, Chandy ChandyTech June 5, 2023, 8:56am 6 May 26, 2022 · ok, solved. ESPHome is a system to control your microcontrollers by simple yet powerful configuration files and control them remotely through Home Automation systems. 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). Sadly in case of 12V it behaves strangely. Both are very good devices for home Mar 27, 2020 · Hi Guys, So i have ESPHome running on SonOff switches. GPIO Pinout Basic Configuration # Basic Config esphome: name: sonoff_s31 esp8266: board: esp12e Dec 4, 2021 · Hi every one. Get Started. Hold down the button while powering on the device to put it into bootloader mode. There's a dedicated secrets file so you can update things like WiFi credentials for every single ESPHome device with one click, vs individually updating it on 50 different Tasmota devices. 1 Like. I added the ESPHome add-on and I've got nabu casa too so I can secure access the ESPHome web UI from HA. ESPHome is a firmware generator and configuration system that enables the transformation of microcontrollers into fully customizable smart home devices. Anything than can be done about it? MINI-D is a Wi-Fi dry contact smart switch that supports AC/DC power supply. In normal operation, I’d like them to remain closed and use the input from the light switches to send commands to the smart bulbs (instead of actually breaking the circuit). This page is a lite variant of ESPHome. Nur zur Info, mit dem MINIR2 funktioniert es 🖍by HarryP Dec 31, 2019 · Flashed a sonoff mini with tasmota 8. So I'm going to try to follow your guide and put some ESPHome firmware on there and see how they are doing. Also, how to configure some of the available components in ESPHome. It connects to HA using Matter over Wi-Fi. Jul 26, 2019 · S1/S2 is as orange-assistant says:- GPIO4 and Ground. En este vídeo tutorial veremos cómo instalar ESPHome directamente en un Sonoff Mini R2 usando el modo DIY (Do it yourself) directamente desde Home Assistant, Sep 19, 2025 · Assume that it is not possible to flash the Mini D with Esphome as it has something to do with it being matter compatiable? A post i read seemed to indicate that but you can flash the Mini R4M so I am uncertain about that reason. 4 days ago · ESPHome simplifies software configuration, allowing users to flash firmware, customize sensor functionality, and integrate with Home Assistant for real-time data monitoring and automation. This is a project of the Open Home Foundation. I have tried a bunch different combonations with the KEY pad to get it to flash Apr 8, 2019 · ESPHome is a tool that allows creating custom firmware for ESP8266 and ESP32 boards. So you can easily control from a few to many outputs, you can also get some data in should you need it. Sonoff’s Mini R2 Wi-Fi relay has already been proven to be a good choice, but now the new Mini R4 or Mini Extreme can really be the device that many of us are looking for. To be totally correct: Sonoff Mini S1 Input is Ground Sonoff Mini S2 Input is GPIO4 This can be important if you plan a shared ground! En esta segunda parte de la review del Sonoff MINI R4, vamos a adentrarnos en el mundo de ESPHome. I tested both 24V and 12V DC. It can be used to control motors, garage doors, and other dry contact input devices, offering remote control, voice control, and other functions through APP. This post shows how to install the ESPHome add-on in Home Assistant. I thought this would be a good opportunity to entice them into the world of home automation. The one issue which I finally solved is that your instructions appear to have an incorrect port number - port 8081 worked for me. Kann mir einer eine Anleitung geben, bei der ich nicht nur diese Meldung angezeigt bekommen… sondern wo im ESPHome dann auch mal die Anzeige von offline auf online umschaltet? Danke. Sonoff BASIC R2 v1. 1 ‘lite’ build and am now trying to flash it to ESPHome OTA. The individual device integrations in Home Assistant (such as BTHome) will receive the data from the Bluetooth Integration in Home Assistant which automatically aggregates all ESPHome Bluetooth proxies with any USB Bluetooth Adapters you might have. The benefit of using an ESPXXX is that you get quite some GP-I/O. Then use this configuration for the remote receiver/transmitter hubs: switch esp32 uk us eu Sonoff BLE - SwitchMan R5, S-Mate, S-Mate2 switch esp32 global Sonoff M5 Wall Switch 1/2/3-gang switch esp32 eu Sonoff T1 R2 Touch Wall Switch switch esp8266 eu Jul 8, 2024 · ESP Home I then decided to check out ESPHome and I have tons of ESP8266 around. If you’re familiar with the larger SONOFF 4CH Pro model, which features four channels, the MINI-D operates similarly but is smaller in size and comes with the latest software features. The config below and more information on our website: The new Sonoff DualR3 is here! - espthings. ESPHome Components ESPHome-specific components or components supporting ESPHome device provisioning post-installation. I got this USB to Serial adapter and some hook leads so I wouldn't have to solder onto the Sonoff Jan 15, 2025 · SONOFF sent us a sample of the MINI-D Wi-Fi smart switch with a dry contact design for review. esphome. Sonoff S31 Initial Install This device cannot be converted to ESPHome using tuya-convert. SONOFF MINIR4M is a Matter-enabled smart switch compatible with Apple Home, Alexa, Google Home, and other Matter-enabled ecosystems. io), but without luck. 7. Compare above with below, However, when I click on S1 it appears that the state does change, it just does not indicate it in the text. 0 (without the jumper) using a ESPHome . I’d also like to have a default fallback, so that if the Migration guide for installing ESPHome on ESPs running Tasmota. If Switch Component The switch domain includes all platforms that should show up like a switch and can only be turned ON or OFF. Create a new folder where you will store (locally) your ESPHome firmwares and config files. Using a simple YAML configuration file, ESPHome allows users to define hardware components like sensors, actuators, and peripherals. Compiled and downloaded a binary using the HASS. io plugin but when I upload to the mini the tasmota build gives me ‘ERROR - Not compatible’ when trying to flash. io) The actual power metering chip on the DualR3 is the CSE7761 which is not supported by esphome yet. For the black Sonoff RF Bridge, you can bypass the EFM8BB1 microcontroller handling RF signals with this hack created by the GitHub user wildwiz. Nov 20, 2019 · Hello everybody Could you possibly help me with ESPhome configuration for sonoff basic (mini). The sensor appears to always read as off. It’s green here. I've got multiple Sonoff wifi switches flashed with esphome and use a long press to control a different light. Contribute to wjtje/esphome-config development by creating an account on GitHub. This exceptional Aug 4, 2019 · Recently new devices like the Shelly have made major improvements to what Sonoff was making a couple years ago. May 26, 2024 · Hi I am new to Home Assistant, and wanted some advice as to the best way to go about something. alexw1982 May 12, 2021, 6:39am 10 #Banggood13thAnniversary Following up on some of the points of comparison that I left out of the previous video I did about the Sonoff Mini and the Shelly One. M5-2C-86W) is locked and cannot be flashed status LED (blue) in left-most button channel LEDs (red) are dimmable (PWM) while relays OFF; 100% bright when ON in 1-gang version LED 1 to/can be activated separately from Relay in 2-gang version LED 2 to/can be activated Dallas Temperature Sensor The dallas_temp component allows you to use DS18B20 (datasheet) and similar 1-Wire temperature sensors. Switch is really small, approx 40x33mm, easily fits behind wall switch. Programming can be done with esptool or directly through ESPHome (I'm using docker image) Nov 12, 2023 · I have a sonoff mini which I am testing with ESP home. Visually, it’s only distinguishable by the plating color on the contacts. Apr 8, 2019 · ESPHome is a tool that allows creating custom firmware for ESP8266 and ESP32 boards. I’m not sure, but it seems that once the device boots the original FW, it does not respond to FLASH loader anymore. Contribute to scsole/esphome-device-configs development by creating an account on GitHub. This is an example that I wrote which treats both LED outputs as one controller, that way two sets of lights can be controlled simultaneously. whdtsy yxavzp codm ldra skwb dnczm qohhy vaf cjay zanp ayre bkdpp buxon uirjeo hgjuav