Coder Social home page Coder Social logo

esp-homekit-sonoff-mini's Introduction

GitHub All Releases GitHub Releases

esp-homekit-sonoff-mini

Homekit firmware for Sonoff mini

You can wire a switch across S1 & S2, this is NOT 240V, it is only ESP8265 signal level and does not require a paticularly heavy gauge of wire.

Tested in UK dry linning wall box, tight fit but works ok.

12th April 2022 - New capability added to preserve the power state over a power outage. By default the state will not be preserved, if you want to change the default to preserve the state then using Eve app set "Preserve State" to "On".

esp-homekit-sonoff-mini's People

Contributors

maccoylton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp-homekit-sonoff-mini's Issues

new OTA?

"NOTE DUE SOME CHANGES ON GITHUB IN ORDER TO CONTINUE TO BE ABLE TO RECEVIE OTA UDATES PLEASE PERFORM A FIRMARE UPDATE BY CHOSING THE FIRMARE UPDATE OPTION IN THE EVE APP. THIS WILL UPDATE THE BOOTLOADER AND OTA PORTION OF THE FIRMARE TO ENSURE CONTINUED ACCESS TO OTA CAPABILITIES. THIS NEEDS TO BE DONE BY END OF MARCH 2021."

Hey,
Are you saying we need to use a new boatload.bin version and re flash all son off mini?

thx

Sonoff DUAL R3

Any chance for that to work with sonoff DUAL R3 (dual relay)?

Firmware .bin files

Hi maccoylton!

Congrats for your great work! Could you help me?

I'm little bit newbie regarding building the firmware to flash de sonoff. I tried to install several SDK's but couldn't make the .bin file to flash the Sonoff mini.

Could you help me? Could you give me a hint on how to proceed, or to send me the firmware file so I just flash the device?

Thank you a lot.

Thiago.

Blocked after bootloader.bin flash

Have initiated successful flash of bootloader.bin.

Have followed next steps, connect to LCM-xxxx wifi network.

  1. select your WiFi by clicking on it - DONE
  2. enter your WiFi password - DONE
  3. enter the GitHub directory - maccoylton/esp-homekit-sonoff-mini - ????
  4. enter filename - main.bin.
  5. LED GPIO should be set to 13
  6. click the join button

Cant see what to do after step 2?

The wifi connection seems to have gone through - as I can't see the AP network anymore, but can't find the mini on my router device list either....

I've got the Mini v1.2 board.
OSX 10.15.7
Esptool v3.0
iOS 13.6.1

Any help much appreciated.

compatibility with firmware 3.6 new DIY approach

Hi,

I have been trying all over Weekend to flash my Sonoff mini using the new 3.6 approach (OTA) but I can't make it work.
curl http://192.168.1.181:8081/zeroconf/ota_flash -X POST
-d ‘{“deviceid”: “1000dc9cc8” , “data”: {“downloadUrl”: “http://192.168.1.71:8000/main.bin“, “sha256sum”: “d12c8fb96b4cce4d570124488ebf874922fb2c2412d1001f37f01b9e1b580435”}}’

do you know if your firmware is still working with the new firmware 3.6?

many thanks

Change wifi !

Good afternoon, I used OTA firmaware to install your code.

It worked perfectly, congratulations !!!

But I can not reset it, how can I do? I need to change the wifi network!
Without flashing again is it possible?

error to build

please help I'm getting error

make -C examples/esp-homekit-sonoff-mini/src flash
make: Entering directory '/home/user/projects/esp-homekit-demo/examples/esp-homekit-sonoff-mini/src'
CC /home/user/projects/esp-homekit-demo/examples/esp-homekit-sonoff-mini/components/esp-homekit/src/server.c
/home/user/projects/esp-homekit-demo/examples/esp-homekit-sonoff-mini/components/esp-homekit/src/server.c:25:19: fatal error: cJSON.h: No such file or directory
#include <cJSON.h>
^
compilation terminated.
/home/user/projects/esp-homekit-demo/examples/esp-homekit-sonoff-mini/components/esp-homekit/component.mk:37: recipe for target 'build/homekit//src/server.o' failed
make: *** [build/homekit//src/server.o] Error 1
make: Leaving directory '/home/user/projects/esp-homekit-demo/examples/esp-homekit-sonoff-mini/src'

Need help flashing and understanding the process

Not really an 'issue' but I am unable to set this up myself.

Hello, I bought a couple of Sonoff mini devices to try and flash the firmware to support HomeKit. I have coding experience but not so good with hardware devices. Completely new to flashing hardware such as the Sonoff here. I've seen the Wiki but I can't figure out how to set the device in flash mode and how to actually force it to download the bin file from github using the terminal on my mac. I've downloaded esptool with brew and it works fine. But need some step-by-step assistance.

Thank you

  • note: I would gladly buy someone a beer to help show me how this is done initially then I'd take it from there.

occasional shutdowns

I’m experiencing occasionally shutdowns that I cannot reproduce nor determine any underlying patterns. I flashed an Sonoff Mini some years ago, which is running fine ever since (apart from some rare lost wifi issues). Now a few weeks pack I flashed another one. While basically working as it should, it sometimes shuts down power. Occasionally it happens every other minute, while sometimes it works fine for hours.
The issue is especially bothering as the Mini is meant to control my parents TV, Apple TV and receiver.

Might it be related to power draw?

Sadly I cannot re-flash as a measure to troubleshoot the issue as I ripped a solder pad (TX) after flashing last time.
If someone could point me to some documentation to find another spot to solder to, I would try this first.

Btw.: both Minis run on the latest 0.2.4 firmware. However they are deployed in different homes and thus Wi-Fi networks.

On/Off cycle repeatedly whilst having Wifi, but no Internet connection

Had a fibre outage recently for an entire day. All of my mini's, which are connected to lights, if the light was turned on, would every cycle (from light on state) off 5 secs, then back on, pretty much every minute (maybe two mins) or so.

Throughout the whole period my local wifi was solid.

This happened until the fibre connection was restored.

Is this designed behaviour?

Can't keep connection to router

Dear Maccoylton,

More than a month ago, I have flashed 2 mini's with your firmware with succes.

I have orderd new ones, flashing goes according to plan. When the erase flash is finished the 3 .bin files are succesfully being flashed. Then I manually plug out the USB serial adapter and connect it back on the sonoff for the restart. WiFi spot of the mini is sending out, I can connect with my smartphone to it.
Then I do everything according to the wiki, password, github directory, file name main.bin is already in.
Next thing I log in my router, look at the wireless nodes and I see the sonoff mini can't hold connection up time more than about 5 seconds, then it resets (reconnects) again over and over. Tried 2 mini's, both having same problem.

Tried to disconnect it from the serial adapter and put 230V on the device, same problem. Looks like it can connect to the WiFi network but not to the github directory or something? Is it possible that it reboots all the time?
Had it left over more than an hour, still no firmware installed where the lights will burn on the sonoff and I can use the switching function by pressing the button or shorting the pins of the external switch option.

Thanks in advance.

Last state power

Really love this trick on R2 mini. It is posible to enable Last State Power on this flash? I mean if the light is on and the power fall off, when it came back the R2 mini stay off, it is not returning to it last state power, on

OTA update issue

After join in the network
the device led blink for a while and nothing happened.
no device appear in home app

Connection

Hi,
I use my old (basically new :p) switches at home. My sonoff know that they have to make connection with the WiFi (access points or modem) as close as possible. Still I have some kind of a delay. Sometimes it works flawless, the other day it’s not 100% trustable. What can be the problem? PS wifey getting pissed :p.
BC4AB208-C28B-4327-B687-9E77E8E1075F
F79168A2-246D-4C36-9172-056D97F44B93
2F5EF8D5-27FE-4E6A-9113-BDE5842F814F
Uploading 647B3CEF-A919-40E4-8BFD-6CAEDD9CB603.jpeg…
Uploading 8DB6FCFF-D6DE-4985-BEC2-96CD94D8D2F6.jpeg…
Uploading C3009101-72FE-4BB1-ADD1-2099B5915AF9.jpeg…

Can't add device to Homekit

Okay so by now I was able to get the accessory to show up in Homekit as Sonoff-Mini-13139836
I need to enter the 8 digit code to pair the device with homekit. I've tried 13139836 but without any luck. What am I missing here?

Also tried:

11111111
00000000
12345678

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.