Sensorlogger

  1. Overview
  2. Installation & Startup
  3. Configuration & complete example

MQTT settings

The general mqtt section is used to configure the connection parameters to the MQTT broker.

"mqtt": {
    "host": "localhost",
    "port": 1883,
    "qos": 1,
    "retained": false,
    "connected_topic": "Sensorlogger/status",
    "connected_message": "online",
    "lwt_topic": "Sensorlogger/status",
    "lwt_message": "offline"
}

MQTT sensors

"sensors": [
    ...
    {
        "sensor_id": "Shelly/AnalogTemp",
        "mqtt_subscribe": "shelly/tele/SENSOR",
        "json_key": ["ANALOG", "Temperature"],
        "factor": 1,
        "offset": 0,
        "counter": false,
        "mqtt_publish": "House/Living_Room/Temperature/current",
        "homematic_publish": "12345",
        "rest_period": {"value": 2, "unit": "s"}
    },
    {
        "sensor_id": "Weather/Rainrocker",
        "mqtt_subscribe": "House/Weather/Rainrocker",
        "json_key": null,
        "factor": 0.5,
        "offset": 0,
        "counter": true,
        "rest_period": {"value": 100, "unit": "ms"}
    },
    ...
]

HomeMatic>>