From 19642b1498e3b55b3e77f07abb2c95c3309056b5 Mon Sep 17 00:00:00 2001 From: Kolbi Date: Mon, 9 Mar 2026 08:36:09 +0100 Subject: [PATCH] Add pressure to filter-name in mqtt-hassio.cfg --- contrib/etc/ebusd/mqtt-hassio.cfg | 48 +++++++++++++++---------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/contrib/etc/ebusd/mqtt-hassio.cfg b/contrib/etc/ebusd/mqtt-hassio.cfg index 921e08c2..7ff212d9 100644 --- a/contrib/etc/ebusd/mqtt-hassio.cfg +++ b/contrib/etc/ebusd/mqtt-hassio.cfg @@ -107,7 +107,7 @@ filter-seen = 5 #filter-non-circuit = # include only messages having the specified name (partial match, alternatives and wildcard supported). # HA integration: filter to some useful names for monitoring the heating circuit -filter-name = status|temp|humidity|yield|count|energy|power|runtime|hours|starts|mode|curve|^load$|^party$|sensor|timer +filter-name = status|temp|humidity|yield|count|energy|power|runtime|hours|starts|mode|curve|^load$|^party$|sensor|timer|pressure # exclude messages having the specified name (partial match, alternatives and wildcard supported). #filter-non-name = # include only messages having the specified level (partial match, alternatives and wildcard supported). @@ -134,13 +134,13 @@ area = Heating # HA integration: circuit specific part used as device entity for message definitions below circuit_part = { - "identifiers":"%{PREFIX}_%CIRCUIT", - "manufacturer":"ebusd.eu", - "name":"%prefixn %circuit", - "via_device":"%PREFIXN", - "sw_version":"%version", - "suggested_area":"%area" - } + "identifiers":"%{PREFIX}_%CIRCUIT", + "manufacturer":"ebusd.eu", + "name":"%prefixn %circuit", + "via_device":"%PREFIXN", + "sw_version":"%version", + "suggested_area":"%area" +} # the field type mapped from variables named "type_map-%direction-%type" or "type_map-%type" as fallback with the # field type and the optional direction in the suffix. The variable including the direction is evaluated first and @@ -217,12 +217,12 @@ type_switch-list = # HA integration: the mapping list for (potentially) writable string entities containing a time value field type, message name+field name, and unit. type_switch-w-time = - text,,,time = from,|to,|time2,|timer - text,,,time3 = time,|timevalue, + text,,,time = from,|to,|time2,|timer + text,,,time3 = time,|timevalue, type_switch-time = - sensor,,,time = from,|to,|time2,|timer - sensor,,,time3 = time,|timevalue, + sensor,,,time = from,|to,|time2,|timer + sensor,,,time3 = time,|timevalue, # HA integration: the mapping list for (potentially) writable string entities containing a date value field type, message name+field name, and unit. type_switch-w-date = @@ -355,7 +355,7 @@ definition-payload = { "device":%circuit_part, "value_template":"{{value_json[\"%field\"].value}}", "state_topic":"%topic"%field_payload - } +} #definition-retain = 0 @@ -368,12 +368,12 @@ topic = %prefix/%circuit/%name # HA integration: global part used as device entity for the global config topics global_device = { - "identifiers":"%PREFIXN", - "manufacturer":"ebusd.eu", - "name":"%prefixn", - "sw_version":"%version", - "suggested_area":"%area" - } + "identifiers":"%PREFIXN", + "manufacturer":"ebusd.eu", + "name":"%prefixn", + "sw_version":"%version", + "suggested_area":"%area" +} # HA integration: common prefix for global parts global_prefix = { @@ -386,14 +386,14 @@ global_prefix = { global_boolean_suffix = , "payload_on":"true", "payload_off":"false" - } +} # the common global config topic, payload, and retain setting (used by running, version, signal, uptime, updatecheck, # and scan if not otherwise defined explicitly). # HA integration: the config topic for HA's MQTT discovery for the ebusd global parts. def_global-topic = %haprefix/sensor/%TOPIC/config def_global-payload = %global_prefix - } +} #def_global-retain = 0 # individual global running, version, signal, uptime, updatecheck, and scan config topic, payload, and retain setting. @@ -405,7 +405,7 @@ def_global_uptime-payload = %global_prefix, "device_class":"duration", "state_class":"total_increasing", "unit_of_measurement":"s" - } +} def_global_signal-topic = %haprefix/binary_sensor/%TOPIC/config def_global_signal-payload = %global_prefix, "device_class":"connectivity"%global_boolean_suffix @@ -413,7 +413,7 @@ def_global_signal-payload = %global_prefix, def_global_updatecheck-topic = %haprefix/update/%TOPIC/config def_global_updatecheck-payload = %global_prefix, "value_template":"{%% set my_new = value_json|truncate(255)|regex_replace(find=',.*| available|revision v|version v|OK',replace='') %%}{%% if my_new == '' %%}{%% set my_new = '%version' %%}{%% endif %%}{{ {'installed_version':'%version','latest_version':my_new,'entity_picture':'https://ebusd.eu/logo-32x32.png','release_url':'https://github.com/john30/ebusd/releases/latest'} | tojson }}" - } +} # optional secondary update check for the enhanced eBUS device (consuming the same topic though!) @@ -430,7 +430,7 @@ def_global_updatecheck_device-payload = { "state_topic":"%topic", "name":"%name", "value_template":"{%% set my_new = value_json|truncate(255)|regex_replace(find='^[^,]*|, device firmware |,.*| available',replace='') %%}{%% set my_ds = 'v31/firmware/' %%}{%% if my_new is search('up to date') %%}{%% set my_ds = my_new|regex_replace(find=' .*',replace='/') %%}{%% set my_new = 'current' %%}{%% set my_cur = 'current' %%}{%% else %%}{%% set my_cur = 'old' %%}{%% if my_new is search(' ') %%}{%% set my_ds = my_new|regex_replace(find=' .*',replace='/') %%}{%% set my_new = my_new|regex_replace(find='.* ',replace='') %%}{%% else %%}{%% if my_new == '' %%}{%% set my_new = 'current' %%}{%% set my_cur = 'current' %%}{%% endif %%}{%% endif %%}{%% endif %%}{{ {'installed_version':my_cur,'latest_version':my_new,'entity_picture':'https://adapter.ebusd.eu/'+my_ds+'favicon.ico','release_url':'https://adapter.ebusd.eu/'+my_ds+'ChangeLog'} | tojson }}" - } +} # the topic and payload to listen to in order to republish all config messages. # HA integration: force republish of all configs when HA goes down and comes up again.