IKEA Vindriktning Air Quality Sensor

Yes, I know. I think the sensor is fine and works in a meaningful way when you look at the LED colors. They correlate pretty well to low/intermediate/high particle levels. However I just thought that those ug/m3 values were too inaccurate. I wouldn’t use a temperature sensor either if it said it was 120 degrees Celsius indoor when an appropriate sensor says it is 25 degrees. Re building the sensor was fun though.

I’m not sure what you’re trying to say here, but I use the bme680_bsec library in ESPHome. This library features a Temp offset option, which I have set tot 1. Since this setup is not meant to be enormous scientific, I’m fine if it’s not all that accurate. besides, as soon as you have more than one tempsensor in your house, your never gonna be sure which one is correct and which one is off anyway :wink:

1 Like

Hello @ledhed ,

I think the cards look neat. Question, is it possible to do something similar, without the custom cards? I am looking for something basic, like definying a template sensor in esphome which output is showing a red, yellow or green status icon in a lovelace card, based on the same calculations of the PM2.5 value. Basically emulating the three colors in HA just like as currently is on the device (without actually doing @fabiosoft 's complete PCB mod).

do you mean without touch or open the device and its original pcb?

I have already added a Wemos D1 with esphome, and I can get the PM2.5 readings. I just didn’t wire the LED pcb panel to the D1. Basically I only did the “basic” mod, not the “pro” one :).

The aim is to check the readings of the sensor from HA (which is working) and to just define a text sensor that converts these values and displays good/green, yellow/so-so, red/bad.

ok! so you made the most of the part… i think you can easily using some custom card.

I found a couple of examples:

easy gauge card:

or more customizable mod…

That looks good, and it is already part of HA. I’ll check it out, thank you!

Yesterday I was configuring the MQ-9 sensor using a candle. The sensor is enclosed with the Ikea pm25 senor during the test. It jumped to the max of 1,000. A few hours later it jumped down to about 400. A few more hours it jumped to 0 and now at 6. The sensor has never went to 0 since purchase. It always floats around 60 - 200. Hope I didn’t ruined it.

let it “cool down” end see what happens…

PS: is this grafana?

PS: is this grafana?

No. Some theme I have found and the graph is stock from HA I believe.

It has been about 12 hours. Will see in a few days more.

Sorry for the late reply, no idea but maybe it’s because of the calibration??? I haven’t done it :(((((

Really interested to replace my child’s Arduino (pir+temp+luminance) by this with pm2.5+pir+dht22+luminance (not enough € to add co/co2)

Added a DHT22 (temporarily) and an IR emitter to mine to controle the AC sitting right on top of it.

Had to cut a bit off the top and added a translucent dome to make sure the signal passes through.

image|375x500

seems cool, please provide more pictures :slight_smile:

PS: please upload in the community forum, the external link catch some browser security errors…

Well time for some show and tell - inspired by many posts on here I was going back and forth between modifying the Ikea sensor for simple data in HA to building my own sensor systems using better quality sensors.

I went ahead and purchased a few sensors just in case like the PMS5003 and a DFRobot SEN0335 which is a combination sensor board that has both CCS811+BME280 in a nice little package.

Ultimately last week I went to Ikea for other items and decided to get a Vindrikning while there - at first just plugging it in and leaving it in my den to watch it go back and forth between green , yellow and sometimes red - however with the knowledge in this thread I knew accuracy was something to be desired.

Long story short I decided to follow @fabiosoft guide with complete control over my Ikea sensor while adding the DFRobot board as well. While struggling with the placement of items and getting creative with wiring - ultimately it failed because I didn’t understand how to have the ESP-12F boot up while using all the inputs I required plus I used CAT6 wire which was a pain to work with.

Ultimately I decided that I would just use the casing and assemble the box with my new sensors that would ultimately give me a better end result for Data, while preserving the decently nice aesthetics of the Vindrikning box.

So I got to work fitting the following to the box:

  • PMS5003
  • DFRobot CCS811+BME280 combo
  • WS2812b Strip
  • NodeMCU

Using better wire and some preplanning - this ultimately ended up being FAR easier to build (took half the time) and will provide me with more accurate data.

As always thanks again to all that have contributed in here for the ideas and curiosity to push to build gadgets like this!

Currently the ESPHome code is very basic - I will need to add more to make the sensors useful and apparently the VOC sensor needs to have a baseline set after a “48 hr burn in period”

uart:
  id: uart_1
  tx_pin: D6
  rx_pin: D7
  baud_rate: 9600

i2c:
  sda: D2
  scl: D1
  scan: True

sensor:
  - platform: pmsx003
    type: PMSX003
    pm_1_0:
      name: "Bedroom AQ PM <1.0µm Concentration"
    pm_2_5:
      name: "Bedroom AQ PM <2.5µm Concentration"
    pm_10_0:
      name: "Bedroom AQ PM <10.0µm Concentration"
    uart_id: uart_1
    
  - platform: bme280
    temperature:
      name: "Bedroom AQ Temperature"
      oversampling: 16x
    pressure:
      name: "Bedroom AQ Pressure"
    humidity:
      name: "Bedroom AQ Humidity"
    address: 0x76
    update_interval: 60s
  
  - platform: ccs811
    eco2:
      name: "Bedroom AQ eCO2 Value"
    tvoc:
      name: "Bedroom AQ Total Volatile Organic Compound"
    address: 0x5A
    update_interval: 60s
    
light:
  - platform: neopixelbus
    type: GRB
    variant: WS2812
    pin: D4
    num_leds: 3
    name: "Bedroom AQ Light"

Also the temp sensor is about 6 deg. C higher than actual room temp - not sure if I should be adjusting to reflect room temp or leave it for the best compensated readings for the other chip however.

Either way, on to the pictures!





8 Likes

Wondering if someone can help me. I run a container for both ESPHome and HA on my QNAP. I wanted to try this, and bought an ESP32 from Amazon. In ESPHome, I originally used the wrong board type (realized I bought a “NodeMCU”). After updating the board type and installed OTA, my HomeAssistant just shows “Unknown” on the status of the sensor. I soldered the D2 pin to the REST on the IKEA board.

# Ikea Vindriktning PM2.5 sensor
uart:
  rx_pin: D2
  baud_rate: 9600

sensor:
  - platform: pm1006
    pm_2_5:
      name: "Ikea Vindriktning PM25"

I notice in the logs that it says the update interval is never. But when I try to add an interval, ESPHome says it requires a TX pin. I thought I only needed the three wires?

There is an explanation for that in the Esphome docs. PM1006 Particulate Matter Sensor — ESPHome

1 Like

Thanks. I read that, so I figured no interval set was okay, but I’m still unsure as to why I am not getting any reading at all. Should I be using a different pin? Also, is it okay that I changed the model type of my board directly in the YAML instead of creating a new one?

The output of my ESP8266 is as follows:

[08:05:51][C][logger:233]: Logger:
[08:05:51][C][logger:234]:   Level: DEBUG
[08:05:51][C][logger:235]:   Log Baud Rate: 115200
[08:05:51][C][logger:236]:   Hardware UART: UART0
[08:05:51][C][uart.arduino_esp8266:095]: UART Bus:
[08:05:51][C][uart.arduino_esp8266:097]:   RX Pin: GPIO4
[08:05:51][C][uart.arduino_esp8266:099]:   RX Buffer Size: 256
[08:05:51][C][uart.arduino_esp8266:101]:   Baud Rate: 9600 baud
[08:05:51][C][uart.arduino_esp8266:102]:   Data Bits: 8
[08:05:51][C][uart.arduino_esp8266:103]:   Parity: NONE
[08:05:51][C][uart.arduino_esp8266:104]:   Stop bits: 1
[08:05:51][C][uart.arduino_esp8266:108]:   Using software serial
[08:05:51][C][pm1006:017]: PM1006:
[08:05:51][C][pm1006:018]:   PM2.5 'Ikea Vindriktning PM25'
[08:05:51][C][pm1006:018]:     Device Class: 'pm25'
[08:05:51][C][pm1006:018]:     State Class: 'measurement'
[08:05:51][C][pm1006:018]:     Unit of Measurement: 'µg/m³'
[08:05:51][C][pm1006:018]:     Accuracy Decimals: 0
[08:05:51][C][pm1006:018]:     Icon: 'mdi:blur'
[08:05:51][C][pm1006:019]:   Update Interval: never
[08:05:51][C][captive_portal:151]: Captive Portal:
[08:05:51][C][ota:082]: Over-The-Air Updates:
[08:05:51][C][ota:083]:   Address: airquality1.local:8266
[08:05:51][C][ota:086]:   Using Password.
[08:05:51][C][api:134]: API Server:
[08:05:51][C][api:135]:   Address: airquality1.local:6053
[08:05:51][C][api:139]:   Using noise encryption: NO
[08:05:51][C][mdns:084]: mDNS:
[08:05:51][C][mdns:085]:   Hostname: airquality1

The pin (D2) works fine on an ESP8266. The log output looks fine thus far.

What you should now see are entries like this about every 2 seconds:

[20:47:07][D][pm1006:091]: Got PM2.5 Concentration: 25 µg/m³
[20:47:09][D][pm1006:091]: Got PM2.5 Concentration: 25 µg/m³

Maybe it’s time to double-check the wiring, i.e. make sure that D2 is actually connected to REST and the cable is not accidentally touching the surrounding pads?

Wow, rookie mistake. I opened it back up and realized I had attached it to D1 instead of D2 on my 8266. Thanks for the advice!!

1 Like