HomeACcessoryKid / ESP8266-HomeKit

HomeKit server Native on ESP8266_RTOS with an API approach
https://www.youtube.com/watch?v=Xnr-utWDIR8
Apache License 2.0
487 stars 74 forks source link

Add to ESP8285 taget support (Sonoff style of devices) #15

Closed felixekman closed 5 years ago

felixekman commented 7 years ago

This would be perfect for the Sonoff type of line. But they use ESP8285 that's almost the same as the ESP8266 but with built-in 1MB flash.

Line of products example: https://www.itead.cc/smart-home/sonoff-touch.html https://www.itead.cc/smart-home/motor-reversing-wifi-wireless-switch.html

AdySan commented 7 years ago

Minor correction there, it's ESP8285 not ESP8265.

Do you know if it is supported in the ESP8266_RTOS_SDK, or what changes need to be made in order to support it? I believe the only change is that the flash is wired to a different port.

felixekman commented 7 years ago

Yeah you're right, slip of the fingers ^^

I don't have a unit to try on actually. But I think they do a different flash layout, pinout should be the same I think.

AdySan commented 7 years ago

Looks like the only change required is to change SPI_MODE to DIO, and that can be selected while running ./gen_misc.sh

felixekman commented 7 years ago

I'll purchase a few units and give it a try, but bodes well. Dream would be to have HomeKit and Alexa (wemos or hue emulation) working on the same device like one of these.

Could possibly draw some inspiration from this: https://github.com/arendst/Sonoff-MQTT-OTA-Arduino/

AdySan commented 7 years ago

The Alexa integration only exists as a Arduino library at the moment. If someone could find a working example with the RTOS SDK, might be easy to port. But I doubt that it'll work given the resource requirements of HomeKit itself.

On Wed, Jan 11, 2017 at 10:53 AM, Felix notifications@github.com wrote:

I'll purchase a few units and give it a try, but bodes well. Dream would be to have HomeKit and Alexa (wemos or hue emulation) working on the same device like one of these.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HomeACcessoryKid/ESP8266-HomeKit/issues/15#issuecomment-271959539, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtdaun_lXaY5b3cT0cvcoj57rvymRXZks5rRSUcgaJpZM4Lg5lT .

felixekman commented 7 years ago

Yeah I was looking into that as well, especially considering most of the units having only 1MB to work with as well. Though some of the Sonoff stuff like the S20 have an ESP8266 with the ability to replace the SPI flash for something bigger like a 4MB chip.

S20: https://www.itead.cc/smart-home/smart-socket.html

malhal commented 7 years ago

Hi any updates on wether this works on the Sonoff devices? Very interested to hear about it, thanks.

Thought I'd also share this video I found of how to upgrade the flash: Youtube: Sonoff flash upgrade. But it sounds like it isn't necessary for this project.

malhal commented 7 years ago

It's been a while just managed if anyone has managed to get this HomeKit capable firmware working on the cheap Sonoff devices? Given these are $4 and the official Bluetooth (not even any WiFi available yet) HomeKit plugs are $75 I thought there would be at least someone trying.

HomeACcessoryKid commented 5 years ago

https://github.com/RavenSystem/esp-homekit-devices/wiki