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: