ESPresense, Meshtastic and MeshCore all use inexpensive radio hardware, but they solve different problems. ESPresense uses Bluetooth Low Energy to show which room a phone or beacon is in. Meshtastic and MeshCore use LoRa, a long-range radio, to send messages and sensor data without cell service or internet. Decide which problem you have first, then choose the project.
Compare the three projects
| Project | Radio | Main job | Home Assistant connection |
|---|---|---|---|
| ESPresense | Bluetooth LE | Room-level presence for phones, watches and beacons | MQTT, with mqtt_room sensors or the Companion add-on |
| Meshtastic | LoRa | Off-grid text messages, positions and telemetry | MQTT module, or a direct node integration |
| MeshCore | LoRa | Off-grid messaging through dedicated repeaters | Custom integration installed through HACS |
ESPresense: room presence from ESP32 nodes
ESPresense runs on ESP32 boards. Each node measures the signal strength of nearby Bluetooth Low Energy devices and publishes the readings over MQTT. Classic ESP32 boards have Bluetooth. ESP8266 boards don’t, so they won’t work. Some newer ESP32 variants are supported, so check the project’s documentation before you buy one.
Flash and connect. Flash the firmware from the project’s web installer, using Chrome or Edge over USB. Then use the node’s setup portal to join your 2.4 GHz Wi-Fi network and point the node at your MQTT broker. On Home Assistant OS, the Mosquitto broker add-on works for this.
Discovery. Nodes publish under the espresense/ topic tree, with per-device room topics such as espresense/devices/<device_id>/<room>. With MQTT auto-discovery, Home Assistant creates a device for each node, with entities such as uptime, free memory, and restart and update buttons.
Identify each tracked device
Each device you track needs a fingerprint. Apple devices are enrolled through their IRK, so ESPresense can recognise them even though their Bluetooth addresses change. For Android phones, the Home Assistant Companion app can act as a BLE transmitter (iBeacon).
To find a device’s fingerprint, connect a node by USB and watch its serial output at 115200 baud while you hold the device close to the node. A “Close” message lists devices within about half a metre.
Set up room sensors
For room sensors, add an mqtt_room sensor to configuration.yaml for each tracked device. The sensor reports the room the device is closest to. Use the device ID from the fingerprint. The example shows the layout. Check the ESPresense Home Assistant page for the current topic format, and match the topic to what your nodes publish.
sensor:
- platform: mqtt_room
name: "Phone room"
state_topic: "espresense/devices/apple:1007:11-12"
device_id: "apple:1007:11-12"
timeout: 30
away_timeout: 60
Tune timeout and away_timeout to suit how often each device is heard.
Floor plans with Companion
ESPresense Companion calculates X and Y positions from several nodes, and it can display devices on a floor plan. Trilateration needs readings from at least three nodes that can hear the device. The project’s own guidance suggests five to eight or more nodes per floor for usable coordinates. If one node per room meets your needs, mqtt_room is simpler.
Accuracy
Distance is estimated from signal strength, and walls, furniture and people all change that signal. Expect room-level accuracy, not sub-metre positions. Calibrate the RSSI at one metre for each device, then walk between rooms to test before you build automations on the results.
Meshtastic: LoRa text and telemetry
Meshtastic is an open-source LoRa mesh network. Nodes send short text messages and telemetry to each other over radio, without cell service or internet. Messages are small, around 200 bytes, so LoRa suits text and sensor data, not audio or images.
Pick hardware for your region. Meshtastic uses 902–928 MHz in the US, 863–870 MHz for EU 868, and 433 MHz in some regions. Buy boards that match your region’s band. Common boards include the Heltec V3, LilyGO T-Beam, RAK WisBlock and Seeed T1000-E.
Know the defaults. Channels are AES-encrypted. The default modem preset is LongFast. The default hop limit is 3, and the maximum is 7.
Connect to Home Assistant. You have two routes:
- MQTT. The node’s MQTT module publishes data to your broker, and Home Assistant reads it there. This route suits telemetry and positions on dashboards.
- A direct integration. An integration connects to a gateway node over Wi-Fi (TCP), Bluetooth LE or USB. Direct connections often allow only one client at a time, so plan for that before you add a second tool.
Protect your location data. With MQTT uplink enabled to a public broker or map, your node’s position and telemetry can leave your network. Keep your broker private unless you intend to share. Don’t copy broker credentials from a guide, because they belong to someone else’s service.
Radio rules. Ham (licensed) mode turns encryption off, so don’t use it for private data. Attach the antenna before you power on the radio, because transmitting without one can damage it.
MeshCore: repeaters and companion nodes
MeshCore is separate LoRa mesh firmware. Repeater nodes relay packets, and companion nodes connect to a computer or phone without relaying. A useful network therefore needs dedicated repeaters in the right places.
To connect a companion node, use USB, Bluetooth LE or TCP over Wi-Fi. USB and TCP are usually simpler. The meshcore-ha custom integration installs through HACS. It can send direct and channel messages from automations, and it reports on remote nodes. Check the integration’s page for its current Home Assistant version requirement and connection notes.
MeshCore and Meshtastic don’t interoperate, even on the same hardware. Choose one network for each area.
Which one should you use?
- Presence inside a home: ESPresense. It uses Bluetooth and MQTT, and it stays on your local network.
- Messages or sensor data from places without cell service or Wi-Fi: Meshtastic or MeshCore. Pick one network per area.
Range depends on terrain and line of sight. Headline figures of tens of kilometres assume a clear view between antennas. In towns and buildings, range is often much shorter. The EU 868 MHz band also has duty-cycle limits, often 1 percent on many sub-bands, which limit how often a node can transmit.
To keep presence history beyond what Home Assistant’s recorder stores, log the sensors in InfluxDB and Grafana.
Common mistakes
- Expecting GPS-like positions from ESPresense. It estimates room-level position from signal strength.
- Expecting LoRa to behave like Wi-Fi. It carries small text and data messages, not streams.
- Using an ESP8266 for ESPresense. It has no Bluetooth.
- Assuming Meshtastic and MeshCore can talk to each other. They can’t.