Installation
Home Assistant OS (HAOS)
Section titled “Home Assistant OS (HAOS)”Step 1: Add Repository
Section titled “Step 1: Add Repository”Step 2: Install
Section titled “Step 2: Install”Manual Add-on Installation (Alternative)
Section titled “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-onsin your Home Assistant UI. - Add Repository:
- Click the
Add-on Storebutton (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 Companionadd-on. - Click
Install. - Once installed, click
Start. - Optionally, enable
Show in sidebarfor easy access.
DIY Docker Container
Section titled “DIY Docker Container”Example docker-compose configuration:
version: '3.7'services: espresense: image: espresense/espresense-companion ports: - 8267:8267 - 8268:8268 volumes: - ./data/espresense:/config/espresensePort 8268 is required for firmware updates.
MQTT Setup
Section titled “MQTT Setup”ESPresense and ESPresense Companion require MQTT to function. Here’s how to set it up:
Using Home Assistant’s MQTT Addon
Section titled “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
Section titled “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
Section titled “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
Section titled “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/setvalue: 0This ensures you get all distance readings without filtering.
Next Steps
Section titled “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
Section titled “Troubleshooting Installation”Common Issues:
Section titled “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