DasBasti / SmartHashtag

Homeassistant component for Smart #1/#3 API
MIT License
29 stars 0 forks source link
hacs home-assistant homeassistant integration

Smart #1 and #3 Integration

GitHub Release License CodeQL Validation Dependency Validation

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
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 ?
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 Heat/Cool, Off
Device Tracker Type Unit of Measurement Attributes Notes
Pre Conditioning Position Geoposition

Installation

Using HACS (Recommended)

  1. Add this repository to your custom repositories
  2. Search for and install "Smart #1/#3 Integration" in HACS.
  3. Restart Home Assistant.
  4. In the Home Assistant UI go to "Configuration" -> "Integrations" click "+" and search for "Smart"

Manually Copy Files

  1. Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called smarthashtag.
  4. Download all the files from the custom_components/smarthashtag/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. Restart Home Assistant
  7. In the Home Assistant UI go to "Configuration" -> "Integrations" click "+" and search for "Smart"

Finally

Open your Home Assistant instance and start setting up a new integration.

Contributions are welcome!

We need to add more sensor values from the JSON aquired form the Web API. Please have a look at pySmartHashtag. If you want to contribute to this please read the Contribution guidelines


Project Maintenance