With the upgrade of the mychevy package to 2.1, it is now possible to retrieve information about gas vehicles, along with EV vehicles. I’ve created a custom component to create these sensors (and by create, I mean I took the mychevy system integration and perverted it for my uses.)
It can be installed manually, or by adding a custom repository to HACS:
HACS
Under Custom Repositories, add https://github.com/dennyreiter/hass-mygaschevy as an integration. Then install.
Configuration
Add the following code in your configuration.yaml
file:
mygaschevy:
username: YOUR_USERNAME
password: YOUR_PASSWORD
Configuration
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 |