{
  "spec_version": 1,
  "slug": "truebner-smt100",
  "manufacturer": "TRUEBNER",
  "model": "SMT100 soil moisture and temperature sensor (RS485 Modbus variant)",
  "category": "Soil sensor",
  "supplier_url": "https://www.truebner.de/en/smt100.php",
  "default_configuration": {
    "protocol": "modbus_rtu",
    "unit_id": 1,
    "addressing": "zero_based",
    "byte_order": "BigEndian",
    "word_order": "HighFirst",
    "native_interface": "rs485",
    "serial": {
      "baud_rate": 9600,
      "parity": "Even",
      "data_bits": 8,
      "stop_bits": 1
    }
  },
  "coils": [],
  "discrete_inputs": [],
  "input_registers": [],
  "holding_registers": [
    {
      "address": 0,
      "count": 1,
      "name": "Soil temperature",
      "data_type": "UInt16",
      "units": "°C",
      "scale_factor": 0.01,
      "offset": -100,
      "access": "R",
      "description": "16-bit unsigned. The application note's equation is temperature [°C] = (raw / 100) - 100; its worked frame reads 0x31FD = 12797 = 27.97 °C. Stored here as scale 0.01 with offset -100."
    },
    {
      "address": 1,
      "count": 1,
      "name": "Soil moisture (volumetric water content)",
      "data_type": "UInt16",
      "units": "vol.%",
      "scale_factor": 0.01,
      "offset": 0,
      "access": "R",
      "description": "16-bit unsigned. Soil moisture [vol.%] = raw / 100; the worked frame reads 0x0D70 = 3440 = 34.40 vol.%."
    },
    {
      "address": 2,
      "count": 1,
      "name": "Permittivity (relative dielectric constant)",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 0.01,
      "offset": 0,
      "access": "R",
      "description": "16-bit unsigned. The worked frame reads 0x05F0 = 1520 = DK 15.20, so the raw value carries two decimals."
    },
    {
      "address": 3,
      "count": 1,
      "name": "Raw measurement counts",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "16-bit unsigned raw signal (the worked frame reads 0x4ECE = 20174 counts). Not calibrated and not used in normal operation; the vendor provides it for scientific work and special calibrations."
    },
    {
      "address": 4,
      "count": 1,
      "name": "Modbus slave address",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "Writing a new address here changes the sensor's slave address (the worked frame writes 2). The sensor also always answers to the fixed broadcast address 253, which cannot be changed; connect only one sensor to the bus when using it."
    }
  ],
  "combined_registers": [],
  "notes": "Source: TRUEBNER GmbH 'SMT100 Modbus Quickstart Guide', Application Note AN002 (07/2021), vendor-hosted PDF at https://www.truebner.de/assets/download/AN002.pdf (SHA-256 7a6406cef72fffe9b6b756e0be8b7a5ef5e5a57dfd8e0d173dbc3f3f19172dc5), section 'Modbus configuration' plus the five worked request/response frames. The SMT100 product manual (Manual_SMT100_V1.0) adds that the baud rate is fixed at 9600 and that the sensor is ordered either with the ASCII/T-Bus interface or with Modbus. Factory serial settings from AN002: 9600 baud, 8 data bits, even parity, 1 stop bit; slave address configurable 1...247 with a fixed broadcast address of 253 - no factory slave address is printed in either document, so the seed stores 1 as a verify-on-site placeholder - every worked frame in the application note uses address 1. Addressing: the note prints the register numbers and the frame's start address as 0x0000 for temperature, 0x0001 for soil moisture, 0x0002 for permittivity, 0x0003 for the counts and 0x0004 for the address register, so the seed is zero_based. All values are single 16-bit registers; the conversion equations are applied through scale_factor and offset. The recommended minimum timeout between a read request and its answer is 500 ms because the read starts a measurement. Only the four measurement registers and the address register are documented; the product manual's ASCII/T-Bus command set does not apply in Modbus mode."
}
