This project is now archived due to MyChevy being removed from Home Assistant. Chevrolet has made it almost impossible for it to work due to constant authentication changes
This is a modification of the My Chevrolet Integration from Home Assistant. While I do not has an electric vehicle (EV), I do have a gas Chrevolet that uses the My Chevrolet app. With a little bit of fiddling, it is possible to retrieve the gas-related inforation, so I can track my fuel economy, and how much gas I have left. Eventually I would like to figure out how to retrieve other information such as oil life and tire pressures.
Copy the mygaschevy
folder to the custom_components
folder in your Home Assistant configuration directory:
/home/homeassistant/
├── .homeassistant
│ ├── custom_components
│ │ └── mygaschevy
Under Custom Repositories, add https://github.com/dennyreiter/hass-mygaschevy as an integration. Then install.
Add the following code in your configuration.yaml
file:
mygaschevy:
username: YOUR_USERNAME
password: YOUR_PASSWORD
key | required | type | usage |
---|---|---|---|
username | true | string | The email address for the MyChevrolet account |
password | true | string | The password for the MyChevrolet account |
Just like the My Chevrolet integration, it can take two to three minutes for the results to be returned.
The created sensors will be in the form of sensor.mygaschevy_VEHICLE_NAME.*
sensor | description |
---|---|
sensor.mygaschevy_VEHICLE_NAME_fuel_economy | miles per gallon per vehicle |
sensor.mygaschevy_VEHICLE_NAME_fuel_percentage | percentage of fuel left in the tank |
sensor.mygaschevy_VEHICLE_NAME_gas_range | approximate range in miles per vehicle |
sensor.mygaschevy_VEHICLE_NAME_mileage | the vehicle mileage |
binary_sensor:
- platform: template
sensors:
truck_gas_low:
friendly_name: "Truck Gas Level Low"
device_class: gas
value_template: >-
{{ states('sensor.mygaschevy_2011_chevrolet_silverado_1500_fuel_percentage') | int < 18 }}
Built upon the package and Home Assistant integration by @sdague https://github.com/sdague/mychevy