From 5ac2f0f8c10062ea2189b56a4d5dfe9d4c640ce5 Mon Sep 17 00:00:00 2001 From: Niko <71028077+nikohein@users.noreply.github.com> Date: Wed, 12 Feb 2025 19:53:55 +0100 Subject: [PATCH] Mqtt: allow nil/null/none/- as empty values #666 --- docs/integrations/mqtt-api.md | 15 +++++++++++++++ .../current/integrations/mqtt-api.md | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/docs/integrations/mqtt-api.md b/docs/integrations/mqtt-api.md index 0cfbe7da0..eff4f7857 100644 --- a/docs/integrations/mqtt-api.md +++ b/docs/integrations/mqtt-api.md @@ -63,3 +63,18 @@ Beispiele: `2023-08-17T19:30:00Z` = 17. August 2023 um 21:30 Uhr MESZ ::: + +:::note +\*\* Unterstützung leerer Werte: +Folgende Zeichenfolgen werden als leere Werte erkannt: +- `nil` +- `null` +- `none` +- `-` + +Beispiele: + +- `evcc/site/batteryGridChargeLimit/set`: 'none' + +Um die Preisschwelle zum Laden der Batterie auf 'none' zu setzten, bzw. zu löschen. +::: \ No newline at end of file diff --git a/i18n/en/docusaurus-plugin-content-docs/current/integrations/mqtt-api.md b/i18n/en/docusaurus-plugin-content-docs/current/integrations/mqtt-api.md index 51c33495b..c55b467d4 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/integrations/mqtt-api.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/integrations/mqtt-api.md @@ -66,3 +66,18 @@ Examples: `2023-08-17T19:30:00Z` = 17th of August 2023 at 21:30 CEST ::: + +:::note +\*\* Support for empty values: +The following strings are recognized as empty values: +- `nil` +- `null` +- `none` +- `-` + +Examples: + +- `evcc/site/batteryGridChargeLimit/set`: 'none' + +To set the price threshold for charging the battery to 'none' or to delete it. +::: \ No newline at end of file