From a73fb1b9db856207453b461890a57e33658ae642 Mon Sep 17 00:00:00 2001 From: Thomas Speer Date: Sat, 20 Sep 2025 11:22:18 +0200 Subject: [PATCH] Update the english version according to the german version the faulty link revealed an pretty outdated version --- docs/devices/plugins.mdx | 1 + .../docusaurus-plugin-content-docs/current/devices/plugins.mdx | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/devices/plugins.mdx b/docs/devices/plugins.mdx index 7801a56a9..e355a2012 100644 --- a/docs/devices/plugins.mdx +++ b/docs/devices/plugins.mdx @@ -79,6 +79,7 @@ Mögliche Parameter für die Datenextraktion sind: - `regex`: Ein regulärer Ausdruck, um Werte aus dem empfangenen Text zu extrahieren. - `jq`: Ein [jq](https://jqlang.github.io/jq/)-Ausdruck, um Werte aus JSON-Strukturen zu extrahieren. Die volle Syntax und Möglichkeiten finden sich in der jq-Dokumentation. +- `quote`: Boolean-Wert, der die Eingabedaten in Anführungszeichen einschließt, bevor sie an jq weitergegeben werden. Dies ermöglicht es jq, unquotierte Strings (z. B. von MQTT) zu verarbeiten. Bei einem MQTT-Wert wie `Charging` kann man `quote: true` und `jq: '. == "Charging"'` verwenden. - `unpack`: Konvertiert Werte aus anderen Zahlenrepräsentationen, z. B. `hex`. - `decode`: Dekodiert Binärformate wie `uint32`, `float32` etc. 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 bee0437f8..ab4a5b687 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/devices/plugins.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/devices/plugins.mdx @@ -79,6 +79,7 @@ Possible parameters for data extraction are: - `regex`: A regular expression to extract values from the received text. - `jq`: A [jq](https://jqlang.github.io/jq/)-expression to extract values from JSON structures. The full syntax and possibilities can be found in the jq documentation. +- `quote`: Boolean value that wraps the input data in quotes before passing it to jq. This allows jq to process unquoted strings (e.g. from MQTT). For an MQTT value like `Charging`, you can use `quote: true` and `jq: '. == "Charging"'`. - `unpack`: Converts values from other number representations, e.g. `hex`. - `decode`: Decodes binary formats like `uint32`, `float32` etc.