|
2 | 2 | layout: page
|
3 | 3 | title: Companion
|
4 | 4 | permalink: /companion
|
5 |
| -nav_order: 99 |
6 | 5 | ---
|
7 | 6 |
|
8 | 7 | # Companion
|
9 | 8 |
|
10 |
| -ESPresense Companion attempts to locate your Bluetooth Low Energy (BLE) items in the floorplan of your house. It also allows you to manage ESPresense nodes and settings. |
| 9 | + |
| 10 | + |
11 | 11 |
|
12 |
| -## How to Use |
| 12 | +The ESPresense-companion attempts to locate your Bluetooth Low Energy (BLE) items in the floorplan of your house. It also allows you to manage ESPresense nodes. |
13 | 13 |
|
14 |
| -ESPresense Companion provides a visual representation of your devices' locations within your house and helps troubleshoot ESPresense settings to improve automation trigger accuracy. |
| 14 | + |
15 | 15 |
|
16 |
| -The more accurate your house plan and the more base stations you include, the higher the location accuracy will be. |
| 16 | +## Quick Start |
| 17 | +1. [Install ESPresense Companion](/companion/installation) |
| 18 | +2. [Configure your floorplan](/companion/configuration) |
| 19 | +3. Place nodes at room corners plus one nearby (1-3m) |
| 20 | +4. Set node maximum distance to zero using: |
| 21 | + ```markdown |
| 22 | + key: espresense/rooms/*/max_distance/set |
| 23 | + value: 0 |
| 24 | + ``` |
| 25 | +5. Fine tune by hovering over devices and adjusting RSS@1m values |
17 | 26 |
|
18 |
| -### Find Your Home's GPS Coordinates |
19 |
| -You can easily find coordinates using Google Maps or Google Earth: |
20 |
| -- Google Maps: Search for your address and click on the street in front of your house to get latitude and longitude |
21 |
| -- Google Earth: Search for your address and hover your mouse over your house - coordinates and elevation will display in the bottom right |
22 |
| - |
23 |
| -### Draw Out Your House |
24 |
| -You'll need accurate interior dimensions for best results. There are several options: |
25 |
| -1. Create a free home plan using [MagicPlan](https://www.magicplan.app/) |
26 |
| -2. Use the [ESPresense Floorplan Creator](https://espresense.com/Floorplan-Creator/) to convert your measurements into YAML format |
27 |
| -3. Directly edit the YAML coordinates in the config file - the website will update in real-time thanks to hot reloading, allowing you to fine-tune your floorplan live |
28 |
| - |
29 |
| -After using any of these methods, you'll want to save your YAML configuration. If using the Floorplan Creator, click "Convert to YAML Code" and save the generated code. |
30 |
| - |
31 |
| -### Setup MQTT |
32 |
| -ESPresense and ESPresense Companion require MQTT to function. If you haven't set up MQTT yet: |
33 |
| -1. Install and configure [Mosquitto](https://mosquitto.org/) |
34 |
| -2. Note your MQTT host, port (default 1883), username, and password |
35 |
| -3. If using Home Assistant's MQTT addon, Companion will use those settings automatically |
36 |
| -4. Ensure MQTT Discovery is enabled ("auto-discovered") or you'll need to manually configure MQTT settings |
37 |
| - |
38 |
| -### Install ESPresense Companion |
39 |
| -1. Add this repository to your Home Assistant add-on store: `https://github.com/ESPresense/hassio-addons` |
40 |
| -2. Reload the add-on store |
41 |
| -3. Find and install ESPresense Companion |
42 |
| -4. Don't start the add-on yet - configure it first |
43 |
| - |
44 |
| -### Edit Config File |
45 |
| -Navigate to `/config/espresense/config.yaml` and configure: |
46 |
| - |
47 |
| -MQTT Connection: |
48 |
| -- For Home Assistant's MQTT addon: Only username and password needed |
49 |
| -- For external MQTT: Include host and port |
50 |
| -- Set SSL to false |
51 |
| - |
52 |
| -GPS Settings: |
53 |
| -- Enter latitude and longitude in decimal format |
54 |
| -- Enter elevation in meters |
55 |
| - |
56 |
| -Floor Configuration: |
57 |
| -- Set ID and name as desired |
58 |
| -- Bounds: First three numbers are left/bottom starting points, second three are top/right endpoints |
59 |
| -- These bounds center your diagram |
60 |
| - |
61 |
| -Rooms: |
62 |
| -- Paste the YAML from the floorplan creator |
63 |
| - |
64 |
| -Nodes: |
65 |
| -- List each base station's approximate location |
66 |
| -- Each node needs a unique name |
67 |
| -- Multiple nodes can be mapped to one room |
68 |
| - |
69 |
| -Devices: |
70 |
| -```yaml |
71 |
| -- id: darrels-watch |
72 |
| - name: "Darrell's Watch" |
73 |
| -``` |
74 |
| -
|
75 |
| -Use wildcards to include multiple devices: |
76 |
| -```yaml |
77 |
| -- id: "tile:*" # Track all tiles |
78 |
| -- id: "irk:*" # Track all IRKs |
79 |
| -- id: "apple:*" # Track all Apple devices |
80 |
| -- id: "ibeacon:*" # Track all iBeacon devices |
81 |
| -- name: "*" # Track all named devices |
82 |
| -``` |
83 |
| -
|
84 |
| -## Help write this documentation! Click the edit this page below. |
| 27 | +## Need Help? |
| 28 | +Check our [Troubleshooting Guide](/companion/troubleshooting) or contribute to this documentation by clicking "Edit this page" below. |
0 commit comments