I have been looking for an ambient light sensor to use with other IoT smart home devices. In my opinion this would be a commonly requested device for controlling internal lighting. For example if you had smart lighting, you may want to turn the lights off if the sun is shining brightly or turn the lights on if it's cloudy. Weather services could help, but ambient light at the location would be far more reliable.

Bonus points for hubless design (i.e. Wi-Fi and not ZWave/ZigBee) and integration with IFTTT, etc is also key.

  • 9
    Why are you looking for outdoor sensors to control indoor lighting? If you want perfect light inside, you should measure the light inside, not outside.
    – Helmar
    Commented Feb 2, 2017 at 20:37
  • 4
    Are you seeking an off-the-shelf product or you want to build one? Commented Feb 2, 2017 at 20:53
  • 1
    @BenceKaulics Off the shelf would be preferred. Weatherproofing a raspberry pi zero doesn't sound like much fun.
    – ngless
    Commented Feb 3, 2017 at 22:14
  • 2
    @Helmar If you're measuring indoor light to determine whether or not you need to turn the lights on, you would have to have a mechanism to prevent feedback which would complicate the system. I'm not saying it wouldn't be a better approach, but it would definitely be more complex.
    – ngless
    Commented Feb 10, 2017 at 14:10
  • That's a valid point one has to consider
    – Helmar
    Commented Feb 10, 2017 at 14:21

6 Answers 6


You did specify that ideally you didn't want a hub, but I think you'll either have to compromise on that if you want IFTTT to be able to integrate with the sensor.

If you're open to a Z-Wave sensor, the Everspring ST815 seems relatively suitable:

The Z-Wave Wireless Illumination Sensor with LCD Screen from Everspring activates programs or devices automatically based on illumination settings chosen in advance by the user. This sensor has a backlit LCD that displays a timer, illumination, transmission status and battery status. It has a lux (measurement relating to amount of visible light present) detecting range from 0 (darkness) to 3000 and a countdown timer that is adjustable from one minute up to eight hours. The sensor has a 60dB (decibel) built-in beeping tone/alert and has a wall-mountable design for use indoors or outdoors. The Z-Wave Wireless Illumination Sensor can be enrolled into any Z-Wave network to begin communicating with other Z-Wave enabled devices. It has an operating range up to 100 feet and is powered by three 1.5V AA batteries.

So, this device seems suitable because:

  • it is rated for both indoor and outdoor use
  • it can detect from 0 - 3000 lux, so although it won't detect bright sunlight, it should be able to tell between overcast and sunny conditions
  • configurable lux settings so that you can reduce false positive detections.

The Vera Hub seems to have relatively good support for the sensor, so it's an option if you can't find any Wi-Fi sensors that meet your requirements. Alternatively, you could consider making a sensor yourself if you're open to that; if you do decide to go down that route, you're welcome to edit the question.


The best I've found, that checks all of the boxes listed in the question is...

A personal weather station such as this one would do the job. It appears that some of these would give you an output of watts / m^2 which could then be used to decide if you wanted lights on or off (or even an inversely proportional dimmer setting)


My team have been developed sensor for ambient light level sensor working on smart building lighting project. Sensor is based on of-the-shelf sensor (Texas Instruments OPT3001) adjusted for our proprietary protocol (xFSB). Mentioned sensor was chosen between 3 other sensors - so according to ours tests this one has really good performances.

We used values for outdoor light level as well ad indoor in order to calculate light level and light temperature inside the building (offices).

  • 2
    This is interesting to know. Do you have a solution (e.g. hardware) that you can share in this answer, so that others can benefit? At the minute, this doesn't really contain an answer that other people could use.
    – Aurora0001
    Commented Sep 5, 2017 at 9:28
  • 1
    Thank you for advise, there is sensor model and link now included in my answer.
    – Amit Vujic
    Commented Sep 5, 2017 at 10:40

You can use simple camera (e.g CCTV) to capture image and process this image to get light info. Without any sensor.

Calculate the sum of R+G+B for all pixels divided by 3 then by the total number of pixels

For (i = 0 to n-1){
S=S + Ri+Gi+Bi
Level = S/(3*n)

This will give a level value between 0 (dark) and 255 (bright) A similar Javascript implementation is gen here: http://jsfiddle.net/s7Wx2/ Test the result on the right of that page.


  • 1
    Please elaborate a way to do this. Otherwise this is more of a comment.
    – Helmar
    Commented Sep 30, 2018 at 16:39

I use Aeotec Multi Sensor 6. It has sensors for

  • humidity
  • lux
  • temperature
  • movement

It is not meant for outside, but I have two outside (front and back of house) under the eaves. They work fine. I make sure they both agree before declaring that its dark outside. I use this control outside lights and closing the blinds. As a bonus, when someone is outside at night, I turn teh lights on as well.

I also use one in each room, to detect motion and lux to decide when to turn the lights on and off, in that room.

Its a Z-wave compatible sensor and can run off a battery or a wired USB power. The latter is the main reason I use this device. Who wants to change batteries all the time.

Finally, it does require a hub/server. But you can directly link the sensor to the light, which will bypass the hub.


More than 5 years after the original question was asked...

The best answer in 2022 for me has been the Xiaomi Mi light detection sensor which uses Zigbee 3.0. This can easily be added to a Home Assistant or really any Zigbee Hub. This still doesn't meet the original requirements of being off the shelf and Hub-less, but it's as close as exists in 2022.

I am in the process of making my own custom light sensor using a FireBeetle 2 ESP32 development board with the TSL2591 light sensor. This will use MQTT to report its values to Home Assistant. This is definitely NOT off the shelf, but does meet the Hub-less requirement.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.