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

Would you use a Sonoff..?


  • Total voters
    85

justsmokedope

Well-Known Member
The description says that the device is not yet final and is currently only intended for hobbies. Maybe it will be updated later with a firmware update so that it can read more accurate values. I like the fact that it can switch appropriate devices and is not only for monitoring purposes.
in theory you should be able to connect any sensor to a esp like a LI-190R Quantum Sensor and read the data
 

Nutria

Well-Known Member
Is there a way to use sonoff switches without wifi? I have to build a led fixture for a friend who doesnt have a wifi network
 

justsmokedope

Well-Known Member
Is there a way to use sonoff switches without wifi? I have to build a led fixture for a friend who doesnt have a wifi network
yes as you can reprogram them like with most esp s the create there own wifi network lots on this on you tube and google or if you have a pi you could set up a web server and use that wifi network

or something like this perhapes https://www.npmjs.com/package/simple-sonoff-server
 
Last edited:

justsmokedope

Well-Known Member
Is there a way to use sonoff switches without wifi? I have to build a led fixture for a friend who doesnt have a wifi network
you can set up a old router that's not in the internet to give you a wifi network to connect it all to prob the simple est solution (intranet )
 

Randomblame

Well-Known Member
Is there a way to use sonoff switches without wifi? I have to build a led fixture for a friend who doesnt have a wifi network
You could use the Sonoff RF to manually switch it on and off with an RF remote controller but you still need a wifi connection to set up the timer.
If the on and off times are programmed, the Sonoff should keep the settings even without wireless connection.
 

justsmokedope

Well-Known Member
You could use the Sonoff RF to manually switch it on and off with an RF remote controller but you still need a wifi connection to set up the timer.
If the on and off times are programmed, the Sonoff should keep the settings even without wireless connection.
do you know if there is a dimming using the app using the sonoff basic or is it just timer etc

i think there is a slide bar in the dropdown menu that allows dimming looking at a video but not sure
 
Last edited:

whytewidow

Well-Known Member
do you know if there is a dimming using the app using the sonoff basic or is it just timer etc

i think there is a slide bar in the dropdown menu that allows dimming looking at a video but not sure
Also wondering that? A dimming value would be sweet. Mine comes today.
 

noodle-led

Well-Known Member
Here is my Home Assistant config for my grow. Pretty fuckin awesome if you ask me.
Oh you just track temperature and humidity? That's cute. VPD and absolute humidity where you at!
streakyui.PNG

I've also found that the all AMS2301 / DHT22 units I have hilariously misread the humidity, all being off by >10% compared to a LaCrosse weather station transmitter. I've even tried the BME280, which is within 4% of the LaCrosse. They seem to track fairly linearly though, so I just adjust the value with an offset to match it to the weather station.
 

Nutria

Well-Known Member
Oh you just track temperature and humidity? That's cute. VPD and absolute humidity where you at!
View attachment 4101137

I've also found that the all AMS2301 / DHT22 units I have hilariously misread the humidity, all being off by >10% compared to a LaCrosse weather station transmitter. I've even tried the BME280, which is within 4% of the LaCrosse. They seem to track fairly linearly though, so I just adjust the value with an offset to match it to the weather station.
DHT11 or 22 are cheap but there are better options!
May I ask you how do you measure the VPD? I already faced it in another user's post.
I am also interested to implement a Voltage and Current meter, how did you do yours?
 

noodle-led

Well-Known Member
May I ask you how do you measure the VPD? I already faced it in another user's post.
I am also interested to implement a Voltage and Current meter, how did you do yours?
Sure! The VPD is just a calculation based on the temperature and humidity, so it is easy to work out. I just have a node in my Node-RED that calculates it. I'm sure it can be converted to of the other automation platforms. Here is the code:
Code:
// saturated vapour pressure (Pa) at Temp (C)
function calcSVP(T) { 
    T=parseFloat(T);
    var tmp = 7.591386*T/(240.7263+T);
    return 611.6441*Math.pow(10,tmp);
}

var src = msg.payload.AM2301 || msg.payload.BME280;
var VPD=((100-src.Humidity)/100) * calcSVP(src.Temperature);
VPD = (VPD / 100.0).toFixed(2); // Convert to hPa

var out = { "topic": "VPD", "payload": VPD};
   
return out;
The Voltage and Current comes directly from my "Sonoff". The Sonoff POW measures voltage current and apparent power (power factor), but my device is actually a KMC 70011, which has the same guts except has a built-in outlet/plug instead of needing to be wired in. Amazon has them for $12 each.

Do you have a recommendation for a more accurate humidity sensor that won't break the bank? The BME280 is certainly better than the DHT22 but I'm always open to new options.
 

InTheValley

Well-Known Member
man, my sonoffs (4chanpro and 1 single)made it hands off now. I use a 3 gallon container for my watering ring, with a sonoff attached to a extension cord, then my pump plugged in, and now water every 8 hours for 1 minute. All i have to do is keep my res topped off everyother day.

I had to take the lid off the 4chan and blackout the wifi light blue beam, with electric tape, so, just keep that in mind if its in your growroom.

awesomeness.
 

Nutria

Well-Known Member
Do you have a recommendation for a more accurate humidity sensor that won't break the bank? The BME280 is certainly better than the DHT22 but I'm always open to new options.
I actually find that the bme280 is the best option in the 0-3$ price range. I red a whole test about different temp&rh sensors, I will post ghe link if I am able to find it once more

https://www.dfrobot.com/blog-45.html
https://www.intorobotics.com/pick-best-temperature-sensor-arduino-project/
http://www.kandrsmith.org/RJS/Misc/Hygrometers/calib_many.html
 
Last edited:

justsmokedope

Well-Known Member
It's just a timer, mate.
There is a "Sonoff LED" which is dimmable and has a few nice features but it's made for smaller LED lights.(42w max., 0,3-0,6A)

https://www.itead.cc/sonoff-led.html
will figure out how to dimm my drivers remotely using another microcontroller perhapes on the dimming lead. but the sonoffs do have extra gpio pins that i think can be settup to send a 0-5 / 0-10v for a dimming lead but that is a hack though. i do have 16 sonoff s on the way to me so i should have a few left to mess with to try to make them do something fancy
 

Nutria

Well-Known Member
will figure out how to dimm my drivers remotely using another microcontroller perhapes on the dimming lead. but the sonoffs do have extra gpio pins that i think can be settup to send a 0-5 / 0-10v for a dimming lead but that is a hack though. i do have 16 sonoff s on the way to me so i should have a few left to mess with to try to make them do something fancy
i suppose youre going to connect sonoffs on the AC side, am I right?
You could dim a mw driver with a transistor and a mcu. If there are free slots inside a sonoff that should be enough
 

justsmokedope

Well-Known Member
i suppose youre going to connect sonoffs on the AC side, am I right?
You could dim a mw driver with a transistor and a mcu. If there are free slots inside a sonoff that should be enough
i've got loads of wireless esps laying around that can dimm 0-5v and also have some pwm boards .
so i most likely will just pop one on the dimming lead and not mess with the sonoff too much prob only to install new firmware to help me get them working with mqtt and node red .
The other esps can be added to mqtt and node red also, and then i just need to control them with the node red dash for dimming
 
Top