This adds support for Mini to the BMW Connected app. I took the liberty to rename the app to BMW / Mini Connected to clearly state that Mini is also a first citizen.
A lot of files have changed, although the impact is relatively small. Most of the changes were performed to reuse as much code as possible between the BMW and Mini drivers.
A rundown of the most relevant changes:
Updated the bmw-connected-drive node module which adds support for Mini
Updated the Homey manifest (app.json)
Move settings definitions to .homeycompose directory so they can be shared
Create driver.json template in .homeycompose directory to share the driver definition
Add ConnectedDrive and Vehicle base classes where the BMW and Mini drivers and devices inherit from
Updated the pair flow to use the built-in login_credentials page. The ConnectedDrive driver base class onPairListDevices is replaced by onPair, to control the flow between the pages.
Move flows to .homeycompose directory and apply filter in order to share them
This adds support for Mini to the BMW Connected app. I took the liberty to rename the app to BMW / Mini Connected to clearly state that Mini is also a first citizen.
A lot of files have changed, although the impact is relatively small. Most of the changes were performed to reuse as much code as possible between the BMW and Mini drivers.
A rundown of the most relevant changes:
bmw-connected-drive
node module which adds support for Mini.homeycompose
directory so they can be shared.homeycompose
directory to share the driver definitionlogin_credentials
page. The ConnectedDrive driver base classonPairListDevices
is replaced byonPair
, to control the flow between the pages..homeycompose
directory and apply filter in order to share them