This is the original work of @bfishadow and others mentioned at https://github.com/bfishadow/homebridge-laser-egg This fork updates the plugin for API changes made by kaiterra. Below is the updated isntructions
This is a Homebridge plugin to add HomeKit support to the first generation Laser Egg air quality monitors. Laser Egg is a sleek AQI monitor. However the 1st gen Laser Eggs don’t have HomeKit support, while the newer model does. This plugin will save some money if you don’t need more features but the HomeKit integration.
- Install this plugin by
npm install -g homebridge-laser-egg
or via homebridge UI - replace the index.js file from this fork, typically in
/var/lib/homebridge/node_modules/homebridge-laser-egg
on the Pi4 - Update the
config.json
file to add accessory. You can do this directly on homebridge web UI by clicking on settings on the plugin.
To get this plugin to work you will need your device's unique ID (UDID) and API key from the kaiterra website. You can get both by following the below:
- I am assuming you've already got the device working and added to the kaiterra/live air app.
- Go to the Kaiterra app and click on the gear icon.
- Under device and firmware version, you will find your UDID. Note this down.
- Now go to https://dashboard.kaiterra.com/login and login with your credentials
- Go to account settings, and generate an API key. Note this down
Here’s the sample config fileb
{
"accessories": [
{
"accessory": "laser-egg",
"name": "Laser Egg",
"laser_egg_id": "YOUR_UDID_HERE",
"laser_egg_key": "YOUR_API_KEY_HERE",
"polling": "5"
}
]
Here are the explanations for each data field. All fields are required.
accessory
The name of the HomeKit accessory. Use "laser-egg
" (all lowercase).name
The name for the accessory. It will show in the Home app. Don’t make it too long. Otherwise it will be hard to identify.laser_egg_id
This is your device's unique ID i.e. UDIDlaser_egg_key
This is the API access key you generated from the kaiterra website.polling
The interval in minutes of fetching data. Five is enough. Please don’t abuse the API.