{ "rtype": 1, // 0 = modbus, 1 = http/json "name": "energy mgmt io", // as displayed in the config dialog "manufacturer": "custom", "dev_type": "io", // will be prefixed by "meter_" "outputs": [ { "address": "/?out0=${if exists(output1) && output1`0`1}" }, { "address": "/?out1=${if exists(output2) && output2`0`1}" } ] }