Nicnl / homebridge-minimal-http-blinds

GNU General Public License v3.0
12 stars 12 forks source link

add returning errors to callbacks & caching for errors #10

Closed KnicKnic closed 5 years ago

KnicKnic commented 5 years ago

Allows home app to know blinds are misbehaving. Addresses issue https://github.com/Nicnl/homebridge-minimal-http-blinds/issues/9 .

Adds

  1. returning errors to all callbacks.
  2. caching of errors.

Inspired from example https://github.com/nfarina/homebridge/blob/6500912f54a70ff479e63e2b72760ab589fa558a/example-plugins/homebridge-lockitron/index.js#L75