GithubHelp home page GithubHelp logo

Comments (9)

jonathanweinberg avatar jonathanweinberg commented on August 31, 2024 1

Also, if you're using an LDR, lux is an arbitrary thing in that scale, you aren't getting true lux values.

from esp-mqtt-json-multisensor.

cooljimy84 avatar cooljimy84 commented on August 31, 2024

I get this when someone walks in front of the sensor. I was thinking of using a diffuser on top of it to try and level it out a bit.
I also have a 30 minute window where the sun bounces off cars going past and they reflect into the flat causing it to read higher for a second or so....

from esp-mqtt-json-multisensor.

ntalekt avatar ntalekt commented on August 31, 2024

I got this too and realized it was my ceiling fan throwing shadows all over the place. I moved the sensor to a place that isn't affected and mounted in an enclosure and it's been rock solid.

from esp-mqtt-json-multisensor.

Jizar07 avatar Jizar07 commented on August 31, 2024

I got a different issue , my sensor works backwards, if its dark the numbers goes up to about 600 lux, if is bright is goes down to 33 lux. , I got the 4 pin sensor and got signal pin on AO (analog output) instead of DO (digital output). already tried switch AO and DO, but got the same result. any help would be greatly appreciated.

from esp-mqtt-json-multisensor.

cooljimy84 avatar cooljimy84 commented on August 31, 2024

correct (well for me as well) so darkness for my sensor is 900 LUX and bright light is 20 odd.

from esp-mqtt-json-multisensor.

rdbahm avatar rdbahm commented on August 31, 2024

@Jizar07 At least with an LDR, this happens if your ground and 3v are swapped.

from esp-mqtt-json-multisensor.

mikewebb70 avatar mikewebb70 commented on August 31, 2024

Also, if you're using an LDR, lux is an arbitrary thing in that scale, you aren't getting true lux values.

Thanks. came here to ask about that as I found it just gave me a voltage reading between 0-1024 (as expected when using A0). So I wrote a template in HA that turned it into a % value.

from esp-mqtt-json-multisensor.

jonathanweinberg avatar jonathanweinberg commented on August 31, 2024

@mikewebb70 - you should share that template :)

from esp-mqtt-json-multisensor.

mikewebb70 avatar mikewebb70 commented on August 31, 2024

@mikewebb70 - you should share that template :)

You are right I should have, it's nothing special. Here is my light sensor Home Assistant yaml entry

- platform: mqtt
  name: "lux office"
  state_topic: "tele/labmcu/SENSOR"
  unit_of_measurement: "%"
  #value_template: "{{ value_json['ANALOG'].A0 }}"
  value_template: "{{ (value_json['ANALOG'].A0|float/1024*100|float)|round(0) }}"
  availability_topic: "tele/labmcu/LWT"
  payload_available: "Online"
  payload_not_available: "Offline"

from esp-mqtt-json-multisensor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.