I'm using the iota watt driver found elsewhere on this site.
The device has been out of Wifi range for a couple of months on and off, and it seems that the Habitat is counting the 10 second timeout for the HTTP access as hub load.
Now the device is back on the network, I'd like to get it back working in Habitat, but since the historical hub load is over 90%, it's not letting the driver even parse the reply, httpget is just throwing this exception. com.hubitat.app.exception.LimitExceededException
Iotawatt 622,421,011 92.7 54.364
I'm going to try to rewrite the driver to use an async http get to avoid this, but is there anyway to start afresh with this load count.
Code snippet is
def params = [
uri: "http://${deviceIP}/status?inputs=yes&outputs=yes",
contentType: "application/json",
requestContentType: "application/json",
timeout: 10
]
if (deviceIP) {
try{
log.debug "Sending to IoTaWatt = ${params}"
httpGet(params){response ->