Installation
Home Assistant OS (HAOS)
Step 1: Add Repository
Step 2: Install
Manual Add-on Installation (Alternative)
If the buttons above don’t work for you, follow these steps to add the repository and install the add-on manually within Home Assistant:
- Navigate to Add-ons: Go to
Settings
>Add-ons
in your Home Assistant UI. - Add Repository:
- Click the
Add-on Store
button (usually bottom right). - Click the three dots (⋮) menu in the top right corner and select
Repositories
. - Paste the following URL into the “Add repository” field:
https://github.com/ESPresense/hassio-addons
- Click
Add
. - Close the repository management dialog.
- Click the
- Install ESPresense Companion:
- Refresh the Add-on Store page (you might need to wait a moment or refresh your browser).
- Search for
ESPresense Companion
. - Click on the
ESPresense Companion
add-on. - Click
Install
. - Once installed, click
Start
. - Optionally, enable
Show in sidebar
for easy access.
DIY Docker Container
Example docker-compose configuration:
version: '3.7'
services:
espresense:
image: espresense/espresense-companion
ports:
- 8267:8267
volumes:
- ./data/espresense:/config/espresense
MQTT Setup
ESPresense and ESPresense Companion require MQTT to function. Here’s how to set it up:
Using Home Assistant’s MQTT Addon
- Install the Mosquitto broker addon from the official add-on store
- Start the addon
- ESPresense Companion will automatically use these settings
Using External MQTT Broker
- Install Mosquitto or your preferred MQTT broker
- Note your configuration:
- Host
- Port (default 1883)
- Username
- Password
- You’ll need these details for the configuration step
MQTT Discovery
- Enable MQTT Discovery (“auto-discovered”) in your MQTT configuration
- If disabled, you’ll need to manually configure MQTT settings in the Companion’s MQTT tab
Node Configuration
After installation, configure your ESPresense nodes by setting maximum distance to zero. To modify the maximum distance, send an MQTT message (in Home Assistant, Settings->MQtt->Configure, “Publish a packet”?) :
key: espresense/rooms/*/max_distance/set
value: 0
This ensures you get all distance readings without filtering.
Next Steps
Once installation is complete:
- Move on to Configuration to set up your floor plan
- Place your nodes according to the Node Placement Guide
- Start tracking your devices!
Troubleshooting Installation
Common Issues:
- Can’t see the add-on in Home Assistant:
- Refresh your browser
- Verify the repository was added successfully
- Check the add-on store logs
- MQTT Connection Failed:
- Verify MQTT broker is running
- Check credentials are correct
- Ensure MQTT port (1883) is not blocked
- Docker Container Won’t Start:
- Check port 8267 is not in use
- Verify volume mount permissions
- Review container logs