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

Discussion in 'LED and other Lighting' started by Chronikool, Sep 1, 2017.

?

Would you use a Sonoff..?

  1. Yeah

    81.5%
  2. Nah

    9.2%
  3. Id rather have a sawn-off ....

    9.2%
  1.  
    justsmokedope

    justsmokedope Well-Known Member

    in theory you should be able to connect any sensor to a esp like a LI-190R Quantum Sensor and read the data
     
    Randomblame likes this.
  2.  
    justsmokedope

    justsmokedope Well-Known Member

    or you can use a dht22 that does 0-100% humidity also
     
  3.  
    justsmokedope

    justsmokedope Well-Known Member

    Philip-O and klx like this.
  4.  
    Hurricane09

    Hurricane09 Active Member

    Anyone using a ppm sensor with these?
     
  5.  
    Nutria

    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
     
  6.  
    justsmokedope

    justsmokedope Well-Known Member

    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: Mar 5, 2018
    Nutria likes this.
  7.  
    justsmokedope

    justsmokedope Well-Known Member

    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 )
     
    Nutria likes this.
  8.  
    Randomblame

    Randomblame 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.
     
    Nutria likes this.
  9.  
    justsmokedope

    justsmokedope 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
     
    Last edited: Mar 6, 2018
  10.  
    whytewidow

    whytewidow Well-Known Member

    Also wondering that? A dimming value would be sweet. Mine comes today.
     
  11.  
    noodle-led

    noodle-led Member

    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.
     
  12.  
    Nutria

    Nutria Well-Known Member

    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?
     
  13.  
    noodle-led

    noodle-led Member

    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.
     
    Nutria likes this.
  14.  
    InTheValley

    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.
     
  15.  
    whytewidow

    whytewidow Well-Known Member

    It has begun....

    20180306_171823.jpg 20180306_171751.jpg mir_20180306_192604.jpg mir_20180306_192538.jpg
     
  16.  
    Nutria

    Nutria Well-Known Member

    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: Mar 7, 2018
  17.  
    Randomblame

    Randomblame 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
     
  18.  
    justsmokedope

    justsmokedope 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
     
    Philip-O and Randomblame like this.
  19.  
    Nutria

    Nutria 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
     
  20.  
    justsmokedope

    justsmokedope Well-Known Member

    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
     
    Nutria likes this.

Share This Page