akamming / Domoticz_VolvoRecharge_Plugin

domoticz plugin for Volvo Recharge Full EV or PHEV vehicles
GNU General Public License v3.0
3 stars 1 forks source link

Domoticz VolvoRecharge Plugin

domoticz plugin for Volvo vehicles

NEW: 2 Factor Authentication

domoticzwrapper around Volvo API (https://developer.volvocars.com/apis/) so your car sensors can be integrated into your home automation use cases.

Features

Volvo API

Other

Devices

pls look at the above links to API for device descriptions

There are 2 devices which can send commands to the volvo

And then there are several energy devices. Since the API does not allow reading the used or charged energy, these are just estimations: If the battery percentage rises or drops, the plugin assumes charging or using and so updates the kwh devices accordingly. homecharging is assumed if the battery percentage is rising and the location is within 25 meters from home.

Setup and Update instructions

Installations instructions:

2 Factor Authentication

The plugin already supports 2FA as 2nd way of authentication.

For this you will have to run the authorize.py script in the plugin directory (give the command "python authorize.py"). The script will request your username/password, your vcc key and your One Time Password which will be sent to your email or SMS during the process. This script will create a token.ini file, after which the plugin can be restarted to use the new connection setting.

NOTE: In normal operations this has to be done only once, and after that the connection will remain. However is the token expires and on that moment domoticz is down, it will not renew in time and you have to re-authenticate using the authorize.py script.

Update instructions

Security Considerations

This is a normal domoticz plugin, so as secure as every other one. But there are 2 addtional things to consider:

Supported cars

(Semi)Electric vehicles

This car was developed for recharge cars. Every car which is supported by the Volvo Energy API should theoretically work. This support can be found here: https://developer.volvocars.com/apis/energy/v1/overview/#availability

The plugin has been reported to work for

Non electric Vehicles

Experimental support was added for non electric cars, for which the plugin only uses the Connected Vehicle API. Theoretically this should work for all Volvo car models model years as of 2015, but not in all countries, for details: See https://developer.volvocars.com/apis/connected-vehicle/v2/overview/#availability

If you own a non electric vehicle and the API works, pls me know by registring an "issue"

TODO

(requires update of the API on Volvo side, but if they are there i would like to add)