nayelyz
(SmartThings Developer Support)
4
The method he’s referring to is one that is available since the release of v42
and is included in the Edge reference docs:
https://developer-preview.smartthings.com/docs/edge-device-drivers/driver.html#driver-template-options
An example of this implementation is:
local function receive_events(driver, event_str)
log.trace("driver_lifecycle..."..event_str)
end
local hello_world_driver = Driver("customCapabilityCommunity", {
supported_capabilities = {
//...
},
discovery = discovery.handle_discovery,
lifecycle_handlers = {
//...
},
driver_lifecycle = receive_events,
capability_handlers = {
//...
}
})
It was mentioned in the release of the firmware v42
(last point):
We apologize if this wasn’t clear enough.
1 Like