From 1da476267bcb7909c17d77a31ec2d9f594473c8b Mon Sep 17 00:00:00 2001 From: Guido Jansen Date: Sat, 25 Oct 2025 10:04:13 +0200 Subject: [PATCH] Updated docs --- docs/devices/plugins.mdx | 6 +++++- .../current/devices/plugins.mdx | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/devices/plugins.mdx b/docs/devices/plugins.mdx index 88d938826..5984ce5d1 100644 --- a/docs/devices/plugins.mdx +++ b/docs/devices/plugins.mdx @@ -616,13 +616,17 @@ mul: ... ``` -Als Operanden werden dabei die Grundrechenarten Addition (`add`) und Multiplikation (`mul`) unterstützt. +Als Operanden werden dabei die Grundrechenarten Addition (`add`), Multiplikation (`mul`) unterstützt, Division (`div`), Vorzeichenumkehr (`sign`), Absolutwert (`abs`), Minimalwert (`min`) und Maximalwert (`max`) unterstützt. Mit `scale: -1` bei einem der Werte kann eine einfache Subtraktion durchgeführt werden, mit `scale: 0.001` eine Division z. B. zur Konvertierung von kWh in Wh. Mit `sign:` (jede positive Zahl wird zu +1, jede negative Zahl wird zu -1, 0 bleibt 0) können (in Verbindung mit `mul`) Vorzeichen auf andere Werte übertragen werden. Z. B. um bei Zählern die „Richtung“ der Leistung (Einspeisung oder Bezug) auf die gemessenen Ströme zu übertragen. +Mit `abs:` wird der Absolutwert einer Zahl berechnet. + +Mit `min:` und `max:` wird der Minimalwert bzw. der Maximalwert berechnet. + Das `calc` Plugin ist hilfreich um z. B. - Leistungswerte von einzelnen PV-Strings zu summieren (addieren) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/devices/plugins.mdx b/i18n/en/docusaurus-plugin-content-docs/current/devices/plugins.mdx index 74f2135ec..703bbca30 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/devices/plugins.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/devices/plugins.mdx @@ -616,13 +616,17 @@ mul: ... ``` -The basic arithmetic operations addition (`add`) and multiplication (`mul`) are supported as operands. +The basic arithmetic operations addition (add), multiplication (mul), division (div), sign inversion (sign), absolute value (abs), minimum value (min) and maximum value (max) are supported as operands. With `scale: -1` on one of the values, simple subtraction can be performed, with `scale: 0.001` division, e.g. for converting kWh to Wh. With `sign:` (every positive number becomes +1, every negative number becomes -1, 0 remains 0), signs can be transferred to other values (in conjunction with `mul`). E.g. to transfer the "direction" of power (feed-in or consumption) to the measured currents for meters. +With `abs:`, the absolute value of a number is calculated. + +With `min:` and `max:` the minimum value respectively the maximum value will be calculated. + The `calc` plugin is helpful for e.g. - Summing power values from individual PV strings (addition)