From 93b64c34a90e236b3c4735be17a86223578781c8 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 30 Jan 2022 17:38:39 +0100 Subject: [PATCH] include only messages without level --- contrib/etc/ebusd/mqtt-hassio.cfg | 4 +++- contrib/etc/ebusd/mqtt-integration.cfg | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/etc/ebusd/mqtt-hassio.cfg b/contrib/etc/ebusd/mqtt-hassio.cfg index 54fbac05..4a7baa3c 100644 --- a/contrib/etc/ebusd/mqtt-hassio.cfg +++ b/contrib/etc/ebusd/mqtt-hassio.cfg @@ -101,7 +101,9 @@ filter-seen = 1 # HA integration: filter to some useful names for monitoring the heating circuit filter-name = status|temp|yield|count|energy|power|runtime|hours|starts|mode|curve|^load$|^party$ # include only messages having the specified level (partial match, alternatives and wildcard supported). -#filter-level = +# Note: Since the empty string matches all levels, an explicit check for empty string (with "^$") needs to be used for +# including only messages without a level. +filter-level = ^$ # include only messages having the specified direction ("r", "w", "u", or "uw". partial match, alternatives and wildcard supported). # HA integration: writable messages excluded for now filter-direction = r|u diff --git a/contrib/etc/ebusd/mqtt-integration.cfg b/contrib/etc/ebusd/mqtt-integration.cfg index 3e284c77..59fdeb50 100644 --- a/contrib/etc/ebusd/mqtt-integration.cfg +++ b/contrib/etc/ebusd/mqtt-integration.cfg @@ -93,7 +93,9 @@ filter-seen = 1 # include only messages having the specified name (partial match, alternatives and wildcard supported). #filter-name = # include only messages having the specified level (partial match, alternatives and wildcard supported). -#filter-level = +# Note: Since the empty string matches all levels, an explicit check for empty string (with "^$") needs to be used for +# including only messages without a level. +filter-level = ^$ # include only messages having the specified direction ("r", "w", "u", or "uw". partial match, alternatives and wildcard supported). filter-direction = r|u # include only fields having the specified name (partial match, alternatives and wildcard supported).