Is the below code valid for Hubitat? It was in the def updated() method of a ST driver.
I am going through a dimmer switch driver from ST. I have it working fine in Hubitat and am now trying the understand the detail function of each line/command. It seems not to work but I would like to better understand.
it is not used internally by HE this formed a component to ST's healthCheck system.
checkInterval is not an attribute that's a part of any of HE's capabilities, nor is it used in any apps or within the system.
Personally I find no use for this particular data being published to the event stream in HE, if this value is of use explicitly within the driver, it's best to store the value in state.
If it serves no purpose within the driver, then delete the sendEvent line as well as the custom attribute entry in the definition section.