Sonoff lan mode api. I've manually added it in Sonoff LAN with the f.
Sonoff lan mode api. Check the explanation of LAN mode and which SONOFF devices support LAN control in the infographic. PS: firmware version 3. O Sonoff DIY Mode API protocol é um recurso qu Whilst older devices only dropped into LAN mode when the internet was unavailable, the latest V3 firmware are designed to be used in LAN mode predominantly. Any ideas ? How to know when is DIY mode or API mode? Thanks, Mario Activate DIY Mode Disconnect the device from the power supply before you operate DIY MODE switch. When other switches cost $30 the Sonoff Basic was only $5. This will only work for Sonoff devices running a recent version of the stock (Itead / eWeLink) firmware, which have been blocked from accessing the internet (to put them in LAN Mode). the device was in DIY MODE with a specific SSID and PW info setting, users would like to make a factory reset for the device SSID and PW, the steps would be, switch into eWeLink Mode, power on Home Assistant platform to control Sonoff switches running the latest Itead firmware, locally (LAN mode). 0 refer to the protocol v1. Is that the case? What is the difference, if any, between LAN control and DIY mode? Does LAN control use the cloud? Does LAN mode negate the need to have to flash Sonoff devices with the Tasmota firmware? So far the devices react instantly when switching. 3. For example, Are both methods responding at the same speed? Are changes Home Assistant custom component for control Sonoff devices with eWeLink (original) firmware over LAN and/or Cloud. 0 support Integration UI, Devices and Zones support new eWeLink API support multiple eWeLink accounts and homes support many sensors for each device (include RFBridge) support thermostats for Sonoff TH ans NS Panel support preventing DB size growth Define a Sonoff configuration node, setting Host (IP Address) and port (defaults to 8081). 0 firmware. It’s fairly easy to solder some header pins onto these which makes flashing the firmware somewhat of a non event, but it’s still a bit of a pain. Table of Contents Main Info Tested Devices Install with HACS Config Examples Local and Cloud mode Cloud only mode Local mode with load config from Cloud Local only mode (manual get devicekey) Local only mode (DIY devices) Custom device Control ITead devices via LAN mode. g. obtained from eWeLink app) api_key: // [Required unless in DIY mode] api_key obtained during pairing or from V2 firmware trace icon: // [Optional] Custom icon for device outlet: // [Optional] Outlet number, numbered form 0 to 3 on a 4CH as opposed to 1-4 Home Assistant custom component for control Sonoff devices with eWeLink (original) firmware over LAN and/or Cloud. Mar 23, 2023 · Sonoff Lan logged into my ewelink account, saw all switches, the switches are functioning for a “while” and then become “unavailable”. This We would like to show you a description here but the site won’t allow us. 0 support Integration UI, Devices and Zones support new eWeLink API support multiple eWeLink accounts and homes support many sensors for each device (include RFBridge) support thermostats for Sonoff TH ans NS Panel support preventing DB size growth Jul 25, 2023 · SONOFF iHost Smart Home Hub, 2G Central Control Gateway, Private Local Server for Secure Home Automation, LAN&Zigbee Compatibility, Local Data Storage and Open API for Customization (RV1109 DDR4 2GB) Jul 15, 2025 · Devices connected through Home Assistant REST API and WebSocket API can only be mapped as entities instead of devices, which makes it impossible to directly control devices via Home Assistant’s Scene and Automation. Python interface for controlling Sonoff smart switches/plugs running original Itead firmware, locally, in "LAN mode". New features in version 3. sonoff-lan-listener A node that subscribes to events from Sonoff sonoff-lan-control A node that controls the Sonoff switch Mar 29, 2020 · This module provides a way to interface with Sonoff smart home devices, such as smart switches (e. This module provides a way to interface with Sonoff smart home devices, such as smart switches (e. 1/device while connected to the itead wifi, now i reset the device through ewelink app but i cannot see the itead wifi…how to get the apikey? Apr 18, 2019 · Once work has been done in both the pysonofflan project (underlying Python library to control Sonoff devices in LAN mode) and the sonoff-lan-mode-homeassistant to resolve various issues and improve the code quality sufficiently as per the above guidelines, I’ll submit a PR to get it added to Home Assistant properly. 0 support Integration UI, Devices and Zones support new eWeLink API support multiple eWeLink accounts and homes support many sensors for each device (include RFBridge) support thermostats for Sonoff TH ans NS Panel support preventing DB size growth Forked from robertklep/sonoff-lan-mode-test. What do you mean API key? API connector for Sonoff / ewelink devices . The problem was, you could Home Assistant custom component for control Sonoff devices with eWeLink (original) firmware over LAN and/or Cloud. 0, as the set up procedure changed, the tool can not be used for the device with firmware 3. 0 support Integration UI, Devices and Zones support new eWeLink API support multiple eWeLink accounts and homes support many sensors for each device (include RFBridge) support thermostats for Sonoff TH ans NS Panel support preventing DB size growth switch: - platform: sonoff_lan_mode_r3 name: // Switch Name device_id: // device id (e. I’ve had a couple of the Sonoff Basic devices for quite some time. I had bought some switches from SONOFF, they do provide a "DIY mode" which allows you to control them locally through a REST API, but with this mode enabled, you cant use any services such as EweLink or google home etc. Dec 1, 2020 · Some time ago I bought a Sonoff Smart Remote Control Wi-Fi Switch Smart Home Automation device (too m Tagged with sonoff, making, homeautomation, python. Fala galera, blza?Resolvi montar um passo a passo de como controlar o Sonoff Mini pelo Delphi, ativando o Sonoff DIY Mode API ProtocolA Sonoff expandiu bastante nos últimos anos e vem ganhando o mercado de automação pela facilidade de configuração e instalação. Let’s enter the DIY mode! npm install node-red-contrib-sonoff-lan-mode Usage Define a Sonoff configuration node, setting Host (IP Address) and port (defaults to 8081). e. The power measurements show in the app. Dec 7, 2023 · Library to interact with Sonoff devices through LAN mode (without eWeLink cloud) Demonstrating how to use LAN mode to turn on/off the Sonoff device on app. Many users are therefore unaware of this and believe the device to be connected via The Sonoff iHost is a versattelite local smarthome server. This is just my small contribution how to use method described in above link with Android phone… Jan 30, 2020 · Pros: work with original Sonoff firmware work over local network (LAN) work with devices without DIY-mode work with devices in DIY-mode support single and multi-channel devices support TH and POW device attributes support Sonoff RF Bridge 433 for receive and send commands instant device state update with Multicast (optional) get devices list from eWeLink servers (with names and apikey We would like to show you a description here but the site won’t allow us. What's new about this v We would like to show you a description here but the site won’t allow us. With REST API access, it integrates easily with platforms like Home Assistant, making it perfect for DIY smart home upgrades iHost is a local control hub to make home automation faster, more reliable and more secure, allows you to locally control devices and set smart scenes in a local control console via LAN, supports open API and add-ons to expand more possibilities. Most switches/outlets only work through a remote with a hub or some online service and provide no open source API/SDK. It can operate all eWeLink devices that has LAN mode enabled and can perform scene automations locally without the need of an eWeLink account nor the need to connect to the cloud. Jun 5, 2025 · Learn how to install the eWeLink Home Assistant Add-on, sync SONOFF and HA devices, and enable LAN or cloud control via eWeLink App and NSPanel. If this doesn’t work I advise you to contact eWeLink with the in-app feedback. Oct 8, 2024 · Need some help figuring out how to control Sonoff Basic Switches via iHost Open API. This Introduction SONOFF Zigbee Bridge Ultra User Manual Zigbee Bridge Ultra is a Zigbee 3. js Last active September 15, 2022 11:09 Show Gist options Star2(2) You must be signed in to star a gist Fork3(3) You must be signed in to fork a gist Embed Nov 16, 2019 · Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant Jun 24, 2019 · And using DIY mode you don’t have to use the api key which is also rather complicated to get. using eweling app lan mode is working, i can control the tx 3gang without internet enabled. For devices with encryption enabled, the api_key is needed to read the device status or to operate the device using the API. Specs & User Manual SONOFF Zigbee Bridge Pro supports up to 128 Zigbee sub-devices, significantly expanding your smart home network and seamlessly integrating various SONOFF Zigbee products. 4 firmware version 3. Home Assistant platform to control Sonoff switches running the latestV3+ Itead firmware, locally (LAN mode). Oct 22, 2024 · Come diagnosticare e risolvere gli errori Sonoff offline o non in linea o Sonoff rete non disponibile ? Cosa fare quando eWeLink non funziona ? Come utilizzare comunque Sonoff senza internet o quando non si connette al WiFi ? Scopri come fare la diagnosi ed utilizzare Sonoff LAN mode. 5. LAN Mode is a feature introduced by manufacturer Itead, to allow operation locally when their servers are Jun 5, 2025 · DIY mode is a function specially designed for IoT home automation users and developers that allows them to control SONOFF devices via existing home automation open-source platform or local HTTP client instead of eWeLink App. Se non lo hai ancora fatto, leggi la mia guida ad eWeLink. The below Sonoff devices support control via LAN (require firmware We would like to show you a description here but the site won’t allow us. 0. 0 gateway that enables wired or wireless connections. Is SONOFF Zigbee Bridge Pro LAN still a topical project? Is there anyone who can communicate an exact date when the SONOFF Zigbee Bridge Pro becomes LAN compatible? Was the idea of 【Two-Way Control】Use MINIR2 to retrofit a light and hide it in the switch box, without any traces, you will get a smart light and the physical switch controlling is still retained. Sonoff Mini Setup Tips? I just bought a pack of 4 of these Sonoff Mini devices, wired two of them up to some light switches, but I can't seem to get anywhere on setting them up to connect to my wifi (DIY Mode). Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant - Releases · AlexxIT/SonoffLAN Dec 18, 2022 · Sonoff D1 Dimmer: configuring local HTTP API (DIY mode) and assembling for external connection. 0 support Integration UI, Devices and Zones support new eWeLink API support multiple eWeLink accounts and homes support many sensors for each device (include RFBridge) support thermostats for Sonoff TH ans NS Panel support preventing DB size growth Control Sonoff devices running original firmware, in LAN mode. What I've determined so far: There are different firmware versions for the Sonoff Mini, and the setup instructions are wildly different. with sonoff mini i used the 10. Jan 22, 2020 · Hello, I was reading the different options to integrate Sonoff (mini in my case) with HA and I saw that there are two options: To use the Tasmota Firmware Use the LAN Mode from @mattsaxon (here) Can someone tell me what are the prons and cons for each solution? LAN mode seems easier but Im not sure about the limitations. It is blinking two rapid blinks. Many users are therefore unaware of this and believe the device to be connected via If you need to change the network, Long press any pairing button for about 5s until the Wi-Fi LED indicator changes in a cycle of two short and one long flash and release, then the device enters quick pairing mode and you can pair again. 0 support Integration UI, Devices and Zones support new eWeLink API support multiple eWeLink accounts and homes support many sensors for each device (include RFBridge) support thermostats for Sonoff TH ans NS Panel support preventing DB size growth I'm looking for a smart switch that will allow both the use of the physical switch and the smart interaction, I'm eyeing the SONOFF MINI R4 since it appears to meet all the functionality requirements I need but I'm not sure it works locally. Got an iHost and a Sonoff Basic R2. THe only problem is that i cannot get the apikey. LAN Mode is a feature introduced by manufacturer Itead, to allow operation locally when their servers are unavailable. 3. So I see a great future for this component as there will be more and more Sonoffs with DIY mode around in the future (including the new mini). Topic Replies Views Activity Does my eWeLink device support LAN 0 287 September 22, 2021 Controlling LAN Sonoff devices from iHost when Internet access is down eWeLink CUBE ihost Feb 2, 2021 · Although you can use devices offline (local mode), the binding has to send a login message every six hours to the api in order for the device to keep pushing out updates on the LAN. Before publishing the service, the device Non-Flashers rejoice! There’s a custom component for Home Assistant that lets you use Sonoff Devices without changing the firmware, and best of all, it doesn’t use the cloud either :0 Let me give you 2 min of DIY smart home history. E. If you do want to entirely disable this, you can put supported devices into developer mode (untested but should work) and block the devices internet connection. If you only want and overview watch the first few Jul 31, 2019 · In DIY MODE, Any application can send API to control the device via LAN. Jun 28, 2025 · iHost, a groundbreaking innovation from SONOFF, serves as a local control hub for enhancing the speed, reliability, and security of home automation. 0 or above, to do it you have necessarily to use eWeLink app Open the bottom lid; Plug-in the jumper on the only pin available. Start using ewelink-api in your project by running `npm i ewelink-api`. It supports two-way control, voice commands via Alexa and Google Assistant, and smart scenes for seamless automation. Then use one of the following nodes to interact with your Sonoff device. - beveradb/sonoff-lan-mode-homeassistant Apr 10, 2020 · This tutorial video is about the new DIY mode, which needs to work with V3. Tested with Sonoff Splampher R2 (firmware 3. DIY mode is a feature enabled on some devices, typically those branded DIY or R3. LAN Mode is a feature introduced by manufacturer Itead, to allow operation locally when their servers are unavailable Jun 28, 2019 · ITEAD have named this new RESTful API API “Sonoff DIY Mode API protocol”, it looks to be released as open source and is designed for local control these newer Sonoff devices over a LAN network without using their cloud or going via the internet. It empowers users to exercise precise control over their devices and craft intelligent scenes via a LAN-based control console, all without relying on external cloud services. Whilst older devices only dropped into LAN mode when the internet was unavailable, the latest V3 firmware are designed to be used in LAN mode predominantly. Sonoff Basic), plugs (e. May 4, 2020 · reinstalled the integration via HACS, entered the data into my config file per the github write up switch: - platform: sonoff_lan_mode_r3 name: s31_sonoff device_id: !secret sonoff_device_id api_key: !secret sonoff_device_api_key I synced it with the eWelink app so I know it is on my wifi. Note: the eWeLink app doesn't show this very well and when you turn it to LAN mode, it doesn't report that it has connected to V3 devices in this mode. Now SPM units also support DIY mode and have more functions. Contribute to PJanisio/ewelinkApiPhp development by creating an account on GitHub. By locally I mean that it does not need to pass through an external webserver and will work with just HomeAssistant in my local network; I. 【Open Device REST API】Connect and control the MINIR2 with your existing home automation system like Home Assistant via LAN. Both suffered from the same issues: very large (many minutes) gap in updating the SonOff Voltage/Current/Power indicators, and totally unreliable on/off operation: perhaps they (or the eWeLink API which both of them use) don't operate well in "LAN mode" (ie, disconnected from the internet), and as I'm using this smart plug to control my This quite comprehensive video gives you all you need to know about Sonoff DIY mode and how to use it. May 16, 2019 · Control Sonoff devices running original firmware, in LAN mode. We would like to show you a description here but the site won’t allow us. This means that your Sonoff devices will work over your local area network even if you don’t have a working internet connection. There are 13 other projects in the npm registry using ewelink-api. This enables your Sonoff devices to function on a local area network (LAN) when internet connections go down or should the Itead servers go down. - beveradb/pysonofflan We would like to show you a description here but the site won’t allow us. LAN Mode enables Sonoff devices to be controlled directly on the local network using a WebSocket connection on port 8081. eWeLink API for Node. Sonoff Touch), when these devices are in LAN Mode. May 17, 2021 · For the green hand, “LAN mode” can be a jargon difficult to understand. All gists 2 Forked 1 Sort: Recently created 1 file 0 forks 0 comments 0 stars JanBN / sonoff-lan-mode-test. Já existem vários tipos de dispositivos disponíveis para controlar uma diversidade de equipamentos no site deles: https Control Sonoff Devices from Home Assistant Home Assistant custom component for control Sonoff devices with eWeLink (original) firmware over LAN and/or Cloud. SONOFF Curl commands You can turn/on and off and that's it. (refer to API instruction page) Note: The user settings will be cleaned when change the operation mode from one to another. It allows you to discover devices, print device information, switch device state, set power on state, set sleep timer, print WiFi signal strength, set WiFi SSID and password, unlock OTA flashing, and flash firmware over the air. obtained from eWeLink app) api_key: // [Required unless in DIY mode] api_key obtained during pairing or from V2 firmware trace icon: // [Optional] Custom icon for device outlet: // [Optional] Outlet number, numbered form 0 to 3 on a 4CH as opposed to 1-4 Bit of a mixed topic on eWelink mostly reoccurring questions I received in the comments. Home Assistant custom component for control Sonoff devices with eWeLink (original) firmware over LAN and/or Cloud. The DIY Mode is designed for IoT home automation users and developers who would like to control the SONOFF device via existing home automation open-source platform or local HTTP client instead of eWeLink App. 1. Many users are therefore unaware of this and believe the device to be connected via . Way back in 2017 Sonoff made the cheapest smart switch (they still do). without an Nov 13, 2023 · Hi, Is there anyone on this forum who can concretely answer the question: Will SONOFF Zigbee Bridge Pro ever become LAN compatible? Unfortunately, for 6 months we only receive promises! I’m tired of promises. The sonoff has firmware version 2. Set up LAN Sonoff automatically connects to a specific Dec 15, 2019 · its running 3. ¶ This module provides a way to interface with Sonoff smart home devices, such as smart switches (e. yaml file to use with Sonoff LAN Mode custom component. At least I hope it covers everything. 7. 0 refer to the protocol v2. Aug 16, 2021 · OH3: Sonoff DIY mode with Rest API & HTTP Binding Setup, Configuration and Use Beginners fisker (Fisnik O) August 16, 2021, 1:20pm When is it used? ¶ All known Sonoff devices running Firmware 3+ have encryption implemented unless they are running in DIY mode. 3) Home Assistant custom component for control Sonoff devices with eWeLink (original) firmware over LAN and/or Cloud. sequence - Not required deviceid - Not required selfApikey - Not required data - encrypted with device key (md5 hash'd) and iv | base64 encoded iv - random 16 byte string | base64 encoded Dec 31, 2018 · I have a 2 channel sonoff type device that is an inching/momentary type that controls my two garage doors and works in lan mode, but I cannot get this component to work with it. Specs & User Manual SONOFF MINIR2 is a compact smart switch that fits behind your wall switch to bring remote control and automation to your lights. 0 firmware of SONOFF BASICR3, RFR3 and MINI smart switch. Latest version: 3. sonoff-diy Sonoff-diy is a command-line tool for controlling Sonoff devices in DIY mode. Unable to get status with Basic R2 (also Basic R2 doesn't support DIY mode!). Tested the device API with Postman and it was working. 1, last published: 5 years ago. It is enabled using a jumper on the mainboard. The device Home Assistant platform to control Sonoff switches running the latestV3+ Itead firmware, locally (LAN mode). To solve this problem, you need to enable the Advanced Mode (Lovelace Console > Profile > Advanced Mode). 0 support Integration UI, Devices and Zones support new eWeLink API support multiple eWeLink accounts and homes support many sensors for each device (include RFBridge) support thermostats for Sonoff TH ans NS Panel support preventing DB size growth Feb 1, 2020 · Pros: work with original Sonoff firmware work over local network (LAN) work with devices without DIY-mode work with devices in DIY-mode support single and multi-channel devices support TH and POW device attributes support Sonoff RF Bridge 433 for receive and send commands instant device state update with Multicast (optional) get devices list from eWeLink servers (with names and apikey Jan 28, 2020 · Copy deviceid and apikey to your configuration. I've manually added it in Sonoff LAN with the f This module provides a way to interface with Sonoff smart home devices, such as smart switches (e. I've added the device just to my network, didn't add it in EWeLink. 0 ios & Android eWeLink has supported LAN feature. Was able to use eWeLink add-on to sync the BasicR2, and then made API calls to iHost, retrieving a list of devices connected to it (which includes the Sonoff BasicR2 switch and its details). Home Assistant custom component for control Sonoff devices with eWeLink (original) firmware over LAN and/or Cloud. Home Assistant platform to control Sonoff switches running the latest Itead firmware, locally (LAN mode). It enhances home security with customizable modes such as Home, Away, and Sleep, and functions as a local alarm hub for real-time protection. Control Sonoff Devices with eWeLink firmware over LAN from Home Assistant Home Assistant platform to control Sonoff switches running the latest Itead firmware, locally (LAN mode). 0 and 3. Mar 28, 2024 · Obtain device key in sonoff LAN mode Development sonoff, lan IngenieroGeomatico (Ingeniero Geomatico) March 28, 2024, 2:54pm The Sonoff LAN integration into Home Assistant allows your Home Assistant setup to interface directly with your Sonoff devices over your local area network (LAN Mode) without routing though the eWeLink servers. Same problem is working on the App and at the eWeLink Web but I can't access with PostMan Rest API. Jan 23, 2019 · Sonoff Touch LAN Mode and MQTT Posted: 2019 - 01 - 23 @ 15:53:54 Tags: sonoff mqtt HomeKit iot Comments: here. Openhab Binding for Sonoff Devices. js. 0 — control BASICR3, RFR3, MINI, and D1 devices via your own app using REST API, no firmware flash or cloud required! Feb 24, 2023 · I have a Sonoff B05-BL-A60 which has the Sonoff DIY API available. 10. js Created 5 years ago — forked from beveradb/sonoff-lan-mode-test. Apr 28, 2023 · LAN mode should allow you to operate your LAN mode enabled eWeLink devices when the internet goes off, but your router is still running. Contribute to kamilj/openhab-sonoff development by creating an account on GitHub. - Controlling device over wifi or mobile data- What happens if I loos Sonoff Client with LAN mode support (no firmware flash required) - phoenix128/python-coolkit-client-ng Whilst older devices only dropped into LAN mode when the internet was unavailable, the latest V3 firmware are designed to be used in LAN mode predominantly. js const WebSocket = require ('ws'); // Turns out you don't need to dump packets at all - you don't even need a valid API key or device ID when it's in LAN mode. Sonoff S20), and wall switches (e. 0 support Integration UI, Devices and Zones support new eWeLink API support multiple eWeLink accounts and homes support many sensors for each device (include RFBridge) support thermostats for Sonoff TH ans NS Panel support preventing DB size growth This will only work for Sonoff devices running a recent version of the stock (Itead / eWeLink) firmware, which have been blocked from accessing the internet (to put them in LAN Mode). 4. It supports smart security, voice control, and scene linkage with other devices. However, when I go to the state page and search for the item I switch: - platform: sonoff_lan_mode_r3 name: // Switch Name device_id: // device id (e. Introduction Sonoff Devices DIY Tools is used for SONOFF Devices (Basic R3,RFR3 and Mini) control via LAN. 1 I have my router blocking the sonoff’s internet access. If you have power on your sonoff for the frist time, perhaps you have to upgrade the firmware version to 3. Im looking for some switches that can do both at the same Jun 5, 2025 · Discover SONOFF DIY Mode 2. 【Fully Functional】MINIR2 has all the… Vídeo mostrando na prática a utilização do Sonoff DIY Mode API protocol para acionamento do módulo localmente. In DIY Mode, when the device is connected with the network, it will publish its services and capabilities according to the mDNS/DNS-SD standard. tlc0g 9k7 hwc mul btpuob 6xxv 8x ur6rb dyvq kgrmi