Skip to content

Installation

Installing the ESPresense Companion is a combination of the Companion App itself and a MQTT server.

Companion deployment:

  • Recommended: As an App within Home Assistant OS
  • Optional: As a (composed) container elsewhere (experienced users)

MQTT setup:

  • Recommended: Home Assistant MQTT App
  • Alternative: External MQTT broker
Add ESPresense App repository to Home Assistant

Click Add in the dialog.

Open Home Assistant Supervisor App store

Click Install, Start, then Show in Sidebar.

If the buttons above don’t work for you, follow these steps to add the repository and install the app manually within Home Assistant:

  1. Navigate to Apps: Go to Settings > Apps in your Home Assistant UI.
  2. Add Repository:
    • Click the Apps 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.
  3. Install ESPresense Companion:
    • Refresh the Apps Store page (you might need to wait a moment or refresh your browser).
    • Search for ESPresense Companion.
    • Click on the ESPresense Companion app.
    • Click Install.
    • Once installed, click Start.
    • Optionally, enable Show in sidebar for easy access.

Example docker-compose configuration:

compose.yaml
services:
espresense:
image: espresense/espresense-companion
ports:
- 8267:8267
- 8268:8268
volumes:
- ./data/espresense:/config/espresense

Port 8268 is required for firmware updates.

ESPresense and ESPresense Companion require MQTT to function. Here’s two ways to set it up:

  1. Install the Mosquitto broker app from the official app store
  2. Start the app
  3. ESPresense Companion will automatically use these settings
  1. Install Mosquitto or your preferred MQTT broker
  2. Note your configuration:
    • Host
    • Port (default 1883)
    • Username
    • Password
  3. You’ll need these details for the configuration step
  • 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

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.

Once installation is complete:

  1. Move on to Configuration to set up your floor plan
  2. Place your nodes according to the Node Placement Guide
  3. Start tracking your devices!
  1. Can’t see the app in Home Assistant:

    • Refresh your browser
    • Verify the repository was added successfully
    • Check the app store logs
  2. MQTT Connection Failed:

    • Verify MQTT broker is running
    • Check credentials are correct
    • Ensure MQTT port (1883) is not blocked
  3. Docker Container Won’t Start:

    • Check port 8267 is not in use
    • Verify volume mount permissions
    • Review container logs