This repository contains the pre-installed ESPHome config for the AirSense board. Specifications of the board can be found at https://loopon.tech/products/airsense
- Getting Started
- Home Assistant
- Modifying ESPHome Config
- Flashing the AirSense Board
- Arduino Example Projects
The AirSense board comes pre-installed with ESPHome. The configuration can be found here.
There are two ways to connect the AirSense board to your WiFi network:
- Power up the AirSense board.
- Go to https://www.improv-wifi.com/ on your phone or a computer with Bluetooth.
- Click "Connect device to Wi-Fi".
- Select the AirSense device.
- Input your SSID and password.
- Click Save.
- Power up the AirSense board.
- On your phone or computer, search for the AirSense WiFi network.
- Once connected, your phone will be redirected to the WiFi setup page. If you are not redirected, open a browser and go to http://192.168.4.1
- Select your WiFi network SSID from the list and input the password if needed.
- Click Save.
Once you have successfully connected to your WiFi network, you can integrate the device to Home Assistant. You must have the ESPHome Add-on installed. If you do not have the Add-on then follow the 'Installing ESPHome Dashboard' guide here.
Home Assistant and the ESPHome Add-on will automatically detect the AirSense device.
You can find the device in:
Note: If the device does not show up then please try restarting Home Assistant.
You can now view the AirSense board in
Use the Import Blueprint at the top of this page to define your own behaviour. The blueprint allows you to set the IAQ classifiers to trigger at. See the example below:
If you have imported the Home Assistant Blueprint or created your own rules, then you may want to turn off the following switches to disable the default behaviour of the RGB LED and the buzzer:
The Ring Tone Text Transfer Language service will automatically be available in your Home Assistant with AirSense. You can invoke this service to play custom beeps and melodies. Click here for examples.
You can modify the way the device behaves by compiling and flashing the AirSense board.
- Go to the ESPHome dashboard in Home Assistant.
- Select the device you would like to modify and click "Edit".
- Make your changes in the yaml and click "Install".
- Select "Wirelessly" from the pop-up.
- ESPHome will now compile the latest yaml and install it on the device. This will take a few minutes.
- Make sure ESPHome is installed on your computer (guide).
- Clone this repo:
git clone https://github.com/LoopOnCode/AirSense
or download and extract the zip. - Make your changes to loopon_airsense.yaml.
- Put the device into flash mode. See here.
- Compile and flash:
esphome run ./AirSense/esphome/loopon_airsense.yaml --no-logs
- Reset the device.
- (Optional) Monitor the logs:
esphome logs ./AirSense/esphome/loopon_airsense.yaml
To flash the AirSense board, it must be put in the correct boot mode. You can do this by:
- Connecting the device to a computer using a USB-C cable.
- Holding down the boot button.
- Momentarily pressing the reset button.
- Then, releasing the boot button.
Once flashing has completed, press the reset button to restart in normal mode.
PlatformIO is a cross-platform IDE extension for Visual Studio Code. Use PlatformIO to open, build and upload the example projects to the Unity board. The installation guide can be found here.
1. Demo
This demo project showcases:
- how to gather data from the environment sensor
- how to set the colour on the RGB LED
- how to read the button state
- how to produce a tone with the buzzer