Native Apple HomeKit via an ESP8266 for the IKEA VINDRIKTNING PM2.5 Air Quality sensor
Go to file
Martin Kaše d7939feeff
Merge pull request #5 from tomzt/patch-2
Update esp8266-vindriktning-particle-sensor-homekit.ino
2023-01-19 10:12:11 +01:00
img Update 2021-10-27 22:47:41 +02:00
.gitignore Update 2021-10-27 22:27:01 +02:00
LICENSE Initial commit 2021-10-27 21:13:29 +02:00
README.md Update README.md 2021-10-29 08:23:07 +02:00
SerialCom.h Update 2021-10-27 22:04:34 +02:00
Types.h Update 2021-10-27 22:04:34 +02:00
esp8266-vindriktning-particle-sensor-homekit.ino Update esp8266-vindriktning-particle-sensor-homekit.ino 2023-01-19 15:57:53 +07:00
my_accessory.c Update 2021-10-27 22:47:41 +02:00

README.md

Apple HomeKit for IKEA VINDRIKTNING PM2.5 Air Quality sensor

pair_code

ESP8266 firmware, for IKEA VINDRIKTNING PM2.5 Air Quality sensor.

The modification doesn't interfere with the normal operation of the device in any way. The ESP8266 just adds another data sink beside the colored LEDs.

This Firmware is Frankenstein Monster between MQTT ESP8266 IKEA VINDRIKTNING Firmware from Hypfer and ESP8266 HomeKit implementation from Mixiaoxiao. It's my first project in C for ESP8266, so don't expect any warranties. But it works on my device. I am not liable for any damage to your devices. If you use this firmware, it's your own risk.

welcome_picture

Prerequisites

  • An ESP8266 with a 5v voltage regulator (e.g. a Wemos D1 Mini)
  • Some short cables
  • A soldering iron
  • A long PH0 Screwdriver

Fortunately, there is a lot of unused space in the enclosure, which is perfect for our ESP8266. Also, everything we need is accessible via easy to solder test points.

Hardware

To install the ESP8266, you need to unscrew the four visible screws in the back of the enclosure.

board

As you can see in this image, you'll need to solder wires to GND, 5V, and the Testpoint that is connected to TX of the Particle Sensor.

Then just connect these Wires to GND, VIN (5V), and D2 (if you're using a Wemos D1 Mini).

Done.

Software

The firmware can be built and flashed using the Arduino IDE.

For this, you will need to add ESP8266 support to it by using the Boards Manager.

Furthermore, you will also need to install the following libraries using the Library Manager:

  • ArduinoOTA 1.0.3
  • WiFiManager 0.15.0
  1. Go to this GitHub repo and download it as ZIP - https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266
  2. In Arduino IDE select "Sketch" -> "Include Library" and "Add .ZIP Library..." and select downloaded ZIP
  3. Download and open this repository in Arduino IDE
  4. Set the ESP8266 CPU to run at 160MHz
  5. Build, flash, and you're done.

Connect to HomeKit

  1. Plug your Air Quality sensor to power (ESP8266 is powered through VINDRIKTNING)
  2. Go to WiFi Settings on your iPhone/iPad and connect to "VINDRIKTNING" WiFi
  3. Page is opened automatically where you select your Home network and make a connection
  4. Go to your Home app and select "Add Accessory"
  5. Now Scan code on top of this webpage, alternatively select "More Options" and you should see your Air Quality Sensor there (Password is 111-11-111).

ToDo

Easier WiFi pairing process

Reset function for WiFi

OTA Updates

References and sources