Sonoff

Got a good idea? You can suggest new features here.

Sonoff

Postby kalinkamaen » Fri Dec 30, 2016 9:39 am

Is there anyone working on a way to implement sonoff switches?

https://www.aliexpress.com/wholesale?ca ... ext=sonoff

They are very cheap!

They way to control them now is with app called ewelink.
https://play.google.com/store/apps/deta ... lkit&hl=no

Vil du oversette beskrivelsen til norsk med Google Oversetter? Oversett
E-Welink is a free universal smart home remote control software. It can remotely control hardware products of different types and brands. E-Welink currently supports dozens of smart devices, including smart socket, LED lamp, fan, heater, air purifier, etc. It is a smart home control center that can manage all your appliances through one APP.
If you have successfully added device, as long as you follow our official WeChat, you can directly control all your devices through accessing WeChat. Simply scan the QR code above to follow our Wechat account.
kalinkamaen
Experienced User
 
Posts: 132
Joined: Wed Dec 26, 2012 9:23 am

Re: Sonoff

Postby kgschlosser » Fri Dec 30, 2016 12:30 pm

HA!
those things use an ESP8266 wifi chip.

making something for it would be a breeze.

I can install python on it and make it do a whole lot more then just turn lights on and off..

basically here is the rundown..

one of those ESP chips can do all of this in one package.

Temp Sensor and humidity sensor,
Turn light on and off
motion sensor
light sensor
ir receiver**
ir transmitter**
touch sensor ***
fingerprint recognition
I am sure I could get the thing to accept voice commands and transmit them back to eg as events


** an IP IR Blaster compare iTach wifi IR blaster at 120 USD

*** can do multiple capacitive touch sensors through resistors so a single wall switch plate could have buttons to adjust the thermostat, turn the light on and off, volume up and down on radio/tv

hell you can even run a small touch screen off of one of them.

I don't know if the pins are exposed in such a way that things could be added. but i am sure they have at the very least the pins exposed to program the thing.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1854
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sonoff

Postby kgschlosser » Fri Dec 30, 2016 12:32 pm

they also have SPI so you can control individually addressable LED's if you can think it. they can do it.

but at 5 beans and it cones with the power supply all set up with a relay and all packaged in a case. for 4.50 USD that's a good price.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1854
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sonoff

Postby kalinkamaen » Fri Dec 30, 2016 12:49 pm

I do not think I understand your answear here.

I understand that you think this is expensive. Will the price make this uninterested for
people to implement to EG?
kalinkamaen
Experienced User
 
Posts: 132
Joined: Wed Dec 26, 2012 9:23 am

Re: Sonoff

Postby kgschlosser » Fri Dec 30, 2016 1:32 pm

NO NO NO it's dirt cheap.

ESP8266 by it's self, around 5 dollars.
Relay 1 dollar
Power Supply 10 dollars
case 10 Dollars

so far we are at 26 dollars for the same thing. and the cost is 5 dollars for your module. its cheap.

I would have to have one in hand to develop for it. I will look for an API for their software. But these things can do so much more.

for about another 10 dollars you can make it do all of the things I mentioned in the other post (minus the touch screen)

But even if I am unable to locate an API for their software I can make it work regardless.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1854
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sonoff

Postby kalinkamaen » Fri Dec 30, 2016 2:42 pm

I can buy one for you! If you are willing to do a try!
kalinkamaen
Experienced User
 
Posts: 132
Joined: Wed Dec 26, 2012 9:23 am

Re: Sonoff

Postby kgschlosser » Fri Dec 30, 2016 2:55 pm

Let me look and see if I can find an API for it
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1854
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sonoff

Postby kalinkamaen » Fri Dec 30, 2016 3:27 pm

Oki tell me i f you want one later if you want.

Picture taken from here: https://www.itead.cc/sonoff-wifi-wireless-switch.html

Image
kalinkamaen
Experienced User
 
Posts: 132
Joined: Wed Dec 26, 2012 9:23 am

Re: Sonoff

Postby kgschlosser » Fri Dec 30, 2016 5:43 pm

I was just about to tell you there is no public API. LOL

but it does look like from the schematic all of the pins might be accessible. but at the very least the Serial TTL pins are. I don't know any of the specifics on the actual ESP they are using or how much Flash storage it has. but it has to have at the very least 512k which would be enough to get python onto it. and from there writing the code would be very easy.

you are going to need to purchase a FTDI usb to TTL serial that does 3.3 volts and 5 volts. you will also need to buy some header pins as it looks as tho they do not have the pins soldered in place.

I do suggest this to anyone that has not soldered before or is not very proficient at it. but get a small developer board that's a blank. it will be a small board with a whole lot of holes in it. this would be for getting you familiar with how to solder the header pins on. Get the brown boards as those are a the worst to solder with. and if you get good at soldering pins onto those then anything else is a breeze. I usually suggest a spring loaded board holder that turns. this makes it a lot easier as well. but this all depends on how many of these things you have to do.

here is a link to the exact holder i have. i like this one. and it's super cheap too
https://www.amazon.com/Adjustable-Solde ... ard+holder

here is a link to the USB to TTL adapter
https://www.amazon.com/Micro-Basic-Brea ... 1248879011

this is the brown boards
https://www.amazon.com/Prototype-Univer ... cuit+board

and the pins
https://www.amazon.com/2-54mm-Spacing-6 ... tch+Header
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1854
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sonoff

Postby kalinkamaen » Fri Dec 30, 2016 6:12 pm

Oki, so I understand that it is not possible to integrate this into EG without flashing. Then its not for me.
Thanks for you answer anyway!
kalinkamaen
Experienced User
 
Posts: 132
Joined: Wed Dec 26, 2012 9:23 am

Re: Sonoff

Postby kgschlosser » Fri Dec 30, 2016 11:59 pm

I am not saying it's not possible. I don't have one to look at and to run a packet sniffer on to see what is getting sent back and forth. I highly doubt it's got any encryption. the traffic might be base64'd but that's about it i am sure. and sometimes a little e-mail goes a long ways. I might be able to squeeze the API out of them. it really shouldn't be that hard
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1854
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest