diff --git a/hatasmota/const.py b/hatasmota/const.py index 14bf394..efb9ecd 100644 --- a/hatasmota/const.py +++ b/hatasmota/const.py @@ -164,6 +164,7 @@ SENSOR_VOLTAGE: Final = "Voltage" SENSOR_WEIGHT: Final = "Weight" SENSOR_YESTERDAY: Final = "Yesterday" +SENSOR_TOTAL_TARIFF: Final = "TotalTariff" SENSOR_STATUS_BATTERY_PERCENTAGE: Final = "status_battery_percentage" diff --git a/hatasmota/sensor.py b/hatasmota/sensor.py index f9d200a..c0330c4 100644 --- a/hatasmota/sensor.py +++ b/hatasmota/sensor.py @@ -83,6 +83,7 @@ SENSOR_VOLTAGE, SENSOR_WEIGHT, SENSOR_YESTERDAY, + SENSOR_TOTAL_TARIFF, SPEED_FEET_PER_SECOND, SPEED_KILOMETERS_PER_HOUR, SPEED_KNOT, @@ -198,6 +199,7 @@ SENSOR_VOLTAGE: VOLT, SENSOR_WEIGHT: MASS_KILOGRAMS, SENSOR_YESTERDAY: ENERGY_KILO_WATT_HOUR, + SENSOR_TOTAL_TARIFF: ENERGY_KILO_WATT_HOUR, } SUPPORTED_PRESSURE_UNITS = [PRESSURE_HPA, PRESSURE_MMHG]