This repository contains the pre-installed ESPHome config and example Arduino code projects for the Unity sensor board. Specifications of the board can be found at https://loopon.tech/products/unity-sensor
⚠️ Caution: Some electronic components are highly sensitive to Electrostatic Discharge and are damaged easily by this. Avoid direct contact with sensors, LED and the ESP.
The Unity board comes pre-installed with ESPHome. The configuration can be found here.
There are two ways to connect the Unity board to your WiFi network:
Power up the Unity board.
Go to https://www.improv-wifi.com/ on your phone or a computer with Bluetooth.
Click "Connect device to Wi-Fi".
Select the Unity device.
Input your SSID and password.
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 Unity 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 Unity board in
For best results, use the recommended settings in the screenshot below for the human presence sensor.
You can modify the way the device behaves by compiling and flashing the Unity board.
git clone https://github.com/LoopOnCode/UnitySensor
or download and extract the zip.esphome run ./UnitySensor/esphome/loopon_unity.yaml --no-logs
To flash the Unity board, it must be put in the correct boot mode. You can do this by:
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.
This project will blink LEDs on all GPIO ports.
This project will simulate a Bluetooth keyboard and will type a few sentences when connected to a computer or mobile device.
This project uses the LD2410 sensor to read the distance of a stationary or moving human.
This project cycles through colours of the rainbow using the onboard RGB LED.
This project prints the readings from the HDC1080 (temperature/humidity) and the BH1750 (light) sensors.
This project will scan and print WiFi access points.