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:
@@ -181,6 +181,7 @@ type_switch-w-number =
|
|||||||
|
|
||||||
# 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 by field type, name, message, and unit.
|
||||||
type_switch-number =
|
type_switch-number =
|
||||||
|
sensor,,total_increasing = poweron|count,
|
||||||
sensor,temperature,measurement = temp|,°C$
|
sensor,temperature,measurement = temp|,°C$
|
||||||
sensor,power_factor,measurement = power*%%
|
sensor,power_factor,measurement = power*%%
|
||||||
sensor,power,measurement = power|,kW$|,W$
|
sensor,power,measurement = power|,kW$|,W$
|
||||||
@@ -322,7 +323,6 @@ global_prefix = {
|
|||||||
|
|
||||||
# HA integration: boolean suffix for global parts
|
# HA integration: boolean suffix for global parts
|
||||||
global_boolean_suffix = ,
|
global_boolean_suffix = ,
|
||||||
"state_class":"measurement",
|
|
||||||
"payload_on":"true",
|
"payload_on":"true",
|
||||||
"payload_off":"false"
|
"payload_off":"false"
|
||||||
}
|
}
|
||||||
@@ -331,8 +331,7 @@ global_boolean_suffix = ,
|
|||||||
# and scan if not otherwise defined explicitly).
|
# and scan if not otherwise defined explicitly).
|
||||||
# HA integration: the config topic for HA's MQTT discovery for the ebusd global parts.
|
# HA integration: the config topic for HA's MQTT discovery for the ebusd global parts.
|
||||||
def_global-topic = %haprefix/sensor/%TOPIC/config
|
def_global-topic = %haprefix/sensor/%TOPIC/config
|
||||||
def_global-payload = %global_prefix,
|
def_global-payload = %global_prefix
|
||||||
"state_class":"measurement"
|
|
||||||
}
|
}
|
||||||
#def_global-retain = 0
|
#def_global-retain = 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user