jcallaghan / home-assistant-config

My Home Assistant configuration & documentation.
https://www.jcallaghan.com/
MIT License
174 stars 8 forks source link

Weather station - Ultraviolet light sensor ☀⛱ #43

Open jcallaghan opened 4 years ago

jcallaghan commented 4 years ago

Ultraviolet light sensor

Originally posted by @jcallaghan in https://github.com/jcallaghan/home-assistant-config/issues/13#issuecomment-624076582

jcallaghan commented 4 years ago

Wiring with ESP32. image

jcallaghan commented 4 years ago

Using a filter to convert the ADC voltage to the UV Index based on information from Adafruit page.

    filters:
      - lambda: return (x/0.1);
jcallaghan commented 4 years ago

Ever slightly impressed with this. I don't have a UV lamp to calibrate this but found the University in Manchester has a weather station and provides information to Defra.

They are reporting 2.7 UV Index while I am reporting 2.36 UV Index. This makes me feel great! 😎

UV Index sources

  1. Manchester University weather station
  2. The Whitworth Meteorological Observatory - Current Data
  3. The Weather Network
  4. Weather Online
  5. Met Office

image

image

jcallaghan commented 4 years ago

Data flowed straight into Grafana without any input from me. I moved the sensor and discovered I had knocked one of the pins so the sensor was not reading properly between the two annotation markers on the chart.

The 17:00 corresponds to the data from the Manchester University sensor.

image

jcallaghan commented 4 years ago

Something like this in Lovelace would be pretty cool.

https://genicom.en.ecplaza.net/products/outdoor-uv-index-meter-ag03_3042800 image

https://rurulalatec.com/smart%20lab/fuv001/UV-6.png image

jcallaghan commented 4 years ago

While I have been testing the pins have come loose a few times and skewed my data 🙁 but never mind as it will be fitted to a PCB board soon.

Hypfer commented 3 years ago

Since these sensors are incredibly cheap, what about spraying some conformal coating on the breakout board and see what happens?

Maybe that's enough to weatherproof it for a few years