{
  "device_type": "pzem-003-017",
  "title": "pzem-003-017_template_title",
  "group": "power_meters",
  "device": {
    "name": "PZEM-003/017 DC Communication Module",
    "id": "pzem-003-017",
    "groups": [
      {
        "title": "Alarms",
        "id": "alarms"
      },
      {
        "title": "Communication",
        "id": "communication"
      },
      {
        "title": "Measurement Configuration",
        "id": "measurement_configuration"
      },
      {
        "title": "Power Meters",
        "id": "power_meters"
      }
    ],
    "channels": [
      {
        "id": "voltage",
        "name": "Voltage",
        "reg_type": "input",
        "address": "0x0000",
        "group": "power_meters",
        "units": "V",
        "scale": 0.01,
        "readonly": true
      },
      {
        "id": "current",
        "name": "Current",
        "reg_type": "input",
        "address": "0x0001",
        "group": "power_meters",
        "units": "A",
        "scale": 0.01,
        "readonly": true
      },
      {
        "id": "active_power",
        "name": "Active Power",
        "reg_type": "input",
        "address": "0x0002",
        "group": "power_meters",
        "format": "u32",
        "units": "W",
        "scale": 0.1,
        "readonly": true,
        "word_order": "little_endian"
      },
      {
        "id": "energy",
        "name": "Energy",
        "reg_type": "input",
        "address": "0x0004",
        "group": "power_meters",
        "format": "u32",
        "units": "kWh",
        "scale": 0.001,
        "readonly": true,
        "word_order": "little_endian"
      },
      {
        "id": "high_voltage_alarm_status",
        "name": "High Voltage Alarm Status",
        "reg_type": "input",
        "address": "0x0006",
        "group": "alarms",
        "readonly": true,
        "enum": [
          0,
          65535
        ],
        "enum_titles": [
          "No Alarm",
          "Alarm"
        ]
      },
      {
        "id": "low_voltage_alarm_status",
        "name": "Low Voltage Alarm Status",
        "reg_type": "input",
        "address": "0x0007",
        "group": "alarms",
        "readonly": true,
        "enum": [
          0,
          65535
        ],
        "enum_titles": [
          "No Alarm",
          "Alarm"
        ]
      }
    ],
    "parameters": {
      "high_voltage_alarm_threshold": {
        "title": "High Voltage Alarm Threshold",
        "address": "0x0000",
        "reg_type": "holding",
        "group": "alarms",
        "order": 0,
        "description": "High voltage alarm threshold. Factory default is 300 V.",
        "default": 300,
        "min": 5,
        "max": 350,
        "scale": 0.01
      },
      "low_voltage_alarm_threshold": {
        "title": "Low Voltage Alarm Threshold",
        "address": "0x0001",
        "reg_type": "holding",
        "group": "alarms",
        "order": 1,
        "description": "Low voltage alarm threshold. Factory default is 7 V.",
        "default": 7,
        "min": 1,
        "max": 350,
        "scale": 0.01
      },
      "modbus_address": {
        "title": "Modbus Address",
        "address": "0x0002",
        "reg_type": "holding",
        "group": "communication",
        "order": 2,
        "description": "Modbus-RTU slave address.",
        "min": 1,
        "max": 247
      },
      "current_range": {
        "title": "Current Range",
        "address": "0x0003",
        "reg_type": "holding",
        "group": "measurement_configuration",
        "order": 3,
        "description": "Current shunt range selection for PZEM-017.",
        "enum": [
          0,
          1,
          2,
          3
        ],
        "enum_titles": [
          "100 A",
          "50 A",
          "200 A",
          "300 A"
        ],
        "default": 0
      }
    },
    "translations": {
      "en": {
        "pzem-003-017_template_title": "PZEM-003/017 DC Communication Module"
      },
      "ru": {
        "pzem-003-017_template_title": "PZEM-003/017 DC Communication Module",
        "Alarms": "Аварии",
        "Communication": "Связь",
        "Measurement Configuration": "Настройка измерений",
        "Power Meters": "Измерения электроэнергии",
        "Voltage": "Напряжение",
        "Current": "Ток",
        "Active Power": "Активная мощность",
        "Energy": "Энергия",
        "High Voltage Alarm Status": "Состояние аварии высокого напряжения",
        "Low Voltage Alarm Status": "Состояние аварии низкого напряжения",
        "High Voltage Alarm Threshold": "Порог аварии высокого напряжения",
        "High voltage alarm threshold. Factory default is 300 V.": "Порог аварии высокого напряжения. Заводское значение — 300 В.",
        "Low Voltage Alarm Threshold": "Порог аварии низкого напряжения",
        "Low voltage alarm threshold. Factory default is 7 V.": "Порог аварии низкого напряжения. Заводское значение — 7 В.",
        "Modbus Address": "Адрес Modbus",
        "Modbus-RTU slave address.": "Адрес ведомого устройства Modbus-RTU.",
        "Current Range": "Диапазон тока",
        "Current shunt range selection for PZEM-017.": "Выбор диапазона внешнего шунта для PZEM-017.",
        "100 A": "100 А",
        "50 A": "50 А",
        "200 A": "200 А",
        "300 A": "300 А"
      }
    }
  }
}