{
  "id": "vn.agritrace.rain-ub-ra-n1",
  "version": "1.0.0",
  "vendor": "UbiBot",
  "category": "field-sensor",
  "description": "RS485 Modbus tipping-bucket rain gauge (UbiBot UB-RA-N1, 0.2 mm resolution). Its factory unit address is 211 (0xD3), so it can share a bus with probes left at address 1. Onboarded by register map only, no driver code. The register map is the vendor's (registerMapSource); the driver has not been tested on this hardware yet, and whether the rainfall register counts per reading or accumulates is not stated (registerMapSource.notes).",
  "driver": "modbus-register-map",
  "connectivity": ["modbus-rtu"],
  "produces": [
    {"capability": "rain.amount"}
  ],
  "events": ["observe"],
  "requires": [],
  "mobility": "fixed",
  "registerMapSource": {
    "vendor": "UbiBot",
    "model": "UB-RA-N1 rainfall sensor",
    "document": "https://www.ubibot.com/wp-content/uploads/dlm_uploads/2025/09/User%20Guide-UB-RA_V1.2.pdf",
    "retrieved": "2026-10-15",
    "verified": true,
    "testedOnHardware": false,
    "notes": "Register 0x0000 'Rain Fall', length 1, function 03, 'Unsigned integer data, divided by 10'; default address 0xD3, 4800 baud (User Guide UB-RA V1.2). The guide does not say whether the value is the rain since the last read or a running total, nor how it resets. rain.amount is the rain fallen during the reading's interval, so confirm this on the pilot hardware (#236) before its readings are used as evidence."
  },
  "defaults": {
    "pollIntervalSeconds": 600,
    "baudrate": 4800,
    "registers": [
      {"address": 0, "function": 3, "type": "u16", "unit": 211, "capability": "rain.amount", "scale": 0.1}
    ]
  }
}
