Skip to content

Commit

Permalink
better comments, adhere to cdn normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Oct 5, 2024
1 parent 8c5c6c4 commit 254517f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* add option to discover device via mDNS
* add dedicated log level for device messages
* add option to extend MQTT variables from env/cmdline
* add date+datetime to Home Assistant MQTT discovery integration
* add date+datetime mapping and better device update check to Home Assistant MQTT discovery integration

## Breaking Changes
* change default config path to https://ebus.github.io/ serving files generated from new TypeSpec message definition sources
Expand Down
30 changes: 15 additions & 15 deletions contrib/etc/ebusd/mqtt-hassio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ type_map-datetime = datetime
type_map-string =

# field type switch designator, see below.
# HA integration: this is used to set several variable values depending on the field type, message name, field name, and unit.
# HA integration: this is used to set several variable values depending on the field type, message name+field name, and unit.
type_switch-by = %name%field,%unit

# field type switch variables names to use in addition to %type_switch in case of multiple keys (separated by comma).
# HA integration: var names for topic/class/state/sub values mapped from field type, message name, field name, and unit.
# HA integration: var names for topic/class/state/sub values mapped from field type, message name+field name, and unit.
type_switch-names = type_topic,type_class,type_state,type_sub

# field type switch for each field type and optionally direction (between dash before the field type) available as
Expand All @@ -169,29 +169,29 @@ type_switch-names = type_topic,type_class,type_state,type_sub
# when the wildcard string in the right part matched the "type_switch-by" value. The list is traversed from top to
# bottom stopping at the first match. If direction specific definitions exist, these are traversed first. If no line
# matches at all, the variable(s) are set to the empty string.
# HA integration: the mapping list for (potentially) writable number entities by field type, name, message, and unit.
# HA integration: the mapping list for (potentially) writable number entities field type, message name+field name, and unit.
type_switch-w-number =
number,temperature, = temp|,°C$
number,temperature, = temp|,K$
number,, = integral|,°min$
number,power_factor, = power*%%
number,power, = power|,kW$|,W$
number,voltage, = volt|,V$
number,current, = current,|,A$
number,current, = current,|currentvalue,|,A$
number,pressure, = bar$
number,gas, = gas*/min$
number,humidity, = humid*%%$
number,, = curve,
number,, = curve,|curvevalue,

# HA integration: the mapping list for numeric sensor entities by field type, name, message, and unit.
# HA integration: the mapping list for numeric sensor entities field type, message name+field name, and unit.
type_switch-number =
sensor,,total_increasing = poweron|count,
sensor,,total_increasing = poweron|count,|countvalue,
sensor,temperature,measurement = temp|,°C$
sensor,temperature,measurement = temp|,K$
sensor,power_factor,measurement = power*%%
sensor,power,measurement = power|,kW$|,W$
sensor,voltage,measurement = volt|,V$
sensor,current,measurement = current,|,A$
sensor,current,measurement = current,|currentvalue,|,A$
sensor,,measurement = integral|,°min$
sensor,energy,total_increasing = energy|,Wh$
sensor,yield,total_increasing = total*,Wh$
Expand All @@ -202,35 +202,35 @@ type_switch-number =
sensor,humidity,measurement = humid*%%$
sensor,, =

# HA integration: the mapping list for (potentially) writable binary switch entities by field type, name, message, and unit.
# HA integration: the mapping list for (potentially) writable binary switch entities field type, message name+field name, and unit.
type_switch-w-list =
switch,, = onoff
switch,,,yesno = yesno
select,, =

# HA integration: the mapping list for rather binary sensor entities by field type, name, message, and unit.
# HA integration: the mapping list for rather binary sensor entities field type, message name+field name, and unit.
type_switch-list =
binary_sensor,,measurement = onoff
binary_sensor,,measurement,yesno = yesno
sensor,,,list =

# HA integration: the mapping list for (potentially) writable string entities containing a time value by field type, name, message, and unit.
# 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,
text,,,time3 = time,|timevalue,

type_switch-time =
sensor,,,time = from,|to,|time2,|timer
sensor,,,time3 = time,
sensor,,,time3 = time,|timevalue,

# HA integration: the mapping list for (potentially) writable string entities containing a date value by field type, name, message, and unit.
# 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 =
text,,,date =

type_switch-date =
sensor,,, =

# HA integration: the mapping list for (potentially) writable string entities containing a datetime value by field type, name, message, and unit.
# HA integration: the mapping list for (potentially) writable string entities containing a datetime value field type, message name+field name, and unit.
type_switch-w-datetime =
text,,,datetime =

Expand Down

0 comments on commit 254517f

Please sign in to comment.