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