diff --git a/tip-sinus85/CHANGELOG.md b/tip-sinus85/CHANGELOG.md new file mode 100644 index 00000000..393db04c --- /dev/null +++ b/tip-sinus85/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## 1.0.0 - 2026-02-18 + +- First version of plugin \ No newline at end of file diff --git a/tip-sinus85/LICENSE.md b/tip-sinus85/LICENSE.md new file mode 100644 index 00000000..bffeef34 --- /dev/null +++ b/tip-sinus85/LICENSE.md @@ -0,0 +1,7 @@ +Copyright 2026 Thinger.io + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/tip-sinus85/README.md b/tip-sinus85/README.md new file mode 100644 index 00000000..a03dbf55 --- /dev/null +++ b/tip-sinus85/README.md @@ -0,0 +1,56 @@ +# Sinus 85 - Three-Phase Meter + +The Sinus 85 is a direct measuring digital three-phase meter designed for DIN rail mounting. This fully electronic energy meter is built for three-phase four-wire alternating current systems, providing accurate measurement and monitoring of electrical energy consumption in commercial and industrial applications. + +## Features + +- Direct connection capability up to 85 A +- Three-phase four-wire alternating current measurement +- DIN rail mounting for easy installation +- Multi-part plastic housing +- MID (Measuring Instruments Directive) compliant +- LoRaWAN connectivity for remote data transmission +- Supports EU863-870 frequency plan + +## Use Cases + +- Energy consumption monitoring in commercial buildings +- Industrial facility power management +- Sub-metering applications +- Remote energy monitoring systems +- Building automation and energy management systems + +## Thinger.io Integration + +The Sinus 85 integrates with Thinger.io through LoRaWAN connectivity, enabling remote monitoring and management of energy consumption data. + +## Requirements + +A LoRaWAN server is required to communicate the Sinus 85 into Thinger.io, some options are: + +- [The Things Stack](https://www.thethingsindustries.com/stack/) +- [LORIOT](https://loriot.io/) +- [ChirpStack](https://www.chirpstack.io/) + +Alongside, the corresponding plugin for the selected LoRaWAN server needs to be installed in your Thinger.io instance. + +## Get Started + +### Installation + +Look for the plugin in the [Thinger.io Plugin Store](https://marketplace.thinger.io/) and install it in your Thinger.io instance. Once the plugin is installed a new Product will be created for this device. + +### Configuration + +The Product is already preconfigured, check that the auto provision prefix matches the one selected in your LoRaWAN server plugin in Thinger.io, or change it to your desire. + +### Usage + +Start sending uplinks for autoprovisioning devices and buckets. +This product also provides a predefined dashboard and downlinks. + +## Additional Resources + +- [Device Repository for LoRaWAN](https://www.thethingsnetwork.org/device-repository/devices/tip/sinus85/) +- [Manufacturer Information](https://mueller-ziegler.de/) +- [Thinger docs](https://docs.thinger.io) \ No newline at end of file diff --git a/tip-sinus85/assets/sinus85.png b/tip-sinus85/assets/sinus85.png new file mode 100644 index 00000000..a99dc049 Binary files /dev/null and b/tip-sinus85/assets/sinus85.png differ diff --git a/tip-sinus85/plugin.json b/tip-sinus85/plugin.json new file mode 100644 index 00000000..b2268ad3 --- /dev/null +++ b/tip-sinus85/plugin.json @@ -0,0 +1,1059 @@ +{ + "name": "tip_sinus85", + "version": "1.0.0", + "description": "Direct measuring digital three-phase meter for DIN rail mounting", + "author": "Thinger.io", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/thinger-io/plugins.git", + "directory": "tip-sinus85" + }, + "metadata": { + "name": "Tip SINUS85", + "description": "Direct measuring digital three-phase meter for DIN rail mounting", + "image": "assets/sinus85.png", + "category": "devices", + "vendor": "tip" + }, + "resources": { + "products": [ + { + "description": "Direct measuring digital three-phase meter for DIN rail mounting", + "enabled": true, + "name": "Tip SINUS85", + "product": "tip_sinus85", + "profile": { + "api": { + "downlink": { + "enabled": true, + "handle_connectivity": false, + "request": { + "data": { + "path": "/downlink", + "payload": "{\n \"data\" : \"{{payload.data=\"\"}}\",\n \"port\" : {{payload.port=85}},\n \"priority\": {{payload.priority=3}},\n \"confirmed\" : {{payload.confirmed=false}},\n \"uplink\" : {{property.uplink}} \n}", + "payload_function": "", + "payload_type": "", + "plugin": "{{property.uplink.source}}", + "target": "plugin_endpoint" + } + }, + "response": { + "data": { + "source": "request_response" + } + } + }, + "uplink": { + "device_id_resolver": "getId", + "enabled": true, + "handle_connectivity": true, + "request": { + "data": { + "payload": "{{payload}}", + "payload_function": "", + "payload_type": "source_payload", + "resource_stream": "uplink", + "target": "resource_stream" + } + }, + "response": { + "data": { + "source": "request_response" + } + } + } + }, + "autoprovisions": { + "device_autoprovisioning": { + "config": { + "mode": "pattern", + "pattern": "sinus85-.*" + }, + "enabled": true + } + }, + "buckets": { + "tip_sinus85_data": { + "backend": "influxdb", + "data": { + "payload": "{{payload}}", + "payload_function": "decodeThingerUplink", + "payload_type": "source_payload", + "resource": "uplink", + "source": "resource", + "update": "events" + }, + "enabled": true, + "retention": { + "period": 12, + "unit": "months" + }, + "tags": [ + "energy", + "three_phase" + ] + } + }, + "code": { + "code": "function decodeThingerUplink(thingerData) {\n // 0. If data has already been decoded, we will return it\n if (thingerData.decodedPayload) return thingerData.decodedPayload;\n \n // 1. Extract and Validate Input\n // We need 'payload' (hex string) and 'fPort' (integer)\n const hexPayload = thingerData.payload || \"\";\n const port = thingerData.fPort || 1;\n\n // 2. Convert Hex String to Byte Array\n const bytes = [];\n for (let i = 0; i < hexPayload.length; i += 2) {\n bytes.push(parseInt(hexPayload.substr(i, 2), 16));\n }\n\n // 3. Dynamic Function Detection and Execution\n \n // CASE A: (The Things Stack v3)\n if (typeof decodeUplink === 'function') {\n try {\n const input = {\n bytes: bytes,\n fPort: port\n };\n var result = decodeUplink(input);\n \n if (result.data) return result.data;\n\n return result; \n } catch (e) {\n console.error(\"Error inside decodeUplink:\", e);\n throw e;\n }\n }\n\n // CASE B: Legacy TTN (v2)\n else if (typeof Decoder === 'function') {\n try {\n return Decoder(bytes, port);\n } catch (e) {\n console.error(\"Error inside Decoder:\", e);\n throw e;\n }\n }\n\n // CASE C: No decoder found\n else {\n throw new Error(\"No compatible TTN decoder function (decodeUplink or Decoder) found in scope.\");\n }\n}\n\n\n// TTN decoder\nconst reg2obisMapping = {\n \"1\": \"1.8.1\",\n \"2\": \"2.8.1\",\n \"3\": \"3.8.1\",\n \"4\": \"4.8.1\",\n \"5\": \"1.8.2\",\n \"6\": \"2.8.2\",\n \"7\": \"3.8.2\",\n \"8\": \"4.8.2\",\n \"9\": \"1.7.0\",\n \"10\": \"3.7.0\",\n \"11\": \"9.7.0\",\n \"12\": \"14.7.0\",\n \"13\": \"13.7.0\",\n \"14\": \"T1 Wirk Energie Zähler Import\",\n \"15\": \"21.7.0\",\n \"16\": \"23.7.0\",\n \"17\": \"29.7.0\",\n \"18\": \"32.7.0\",\n \"19\": \"31.7.0\",\n \"20\": \"33.7.0\",\n \"21\": \"T1 Wirk Energie Zähler Export\",\n \"22\": \"T1 Blind Energie Zähler Import\",\n \"23\": \"41.7.0\",\n \"24\": \"43.7.0\",\n \"25\": \"49.7.0\",\n \"26\": \"52.7.0\",\n \"27\": \"51.7.0\",\n \"28\": \"53.7.0\",\n \"29\": \"T1 Blind Energie Zähler Export\",\n \"30\": \"T2 Wirk Energie Zähler Import\",\n \"31\": \"61.7.0\",\n \"32\": \"63.7.0\",\n \"33\": \"69.7.0\",\n \"34\": \"72.7.0\",\n \"35\": \"71.7.0\",\n \"36\": \"73.7.0\",\n \"37\": \"T2 Wirk Energie Zähler Export\",\n \"38\": \"T2 Blind Energie Zähler Import\",\n \"39\": \"T2 Blind Energie Zähler Export\",\n};\n\nconst reg2obis = (reg_hex) => reg2obisMapping[reg_hex.toString()] || reg_hex.toString();\n\nfunction parseHeaders(bytes) {\n const result = {};\n const hex_string = bytes.map(byte => byte.toString(16).padStart(2, '0')).join('');\n\n // Determine Frame Control\n result.Fctrl = hex_string.substring(0, 2);\n\n // Determine Number of Registers\n result.Number_Registers = parseInt(hex_string.substring(2, 4), 16) - 2;\n\n // Determine Control Array Input\n const expectedLength = 2 + 2 + 2 * result.Number_Registers + 8 + 6;\n if (hex_string.length >= expectedLength) {\n result.Control_Array = hex_string.substring(4, 4 + 2 * result.Number_Registers);\n } else {\n return {};\n }\n\n return result;\n}\n\nfunction padLeadingZeros(num, size) {\nvar s = num + \"\";\nwhile (s.length < size) s = \"0\" + s;\nreturn s;\n}\n\nfunction get_registers(bytes, header) {\n var hex_string = bytes.map(byte => byte.toString(16).padStart(2, '0')).join('').toUpperCase();\n\n var current_frame_ptr = 12;\n\n //modular size\n current_frame_ptr = 4 + 2 * parseInt(header.Number_Registers, 16); //fctl 2 + register 2 + Control_Array\n\n //Check for sufficient data\n if (hex_string.length >= 10 + 2 * (parseInt(header.Number_Registers, 16) - 1)) {\n serial_nr = hex_string.substring(current_frame_ptr, current_frame_ptr + 8);\n current_frame_ptr += 8;\n\n current_frame_ptr += 6;\n } else {\n return {};\n }\n\n var range = parseInt(header.Number_Registers, 16);\n var measures = {};\n var _ctl, _endpointstr, _value, _reg;\n\n for (let i = 1; i <= range; i++) {\n _ctl = \"\";\n _endpointstr = \"\";\n\n _endpointstr = reg2obis(parseInt(header.Control_Array.substring((i - 1) * 2, i * 2), 16).toString(10));\n\n _value = hex_string.substring(current_frame_ptr, current_frame_ptr + 8);\n _reg = parseInt(_value, 16).toString(10);\n\n measures[_endpointstr] = _reg;\n current_frame_ptr += 8;\n }\n\n return measures;\n}\n\n\nfunction decodeUplink(input) {\n//Read Codec Header from Message\nvar header = parseHeaders(input.bytes);\n\nif (Object.keys(header).length === 0 && header.constructor === Object) {\n return {\n errors: [\n \"IIoT Box Decoder: Header decoder returned empty header, stop decoding message\",\n ],\n };\n}\n\nreturn {\n data: get_registers(input.bytes, header),\n};\n}", + "environment": "javascript", + "storage": "", + "version": "1.0" + }, + "properties": { + "uplink": { + "data": { + "payload": "{{payload}}", + "payload_function": "", + "payload_type": "source_payload", + "resource": "uplink", + "source": "resource", + "update": "events" + }, + "default": { + "source": "value" + }, + "enabled": true + } + } + }, + "_resources": { + "properties": [ + { + "property": "dashboard", + "value": { + "tabs": [ + { + "name": "Energy Overview", + "widgets": [ + { + "layout": { + "col": 0, + "row": 0, + "sizeX": 2, + "sizeY": 6 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "Total Active Energy Import (1.8.0)" + }, + "properties": { + "color": "#1abc9c", + "unit": "Wh" + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "1.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#1abc9c", + "name": "Active Power", + "source": "bucket", + "timespan": { + "mode": "latest" + } + } + ], + "type": "donutchart" + }, + { + "layout": { + "col": 2, + "row": 0, + "sizeX": 2, + "sizeY": 6 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "Reactive Energy Import (3.8.0)" + }, + "properties": { + "color": "#3498db", + "unit": "VArh" + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "3.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#3498db", + "name": "Reactive Power", + "source": "bucket", + "timespan": { + "mode": "latest" + } + } + ], + "type": "donutchart" + }, + { + "layout": { + "col": 4, + "row": 0, + "sizeX": 2, + "sizeY": 6 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "Apparent Energy (9.8.0)" + }, + "properties": { + "color": "#9b59b6", + "unit": "VAh" + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "9.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#9b59b6", + "name": "Apparent Power", + "source": "bucket", + "timespan": { + "mode": "latest" + } + } + ], + "type": "donutchart" + }, + { + "layout": { + "col": 0, + "row": 6, + "sizeX": 6, + "sizeY": 10 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "Active Power History (L1, L2, L3)" + }, + "properties": { + "axis": true, + "fill": false, + "legend": true, + "multiple_axes": false + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "21.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#e74c3c", + "name": "L1 Active Power", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + }, + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "23.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#f39c12", + "name": "L2 Active Power", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + }, + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "41.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#3498db", + "name": "L3 Active Power", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + } + ], + "type": "chart" + }, + { + "layout": { + "col": 0, + "row": 16, + "sizeX": 6, + "sizeY": 10 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "Total Power (Active, Reactive, Apparent)" + }, + "properties": { + "axis": true, + "fill": false, + "legend": true, + "multiple_axes": false + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "1.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#1abc9c", + "name": "Active Power Total", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + }, + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "3.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#3498db", + "name": "Reactive Power Total", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + }, + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "9.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#9b59b6", + "name": "Apparent Power Total", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + } + ], + "type": "chart" + } + ] + }, + { + "name": "Voltage & Current", + "widgets": [ + { + "layout": { + "col": 0, + "row": 0, + "sizeX": 2, + "sizeY": 6 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "L1 Voltage (32.7.0)" + }, + "properties": { + "color": "#e74c3c", + "max": 250, + "min": 0, + "unit": "V" + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "32.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#e74c3c", + "name": "L1 Voltage", + "source": "bucket", + "timespan": { + "mode": "latest" + } + } + ], + "type": "donutchart" + }, + { + "layout": { + "col": 2, + "row": 0, + "sizeX": 2, + "sizeY": 6 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "L2 Voltage (52.7.0)" + }, + "properties": { + "color": "#f39c12", + "max": 250, + "min": 0, + "unit": "V" + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "52.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#f39c12", + "name": "L2 Voltage", + "source": "bucket", + "timespan": { + "mode": "latest" + } + } + ], + "type": "donutchart" + }, + { + "layout": { + "col": 4, + "row": 0, + "sizeX": 2, + "sizeY": 6 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "L3 Voltage (72.7.0)" + }, + "properties": { + "color": "#3498db", + "max": 250, + "min": 0, + "unit": "V" + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "72.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#3498db", + "name": "L3 Voltage", + "source": "bucket", + "timespan": { + "mode": "latest" + } + } + ], + "type": "donutchart" + }, + { + "layout": { + "col": 0, + "row": 6, + "sizeX": 2, + "sizeY": 6 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "L1 Current (31.7.0)" + }, + "properties": { + "color": "#e74c3c", + "unit": "A" + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "31.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#e74c3c", + "name": "L1 Current", + "source": "bucket", + "timespan": { + "mode": "latest" + } + } + ], + "type": "donutchart" + }, + { + "layout": { + "col": 2, + "row": 6, + "sizeX": 2, + "sizeY": 6 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "L2 Current (51.7.0)" + }, + "properties": { + "color": "#f39c12", + "unit": "A" + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "51.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#f39c12", + "name": "L2 Current", + "source": "bucket", + "timespan": { + "mode": "latest" + } + } + ], + "type": "donutchart" + }, + { + "layout": { + "col": 4, + "row": 6, + "sizeX": 2, + "sizeY": 6 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "L3 Current (71.7.0)" + }, + "properties": { + "color": "#3498db", + "unit": "A" + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "71.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#3498db", + "name": "L3 Current", + "source": "bucket", + "timespan": { + "mode": "latest" + } + } + ], + "type": "donutchart" + }, + { + "layout": { + "col": 0, + "row": 12, + "sizeX": 6, + "sizeY": 10 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "Voltage History (L1, L2, L3)" + }, + "properties": { + "axis": true, + "fill": false, + "legend": true, + "multiple_axes": false + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "32.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#e74c3c", + "name": "L1 Voltage", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + }, + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "52.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#f39c12", + "name": "L2 Voltage", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + }, + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "72.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#3498db", + "name": "L3 Voltage", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + } + ], + "type": "chart" + }, + { + "layout": { + "col": 0, + "row": 22, + "sizeX": 6, + "sizeY": 10 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "Current History (L1, L2, L3)" + }, + "properties": { + "axis": true, + "fill": false, + "legend": true, + "multiple_axes": false + }, + "sources": [ + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "31.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#e74c3c", + "name": "L1 Current", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + }, + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "51.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#f39c12", + "name": "L2 Current", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + }, + { + "bucket": { + "backend": "influxdb", + "id": "tip_sinus85_data", + "mapping": "71.7.0", + "tags": { + "device": [], + "group": [] + } + }, + "color": "#3498db", + "name": "L3 Current", + "source": "bucket", + "timespan": { + "magnitude": "hour", + "mode": "relative", + "period": "latest", + "value": 24 + } + } + ], + "type": "chart" + } + ] + }, + { + "name": "Energy Details", + "widgets": [ + { + "layout": { + "col": 0, + "row": 0, + "sizeX": 6, + "sizeY": 18 + }, + "panel": { + "color": "#ffffff", + "currentColor": "#ffffff", + "showOffline": { + "type": "none" + }, + "title": "Latest Measurements" + }, + "properties": { + "source": "code", + "template": "
| Timestamp | \nActive Power (W) | \nReactive Power (VAr) | \nL1 Voltage (V) | \nL2 Voltage (V) | \nL3 Voltage (V) | \nL1 Current (A) | \nL2 Current (A) | \nL3 Current (A) | \n
|---|---|---|---|---|---|---|---|---|
| {{ entry.ts | date:'medium' }} | \n{{ entry['1.7.0'] || '—' }} | \n{{ entry['3.7.0'] || '—' }} | \n{{ entry['32.7.0'] || '—' }} | \n{{ entry['52.7.0'] || '—' }} | \n{{ entry['72.7.0'] || '—' }} | \n{{ entry['31.7.0'] || '—' }} | \n{{ entry['51.7.0'] || '—' }} | \n{{ entry['71.7.0'] || '—' }} | \n