{ "rtype": 2, // 0 = modbus, 1 = http/json, 2 = mqtt "mtype": 1, "name": "mqtt meter and inputs", // as displayed in the config dialog "manufacturer": "custom", "dev_type": "custom_mqtt", // will be prefixed by "meter_" "type_designation": { "address": "", "type": "string", "fixed": "mqtt meter and io" }, "version": { "address": "", "type": "string", "fixed": "1.0" }, "firmware_version": { "address": "", "type": "string", "fixed": "1.0" }, "serial": { "address": "", "type": "string", "fixed": "0" }, // instantaneous values "voltage_l1": { "address": "pv/se/status", "query": "site_meter.voltage[0]", "type": "float", "resolution": 1.0 }, "voltage_l2": { "address": "pv/se/status", "query": "site_meter.voltage[1]", "type": "float", "resolution": 1.0 }, "voltage_l3": { "address": "pv/se/status", "query": "site_meter.voltage[2]", "type": "float", "resolution": 1.0 }, "current_l1": { "address": "pv/se/status", "query": "site_meter.current[0]", "type": "float", "resolution": 1000 }, "current_l2": { "address": "pv/se/status", "query": "site_meter.current[1]", "type": "float", "resolution": 1000 }, "current_l3": { "address": "pv/se/status", "query": "site_meter.current[2]", "type": "float", "resolution": 1000 }, "power_w": { "address": "pv/se/status", "query": "site_meter.power_w.total", "type": "float", "resolution": 1.0 }, "power_w_l1": { "address": "pv/se/status", "query": "site_meter.power_w.phase[0]", "type": "float", "resolution": 1.0 }, "power_w_l2": { "address": "pv/se/status", "query": "site_meter.power_w.phase[1]", "type": "float", "resolution": 1.0 }, "power_w_l3": { "address": "pv/se/status", "query": "site_meter.power_w.phase[2]", "type": "float", "resolution": 1.0 }, // accumulated values "import_wh": { "address": "pv/se/status", "query": "site_meter.energy_import", "type": "float", "resolution": 1.0 }, "export_wh": { "address": "pv/se/status", "query": "site_meter.energy_export", "type": "float", "resolution": 1.0 }, "inputs": [ { "address": "andino/state", "query": "input[0]" }, { "address": "andino/state", "query": "input[1]" }, { "address": "andino/state", "query": "input[2]" }, { "address": "andino/state", "query": "input[3]" }, { "address": "andino/state", "query": "input[4]" }, { "address": "andino/state", "query": "input[5]" } ] }