dkerr64 / homebridge-yolink

Apache License 2.0
12 stars 2 forks source link

Change refresh timer default to just over 4 hours. Add support for StatusActive and StatusFault. #5

Closed dkerr64 closed 2 years ago

dkerr64 commented 2 years ago

YoLink devices send updated over MQTT and for some devices this is as infrequent as every 4 hours. More active devices like temperature sensors send updates more frequently. I am changing the default refreshAfter config setting to just over 4 hours so that we don't, by default, ask for data more frequently than YoLink would. The presumption is that this is tuned by YoLink to be most efficient on e.g. battery life.

Also added support for StatusActive and StatusFault so that if we detect something gone wrong with a device then we report it to HomeKit and log in Homebridge logs as an error.