diff --git a/contrib/etc/ebusd/mqtt-hassio.cfg b/contrib/etc/ebusd/mqtt-hassio.cfg index 824e9df9..2adb4775 100644 --- a/contrib/etc/ebusd/mqtt-hassio.cfg +++ b/contrib/etc/ebusd/mqtt-hassio.cfg @@ -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