Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Energy sensor fix and docs update #68

Merged
merged 4 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,9 @@ This is the recommended installation method.
From the Home Assistant Integrations page, search for and add the Ohme integration.

### Social Logins
If you created your Ohme account through an Apple, Facebook or Google account, you will need to set a password in the Ohme app.

Open the menu in the Ohme app (☰) and note the email address shown under your name. This is your login email address and may differ from what you expect.

To set a password, open **Settings** from this menu and click **Account Details > Change Password**. Thanks to [EV Nick](https://www.youtube.com/c/NicolasRaimo) for these instructions.
If you created your Ohme account through an Apple, Facebook or Google account, you will need to set a password to use this integration.

Visit the [password reset](https://api.ohme.io/fleet/index.html#/authentication/forgotten-password) page and enter the email address associated with your social account. You can then use this new password to log into the integration.

## Entities
This integration exposes the following entities:
Expand All @@ -60,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
Loading