{ "rtype": 1, // 0 = modbus, 1 = http/json "name": "Shelly Plus 2PM Kanal2", // as displayed in the config dialog "manufacturer": "Shelly", "dev_type": "shelly_plus_2PM_k2", // will be prefixed by "meter_" "delay_accumulated": false, // true = Akkumulierte Werte (kWh) werden nur alle 3 Sekunden oder bei ausreichender Leistung abgefragt. // values used to build the model string "type_designation": { "address": "/shelly", "type": "string", "query": "id" }, "version": { "address": "/shelly", "type": "string", "query": "gen" }, "firmware_version": { "address": "/shelly", "type": "string", "query": "ver" }, "serial": { "address": "", "type": "string", "fixed": "0" }, "voltage_l1": { "address": "/rpc/Shelly.GetStatus", "type": "float", "query": "['switch:1'].voltage", "resolution": 1.0 }, "current_l1": { "address": "/rpc/Shelly.GetStatus", "type": "float", "query": "['switch:1'].current", "resolution": 1000 }, "power_w_l1": { "address": "/rpc/Shelly.GetStatus", "type": "float", "query": "['switch:1'].apower", "resolution": 1.0 }, "import_wh": { "address": "/rpc/Shelly.GetStatus", "type": "float", "query": "['switch:1'].aenergy.total", "resolution": 1.0 }, "output1": { "address": "/rpc/Shelly.GetStatus", "type": "float", "query": "['switch:0'].output", "once": true }, "output2": { "address": "/rpc/Shelly.GetStatus", "type": "float", "query": "['switch:1'].output", "once": true }, "outputs": [ { "address": "/relay/0?turn=${if exists(output1) && output1`on`off}" }, { "address": "/relay/0?turn=${if exists(output2) && output2`on`off}" } ], "inputs": [ { "address": "/rpc/Shelly.GetStatus", "query": "['input:0'].state", }, { "address": "/rpc/Shelly.GetStatus", "query": "['input:1'].state", } ] }