***SONOFF - WiFi Wireless Smart Switch***

Would you use a Sonoff..?


  • Total voters
    85

eyderbuddy

Well-Known Member
heads up: one of my sonoffs didn't turn off the lights the other day, luckily i discovered it only a few hours in. there are lots of complains over the new years holidays from people who had problems too

time to flash them and run them on my own server
How easily are they flashed? It would be cool if i could easily setup my own server and get rid of any vulnerabilities.
 

SSGrower

Well-Known Member
Are you talking about gradually changing your ON/OFF time or are you changing the light intensity too?

I didn't know people were doing Arduino (or any other) projects in here too! AWESOME! I'm running a small hydroponic cloner with a light that's powered by an Arduino. I've got a DIY EC meter hooked to the board, a temp meter, an RTC, and much more, it makes me feel like a scientist!
Yes both are possible currently I only do the time based functions. For intensity there are at least two ways to do it via arduino, think of it like arduno needs to replace the solid state components typically used for dimming. If you need a 10k pot to dim your driver, there are a number of ways you could emulate that with either a digital/discrete progression over time or an analog output.

But
Since the arduino is pwm capable and the dimming leeds on an appropriate driver can be controlled via a pwm signal, that is the way I am going to proceed. I need an appropriate amplier and driver to do this and since I do not plan on upgrading that any time soon it will be a while before I get to it.

I am more interisted in spectrum and direction though and will work on those In the short term.

VegasWinner has a module that does all of this and more tho sooooo, that's an easy button for ya.
 
70B89E26-769B-4F07-9667-852EFE1F215F.jpeg Wow. I am building my own ESP8266-12F device.

My one has 12 bit PWM dimming (4096 steps) for HLG drivers. Internal clock with battery. Connections for display, camera, control knobs, 5 relais, 5 fans and temperature sensors.

It keeps the settings and time in case of power failure or lost WiFi connection.

I made it specially for the “Fyton Sun288” light fixture that i am building.

Internet of things growlights.
 

bizfactory

Well-Known Member
Are you talking about gradually changing your ON/OFF time or are you changing the light intensity too?

I didn't know people were doing Arduino (or any other) projects in here too! AWESOME! I'm running a small hydroponic cloner with a light that's powered by an Arduino. I've got a DIY EC meter hooked to the board, a temp meter, an RTC, and much more, it makes me feel like a scientist!
Check out my IG @bizfactory (also linked below). I have a Raspberry Pi that monitors/graphs temp and humidity and displays a live image (when the lights are on). Grow nerds are the best nerds!
 

SSGrower

Well-Known Member
^^^^&^as stated before, mofos be geeks out.

Are you talking about gradually changing your ON/OFF time or are you changing the light intensity too?

I didn't know people were doing Arduino (or any other) projects in here too! AWESOME! I'm running a small hydroponic cloner with a light that's powered by an Arduino. I've got a DIY EC meter hooked to the board, a temp meter, an RTC, and much more, it makes me feel like a scientist!
 

nachooo

Well-Known Member
heads up: one of my sonoffs didn't turn off the lights the other day, luckily i discovered it only a few hours in. there are lots of complains over the new years holidays from people who had problems too

time to flash them and run them on my own server
Yes, I have been suffering same problems until this morning when my two sonoff came back to life..fortunately they were controlling humidity and was stable these days . People are complaining a lot about the server problems during holydays....and yes..time to hack this devices...Another thing to learn thanks to our beloved plant...:)
 

sethimus

Well-Known Member
Yes, I have been suffering same problems until this morning when my two sonoff came back to life..fortunately they were controlling humidity and was stable these days . People are complaining a lot about the server problems during holydays....and yes..time to hack this devices...Another thing to learn thanks to our beloved plant...:)
the bad thing was, i have two drivers on a dual sonoff, one turned off, the other didn't. so far i was under the impression that they will work offline, the cloud was only for reprogramming needed. looks like that's not true
 

klx

Well-Known Member
You are lucky...problems seem to appear in Europe customers...Here in Spain, all the day without connection
Yeah seems a bit dodgy. The best thing about these switches were that they were plug and play, happy days, if we need to start flashing them etc, may as well just use an arduino. Think I will just stick to environmental controls with them and leave the lights and pumps on timers for now.
 

bizfactory

Well-Known Member
Yeah seems a bit dodgy. The best thing about these switches were that they were plug and play, happy days, if we need to start flashing them etc, may as well just use an arduino. Think I will just stick to environmental controls with them and leave the lights and pumps on timers for now.
There shouldn't be any server needed unless updating settings. I have set the schedule via wifi, turned off my router, and tested they do what they were programmed to do several times. Never failed me. Handled daylight savings just fine and it will even automatically account for your time zone changing on the app. So for example. My lights turn on at 7am Mountain, when I was in Ohio for the holidays, it showed the "on" time as 9am Eastern. Can anyone link me to the problems? I feel like I have a good understanding of how these things work and it seems odd they wouldn't work on account of a sonoff server issue.
 
  • Like
Reactions: klx

Hydro2112

Member
View attachment 4067509 Wow. I am building my own ESP8266-12F device.

My one has 12 bit PWM dimming (4096 steps) for HLG drivers. Internal clock with battery. Connections for display, camera, control knobs, 5 relais, 5 fans and temperature sensors.

It keeps the settings and time in case of power failure or lost WiFi connection.

I made it specially for the “Fyton Sun288” light fixture that i am building.

Internet of things growlights.

this is very cool. Care to explain the components and functions a bit more? What is reboard #1? does the ESP setup a webserver to display the data or is it cloud based? Also, is the camera/video transmitted over WIFI or just the screen?
thanks!
 
0E863027-9868-4FDB-A663-8DFD4EFE760D.jpeg A8777219-DF92-4408-AC3C-3BB36D2520F3.jpeg
this is very cool. Care to explain the components and functions a bit more? What is reboard #1? does the ESP setup a webserver to display the data or is it cloud based? Also, is the camera/video transmitted over WIFI or just the screen?
thanks!
reboard#1 is the board with the 2 rotary encoders. In the pictures is a prototype. On the reboard#1 are schmitt triggers and CD4013 D Flip-Flop‘s to make it easy to read the output from the rotary encoders.
http://www.bristolwatch.com/ele2/rotary.htm

You can choose in a setup menu if you want to use your fixture via your home netwerk, cloud based or as a webserver.

The display and camera work with the SPI and I2C protocol. The sensors work with the Onewire protocol. Because al that protocols used up almost all the pins on the ESP i used an MCP23017 port expander to read the input from the rotary encoders and to switch the 5 relais, the fans and the backlight of the display. The MCP23017 works with the I2C protocol.

The dimming is done by a PCA8695 PWM IC. It is 12 bit and has 16 ports. It works with the I2C protocol. I only use 2 ports for 2 hlg drivers.

The clock is a DS3231 that also works with the I2C protocol. A clock is nescesary If the WiFi signal drops.

The camera is send via WiFi to a home server (raspberry pi with a harddisk) or to the cloud. Very nice for high resolution time lapse video’s.
 
Last edited:

sethimus

Well-Known Member
There shouldn't be any server needed unless updating settings.
i have 2 different type of cobs in my light, 3500k and 1750k each on their own driver. both connected to a sonoff dual. the 3500k driver was suppossed to go off 5mins before the 1750k driver, 3500k went off, 1750k stayed on.
 

bizfactory

Well-Known Member
i have 2 different type of cobs in my light, 3500k and 1750k each on their own driver. both connected to a sonoff dual. the 3500k driver was suppossed to go off 5mins before the 1750k driver, 3500k went off, 1750k stayed on.
What did the schedule say when you check it on the app? Are you sure the schedule took on the device?
 

VegasWinner

Well-Known Member
View attachment 4068342 View attachment 4068343

reboard#1 is the board with the 2 rotary encoders. In the pictures is a prototype. On the reboard#1 are schmitt triggers and CD4013 D Flip-Flop‘s to make it easy to read the output from the rotary encoders.
http://www.bristolwatch.com/ele2/rotary.htm

You can choose in a setup menu if you want to use your fixture via your home netwerk, cloud based or as a webserver.

The display and camera work with the SPI and I2C protocol. The sensors work with the Onewire protocol. Because al that protocols used up almost all the pins on the ESP i used an MCP23017 port expander to read the input from the rotary encoders and to switch the 5 relais, the fans and the backlight of the display. The MCP23017 works with the I2C protocol.

The dimming is done by a PCA8695 PWM IC. It is 12 bit and has 16 ports. It works with the I2C protocol. I only use 2 ports for 2 hlg drivers.

The clock is a DS3231 that also works with the I2C protocol. A clock is nescesary If the WiFi signal drops.

The camera is send via WiFi to a home server (raspberry pi with a harddisk) or to the cloud. Very nice for high resolution time lapse video’s.
Real nice setup and clean too. I use rotary encoder as well for menu access.
 
Top