Does sendEvent(name: "checkInterval" exist in Hubitat

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.

Thanks
John

	sendEvent(name: "checkInterval", value: 2 * 15 * 60 + 2 * 60, displayed: false, data: [protocol: "zwave", hubHardwareId: device.hub.hardwareID, offlinePingable: "1"])

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.

1 Like

@mike.maxwell

Thanks. I sort of figured that. It appears to me that the HE team as eliminated the less / not useful items from ST.

John

Keep the good, ditch the bad, try not to break anything in the process...

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.