set state_clss to total_increasing for readable items with "poweron" or "count" in the name, remove no longer value state_class measurement for globals

This commit is contained in:
John
2023-05-29 14:51:32 +02:00
parent e606772e9d
commit 8408e32d32
+2 -3
View File
@@ -181,6 +181,7 @@ type_switch-w-number =
# HA integration: the mapping list for numeric sensor entities by field type, name, message, and unit.
type_switch-number =
sensor,,total_increasing = poweron|count,
sensor,temperature,measurement = temp|,°C$
sensor,power_factor,measurement = power*%%
sensor,power,measurement = power|,kW$|,W$
@@ -322,7 +323,6 @@ global_prefix = {
# HA integration: boolean suffix for global parts
global_boolean_suffix = ,
"state_class":"measurement",
"payload_on":"true",
"payload_off":"false"
}
@@ -331,8 +331,7 @@ global_boolean_suffix = ,
# 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,
"state_class":"measurement"
def_global-payload = %global_prefix
}
#def_global-retain = 0