Skip to content

Commit

Permalink
Energy sensor fix and docs update (#68)
Browse files Browse the repository at this point in the history
* Update password reset instructions

* Change energy sensor to total_increasing

* Version bump

* Added note for energy sensor to README
  • Loading branch information
dan-r authored Mar 25, 2024
1 parent 42e7dd5 commit 75ffc88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ This integration exposes the following entities:
* Next Charge Slot End - The next time your car will stop charging according to the Ohme-generated charge plan
* Sensors (Other)
* CT Reading (Amps) - Reading from attached CT clamp
* Session Energy Usage (kWh) - Energy used in the current session
* Session Energy Usage (kWh) - Energy used in the current session. *This is supported by the energy dashboard.*
* Accumulative Energy Usage (kWh) - Total energy used by the charger (If enabled in options)
* Battery State of Charge (%) - If your car is API connected this is read from the car, if not it is how much charge Ohme thinks it has added
* Switches (Settings) - **Only options available to your charger model will show**
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ohme/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Component constants"""
DOMAIN = "ohme"
USER_AGENT = "dan-r-homeassistant-ohme"
INTEGRATION_VERSION = "0.7.1"
INTEGRATION_VERSION = "0.7.2"
CONFIG_VERSION = 1
ENTITY_TYPES = ["sensor", "binary_sensor", "switch", "button", "number", "time"]

Expand Down
2 changes: 1 addition & 1 deletion custom_components/ohme/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class EnergyUsageSensor(CoordinatorEntity[OhmeChargeSessionsCoordinator], Sensor
_attr_suggested_unit_of_measurement = UnitOfEnergy.KILO_WATT_HOUR
_attr_suggested_display_precision = 1
_attr_device_class = SensorDeviceClass.ENERGY
_attr_state_class = SensorStateClass.TOTAL
_attr_state_class = SensorStateClass.TOTAL_INCREASING

def __init__(
self,
Expand Down

0 comments on commit 75ffc88

Please sign in to comment.