jamesrodda / homebridge-mihomegateway

A homebridge plugin for connecting the MiHome gateway to HomeKit
Apache License 2.0
12 stars 2 forks source link

Automate registration #20

Open SmolSoftBoi opened 4 years ago

SmolSoftBoi commented 4 years ago

@jamesrodda How would you like this to be implemented?

jamesrodda commented 4 years ago

I was thinking something like having a createNewAccount flag in the config which, if set to true would first try and login with the supplied credentials as normal but, if that failed, would then call the API to register a new account using the credentials supplied.

Does that sound reasonable? Any alternatives?