Skip to content

Commit

Permalink
Merge pull request #55 from DasBasti/housekeeping
Browse files Browse the repository at this point in the history
Housekeeping
  • Loading branch information
DasBasti authored Feb 21, 2024
2 parents 08046be + 230fee5 commit f43d595
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 24 deletions.
3 changes: 0 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.pythonPath": "venv/bin/python",
"files.associations": {
"*.yaml": "home-assistant"
}
Expand Down
52 changes: 34 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,40 @@

**This integration will set up the following platforms.**

| Sensor Name | Sensor Type | Unit of Measurement | Attributes | Notes |
| --------------------------- | ----------------------- | ------------------- | ---------- | ---------------------------------------- |
| `Last Update` | Last data update | Timestamp | | Data age in Web API |
| `Odometer` | Total distance traveled | km | | |
| `Days to next service` | Duration | d | | |
| `Distance to next service` | Distance | km | | |
| `Remaining Range` | Distance | km | | |
| `Range at full battery` | Distance | km | | |
| `Remaining Battery Charge` | Percent | % | | |
| `Charger Connection Status` | Number | ? | | Need to determine what number means what |
| `Is Charger Connected` | Boolen | True, False | | |
| `Charging Voltage` | Volts at Charging Port | V | | |
| `Charging Current` | Ampere at Charging Port | A | | |
| `Charging Power` | Power going to Battery | W | | |
| `Charging Time remaining` | Duration | min | | |
| `Charging Target Percent` | Percent State of Charge | % | | Not yet available |
| `Tire Temperature` | Temperature | °C | | |
| `Tire Pressure` | Pressure | kPa | | |
| Sensor Name | Sensor Type | Unit of Measurement | Attributes | Notes |
| ---------------------------- | --------------------------------- | ------------------- | ---------- | ---------------------------------------- |
| `Last Update` | Last data update | Timestamp | | Data age in Web API |
| `Engine State` | Boolean | | | If in 'D' True else False |
| `Odometer` | Total distance traveled | km | | |
| `Days to next service` | Duration | d | | |
| `Distance to next service` | Distance | km | | |
| `Remaining Range` | Distance | km | | |
| `Range at full battery` | Distance | km | | |
| `Remaining Battery Charge` | Percent | % | | |
| `Charger Connection Status` | Number | ? | | Need to determine what number means what |
| `Is Charger Connected` | Boolen | True, False | | |
| `Charging Voltage` | Volts at Charging Port | V | | |
| `Charging Current` | Ampere at Charging Port | A | | |
| `Charging Power` | Power going to Battery | W | | |
| `Charging Time remaining` | Duration | min | | |
| `Charging Target Percent` | Percent State of Charge | % | | Not yet available |
| `Tire Temperature` | Temperature | °C | | |
| `Tire Pressure` | Pressure | kPa | | |
| `12V Battery State` | State, Voltage, Energy Level | V, % | | Determine what some of the values mean |
| `Fluid States` | Numerical | | | Determine what each number means |
| `Light states` | Boolean | | | Check names of sensors |
| `Trim Meter` | Distance | km | | 2 different trip counter |
| `Climate Sensors` | Blower and Heating States | | | Test what the different numbers mean |
| `Window Status and Position` | Numerical | | | Test what the different numbers mean |
| `Temperatur Sensor` | Inner and Surrounding Temperature | °C | | |

| Climate Name | Climate Type | Unit of Measurement | Attributes | Notes |
| ------------------ | ------------ | ------------------- | ---------- | --------------------------------------- |
| `Pre Conditioning` | Temperature | °C | | Works not very stable, work in progress |

| Device Tracker | Type | Unit of Measurement | Attributes | Notes |
| ------------------ | -------- | ------------------- | ---------- | ----- |
| `Pre Conditioning` | Position | Geoposition | | |

## Installation

Expand Down
2 changes: 0 additions & 2 deletions custom_components/smarthashtag/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
CONF_VEHICLE,
DEFAULT_CONDITIONING_TEMP,
DOMAIN,
LOGGER,
)


Expand Down Expand Up @@ -100,7 +99,6 @@ async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None:
@cached_property
def current_temperature(self) -> float | None:
"""Return the current temperature."""
LOGGER.warning(self._vehicle.climate.interior_temperature.value)
if self._vehicle.climate.interior_temperature.value is not None:
return self._vehicle.climate.interior_temperature.value
else:
Expand Down
1 change: 0 additions & 1 deletion custom_components/smarthashtag/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@
translation_key="main_battery_charge_level",
name="Main battery charge level",
icon="mdi:car-battery",
device_class=SensorDeviceClass.BATTERY,
),
SensorEntityDescription(
key="main_battery_energy_level",
Expand Down

0 comments on commit f43d595

Please sign in to comment.