homebridge / plugins

Information and resources for Homebridge plugins.
https://homebridge.io/w/Verified-Plugins
GNU General Public License v3.0
368 stars 16 forks source link

homebridge-evohome #63

Closed luc-ass closed 4 years ago

luc-ass commented 4 years ago

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!

github-actions[bot] commented 4 years ago

:white_check_mark: Pre-checks completed successfully.

donavanbecker commented 4 years ago

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
Screen Shot 2020-05-02 at 7 56 24 AM
donavanbecker commented 4 years ago

@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

luc-ass commented 4 years ago

Just so I can get this right: you did not enter any credentials and homebridge stopped because of this?

donavanbecker commented 4 years ago

@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.

luc-ass commented 4 years ago

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?

luc-ass commented 4 years ago

@donavanbecker I published a new version to npm (v0.7.1). Would you have a look at it?

donavanbecker commented 4 years ago

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.

donavanbecker commented 4 years ago

/check

github-actions[bot] commented 4 years ago

:white_check_mark: Pre-checks completed successfully.

donavanbecker commented 4 years ago
Screen Shot 2020-05-03 at 4 08 15 PM
luc-ass commented 2 years ago

@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...