HOME ASSISTANT
THE INTEGRATION HAS BEEN OFFICALY ADDED TOHome Assistant kaiterra sensors component
Home Assistant custom component for the Kaiterra's devices
Installation
Getting the Kaiterra's API key
First you need to get the device id and api key from kaiterra site.
- Register on https://dashboard.kaiterra.cn
- Add device to dashbord using "+" sign on the bottom and write down device uuid
- Open Profile/Developer, generate new key and write it down
Manual installation
- Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
- If you do not have a
custom_components
directory (folder) there, you need to create it. - In the custom_components directory (folder) create a new folder called
kaiterra
. - Download all the files from the
custom_components/kaiterra/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder)
custom_components/kaiterra/
you created. - Add the following to your configuration.yaml using your device id and api key from the Kaiterra's dashboard. You can adjust/remove optional parameters.
sensor:
- platform: kaiterra
api_key: xxxxx
devices:
- device_id: xxxxx
type: laseregg
- Restart home-assistant
HACS installation
- Ensure that HACS is installed.
- Search for and install the "Laser Egg" integration.
- Configure the
kaiterra
sensor.
sensor:
- platform: kaiterra
api_key: xxxxx
devices:
- device_id: xxxxx
type: laseregg
- Restart Home Assistant.
Configuration options
Sensor configuration
Key | Type | Required | Default | Description |
---|---|---|---|---|
api_key |
string |
True |
- |
The api key from Kaiterra's dashboard |
aqi_standard |
string |
True |
us |
The Air Quality Index standard, available options: ["cn", "in", "us"] |
scan_interval |
string |
False |
30 |
The api communication interval |
preferred_units |
- |
False |
[] |
The preferred units list, available values: ["x", "%", "C", "F", "mg/m³", "µg/m³", "ppm", "ppb"] |
devices |
- |
True |
- |
The devices configuration list |
Device configuration
Key | Type | Required | Default | Description |
---|---|---|---|---|
device_id |
string |
True |
- |
The device id from Kaiterra's dashboard |
type |
string |
True |
- |
The device id from Kaiterra's dashboard |
name |
string |
False |
- |
Name of the integration |
Contribution
PRs and help welcomed ;)