MQTT Room Presence
The mqtt_room
sensor platform allows you to detect the indoor location of devices using MQTT clients.
Configuration
To use this device tracker in your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
sensor:
- platform: mqtt_room
device_id: 123testid
Usage
Example JSON that should be published to the room topics:
{
"id": "123testid",
"name": "Test Device",
"distance": 5.678
}
Setting up clients
This integration works with any software that is sending data in the given format. Each client should post the discovered devices in its own subtopic of the configured topic. Instead of developing your own application, you can also use any of these already existing clients:
- room-assistant: looks for Bluetooth LE beacons, based on Node.js
- Happy Bubbles Presence Server: presence detection server for Happy Bubbles BLE-scanning devices, based on Go
- ESP32-MQTT-room: runs on an ESP32, and looks for Bluetooth LE devices, based on C++/Arduino