Universal ESP8266 based WiFi light/appliance controls

Started by dhouston, January 27, 2016, 04:28:02 AM

Previous topic - Next topic

dhouston

#15
Quote from: bkenobi on February 18, 2016, 11:58:38 AM
One of the diagrams shows a phone, router, and the device with arrows suggesting direct communication.  There is a cloud icon there as well, so I'm curious if it is possible to control things without internet access or if you must connect to the cloud when on the local network.  I'd assume cloud is required (usually is), but if not that would be interesting.

The ESP8266 is capable of being client or AP or client & AP simultaneously. As I mentioned earlier, I can't play with these now. I do see the Amazon Weather Service logo and some rather slender arrows, and I'm fairly certain there's no necessity for clouds. I briefly looked at the sparse documentation and it seems the Android and iOs apps can pair with the device(s) so direct control should be possible.

There's a forum (with minimal info to date) but there is a link to an Instructable (which appears to be about an earlier beta device) that implies a need for cloudy skies.

They say, in the forum, that they have yet to decide about publishing the WiFi Protocol.

PS: I believe I've seen similarly shaped clouds hovering over local Walmarts.  rofl
This message was composed entirely from recycled letters of the alphabet using only renewable, caffeinated energy sources.
No twees, wabbits, chimps or whales died in the process.
https://www.laser.com/dhouston

Tuicemen

The sonoff-wifi-wireless-switch might be just the thing I've been looking for my outdoor wood furnace at the off grid place.
For the price it is worth a try.
The new furnaces have this feature but I'm not forking out the money for a new furnace when this one works just fine.
Please Read Topic:
General Forum Etiquette
Before you post!

bkenobi

I've done some playing with a NodeMCU (ESP8266/ESP-12E) module using the Arduino IDE.  So far, I can make the LED on the module flash at different rates, host a web page, send MQTT packets, etc.  They are pretty cool little devices that can definitely be used as you describe (without the cloud), but I assume they would have the device contact a cloud server rather than host a service that your phone connects to directly.  If you have one, you'd certainly know more than me though!

dhouston

#18
The User Guide indicates a need for cloudy skies...
http://blog.iteadstudio.com/user-guide-for-sonoff-slampher/
but this answer in the forum indicates it also has local control...
http://support.iteadstudio.com/support/discussions/topics/11000001020
so I guess you need the cloud when away from home but can connect sans cloud when at home.

Also, it looks like the firmware as well as Android/iOS apps are still under development so things may change.

These are the first devices I've seen where the ESP8266 MCU is  integrated with the hardware of the final product rather than as a separate circuit board. It may or may not be possible to hijack such a device and install your own firmware. At this point I do not know whether it's possible to get it into download mode without DTR/RTS. The docs do show a Serial-TTL chip which is encouraging.
http://dl.itead.cc/IM151116002/sonoff-parts-without-433.jpg

And, it looks like being an early adopter means I missed out on the version that also has 433MHz RF control which would be another method of (purely) local control - it wasn't available when I ordered but is now.
This message was composed entirely from recycled letters of the alphabet using only renewable, caffeinated energy sources.
No twees, wabbits, chimps or whales died in the process.
https://www.laser.com/dhouston

dhouston

#19
bkenobi & I pretty much hijacked this thread...
http://forums.x10.com/index.php?topic=29439.msg165536#new
turning it into a discussion of the Sonoff switch.

I'm curious whether the status tracking is by dead reckoning or by querying the device(s). The latter would seem to be a useful feature for your outdoor wood furnace application.
This message was composed entirely from recycled letters of the alphabet using only renewable, caffeinated energy sources.
No twees, wabbits, chimps or whales died in the process.
https://www.laser.com/dhouston

Tuicemen

Please Read Topic:
General Forum Etiquette
Before you post!

dhouston

#21
One more reason cited for the cloud is that each device can have up to 8 scheduled events (i.e. timers) but, as yet, there's no mention of macros. If Amazon's cloud is aware of all events (both local and remote), macros would seem a natural extension. However, the time based events might be stored within the switch (or light) - there's probably enough internal memory for that and the ESP8266 has its own RTC as well as the ability to access internet time servers. Macros, however, require a centralized controller (local or cloud-based).

While there have been only a few Sonoff related questions to Itead Studio's forum, they have mostly addressed desirable features that would be familiar to most X10 users. If Authinx is not watching this, they should be.
http://support.iteadstudio.com/support/discussions/1000058207

EDIT: Looking at the Sonoff schematic, there is a 1MByte Flash memory chip(25Q80BV). There's also another chip (EFM8BB1) which is an 8-bit microcontroller, the function of which is not clear to me given that the ESP8266 is a 32-bit microcontroller. (The optional EFM8BB1 handles the optional 433MHz RF receiver.)
http://wiki.iteadstudio.com/images/6/6b/Sonoff_schmatic.pdf
http://www.datasheet4u.com/datasheet-pdf/Winbond/25Q80BV/pdf.php?id=935848
http://www.mouser.com/pdfdocs/EFM8BB1_DataSheet.PDF
All-in-all, it appears to have computing power that's a few orders of magnitude beyond the typical X10 device.

Upon further review, it appears that the TTL TX, RX, Enable & RESET are brought out to solderpads so it should be possible to reprogram the ESP8266. This could be fun!
This message was composed entirely from recycled letters of the alphabet using only renewable, caffeinated energy sources.
No twees, wabbits, chimps or whales died in the process.
https://www.laser.com/dhouston

dhouston

Quote from: Tuicemen on February 18, 2016, 04:53:25 PM
Yep, hope I've fixed that.

I think so. Unfortunately, the Australian chap who started that thread stopped watching it before I suggested the Sonoff switch which would seem ideal (and super inexpensive) for his application. His email is hidden or I would try reaching him that way.
This message was composed entirely from recycled letters of the alphabet using only renewable, caffeinated energy sources.
No twees, wabbits, chimps or whales died in the process.
https://www.laser.com/dhouston

Tuicemen

They have set the option to receive an email on a reply to that thread, however they have never returned (logged on again) to the forum.
So I doubt emailing them would help.
Please Read Topic:
General Forum Etiquette
Before you post!

dhouston

Here's another low cost ESP8266 based device from the same source. This looks versatile and useful.
http://wiki.iteadstudio.com/Sonoff_SV
This message was composed entirely from recycled letters of the alphabet using only renewable, caffeinated energy sources.
No twees, wabbits, chimps or whales died in the process.
https://www.laser.com/dhouston

Tuicemen

My Sonoff  just arrived the other day, I expected Air mail to be faster then the boat  rofl
I hope to play with this a bit in the next few days before I attempt to attach it to my outdoor furnace.
I did download the android app and preinstalled it in hopes to get a bit of a feel for it.
you need to setup a account and request a text authorization to get it working. This took me a few attempts but on the forth attempt I was able to log on.
The unit I ordered was without the RF receiver but one can be added latter if I wish (figured my wife would hit the roof with another remote in the house). rofl
As soon as I get this powered up for testing I'll post my findings.
>!
Please Read Topic:
General Forum Etiquette
Before you post!

dhouston

Will the Android app run under BlueStacks? My left hand is paralyzed and I find trying to use a phone or tablet with one hand to be more hassle than it's worth.
This message was composed entirely from recycled letters of the alphabet using only renewable, caffeinated energy sources.
No twees, wabbits, chimps or whales died in the process.
https://www.laser.com/dhouston

HA Dave

Quote from: Tuicemen on March 12, 2016, 04:30:07 PM
............ As soon as I get this powered up for testing I'll post my findings.
>!

Will be looking forward to reading about this.
Home Automation is an always changing technology

Tuicemen

Quote from: dhouston on March 12, 2016, 10:11:35 PM
Will the Android app run under BlueStacks? My left hand is paralyzed and I find trying to use a phone or tablet with one hand to be more hassle than it's worth.
I never thought of trying that!
I suspect it will, once I have it wired up I'll attempt it and let you know how well it works or doesn't. >!
Please Read Topic:
General Forum Etiquette
Before you post!

Tuicemen

#29
I've done some simple setups and ran some simple tests so far.
The App installs fine on Bluestacks it also will control the Sonoff turning it on and off.
However you can't install a new device using BlueStacks  :-[
If you install with a phone the next time you open the app in Bluestacks it will appear.
You can delete a Sonoff from Bluestacks ,so far it appears only installing fails on Bluestacks.

There was a new update for the app so I installed it on the Bluestacks machine as well this still won't allow a device install.
However is a little cleaner looking
The app still needs some work with initial setup but basic functions are there.
You can setup the device so it turns the device connected to it on power up or remains off with power up which is nice.
It has a timer which can be set for just once or any or every day of the week.
Please Read Topic:
General Forum Etiquette
Before you post!