Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions contrib/etc/ebusd/mqtt-hassio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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
Expand Down Expand Up @@ -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 =
Expand Down Expand Up @@ -355,7 +355,7 @@ definition-payload = {
"device":%circuit_part,
"value_template":"{{value_json[\"%field\"].value}}",
"state_topic":"%topic"%field_payload
}
}
#definition-retain = 0


Expand All @@ -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 = {
Expand All @@ -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.
Expand All @@ -405,15 +405,15 @@ 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

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!)
Expand All @@ -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.
Expand Down