Closed luc-ass closed 4 years ago
:white_check_mark: Pre-checks completed successfully.
The plugin must not throw unhandled exceptions, the plugin must catch and log its own errors. If receive invalid login or grant, plugin stops homebridge from running.
Error during Login: invalid_grant
@luc-ass, you need to call callback([])
in these errors to prevent homebridge from blocking.
https://github.com/luc-ass/homebridge-evohome/blob/master/index.js#L176-L190
Just so I can get this right: you did not enter any credentials and homebridge stopped because of this?
@luc-ass I added incorrect credentials and it stopped Homebridge from running. The plugin must log it’s own. And must keep Homebridge running even if wrong credentials are inputted.
Thank you so much for your input! I fixed the crashing problems if no or wrong credentials are set up.
I don’t quite understand what “must log it’s own” is supposed to mean. Could you elaborate? Am I supposed to create a separate log file?
@donavanbecker I published a new version to npm (v0.7.1). Would you have a look at it?
I don’t quite understand what “must log it’s own” is supposed to mean. Could you elaborate? Am I supposed to create a separate log file?
Sorry, my wording was wrong. what you changed was exactly what I was meaning. Everything looks good. I will get it on the verified list as soon as I can.
/check
:white_check_mark: Pre-checks completed successfully.
@donavanbecker we have run into problems because of the empty callback. This causes the accessories to be removed if the server doesn't respond (for example because of maintenance). Is there an alternative to callback([])
, that prevents the plugin from blocking and marks existing accessories as "Not responding"? So far my searches didn't result in a solution...
Plugin Details This plugin integrates Honeywell Evohome (https://getconnected.honeywellhome.com/de/thermostate/evohome) into Homebridge. It has been running smoothly for some years now. At this point I feel that it is ready for prime time. I added support for config-ui-x (
config.schema.json
) and created my first release.Thank you for all your great work!