To develop with Edge you don’t need the Developer Workspace, or an Organization registered.
The only things you need are:
- A compatible SmartThings Hub. The ones fully compatible so far are V2 and V3 Hubs (with firmware v43), Wi-Fi Hubs are currently receiving the firmware update that will make them compatible.
- Install the SmartThings CLI
In Edge, if you register for the default handlers of the capabilities, you don’t need the configure
function because it’s done automatically. If you want to override that config, you can define the doConfigure
lifecycle and define your own.
About the parse()
method, now, you can define Zigbee handlers for attributes
or clusters
, the first being more specific than the second one.
However, if you register to the defaults, messages are handled automatically as well.
There is a tutorial that can help you out:
Also, you can take a reference from the drivers released by SmartThings in this repo, there might be one that you could use only by adding your device’s fingerprint.
Do you know the corresponding commandID
and how it works? Could it be 0x00 - StartWarning?
Then, I don’t think “alarm” will work, you would need to use another capability, like “momentary” capability which allows you to push a button.
The function needed to receive the command is “push()”. For example:
//format for the Groovy handler
def push(){
zigbee.command(clusterID, commandID, optional_payload)
}
Yes, if you want to see the changes immediately, I don’t remember the exact time it took for the auto-refresh, I think 12 hours.
Since we were able to manipulate more of the device presentations, we noticed that issue, and the only way around it was creating a new DTH or waiting for the auto-refresh but the last one wasn’t so reliable. So, it’s not due to the migration from Groovy.