Central scene - keyAttribute?
Central scene - keyAttribute?
Will there be support for the keyAttribute for the central scene command class? This is very useful for switches that support it to distinguish single, double and triple tap. Doesn't seem like it would be too hard to pass this into the buttons that are created.
Re: Central scene - keyAttribute?
Hi jswim788,
v2.3.0 does support Centralscene v3 (and minor) including currently defined keyAttributes by default.
This was implemented with new virtual device type sensorDiscrete
Following keyAttributes are supported:
You can also have a look at Sigmas current CommandClass spec (CentralScene version 3):
http://z-wave.sigmadesigns.com/wp-conte ... on-A-M.pdf (~ p .153)
At the moment this new vDev type can be used with If > Then app (more implementations will follow)
Virtual device widget (Smart Home UI):
Virtual device object:
The discreteStates object is optional. We use it to be able to overide default vDev view and to have more known information about vDev states used in apps in future.
The action is described with a two-digit value within the vDev metrics.level parameter: The first digit is the button/scene number, the second digit points to the action/keyAttribute of this button/scene (0=short press, 1=release, 2=hold, 3=short press two times, 4 = short press three times, and so on. Examples: Double Click button 2 => 23, Single Click button 1 = 10)
A similar description you'll find in the If > Then app.
v2.3.0 does support Centralscene v3 (and minor) including currently defined keyAttributes by default.
This was implemented with new virtual device type sensorDiscrete
Following keyAttributes are supported:
You can also have a look at Sigmas current CommandClass spec (CentralScene version 3):
http://z-wave.sigmadesigns.com/wp-conte ... on-A-M.pdf (~ p .153)
At the moment this new vDev type can be used with If > Then app (more implementations will follow)
Virtual device widget (Smart Home UI):
Virtual device object:
Code: Select all
{
"creationTime": 1485873126,
"creatorId": 1,
"customIcons": {},
"deviceType": "sensorDiscrete",
"h": 2090092667,
"hasHistory": false,
"id": "ZWayVDev_zway_13-0-91-DS",
"location": 0,
"metrics": {
"probeTitle": "Control",
"icon": "gesture",
"level": 0,
"title": "NodOn Wall Switch (#13)",
"state": "press",
"currentScene": 0,
"discreteStates": {
"10": {
"cnt": "1",
"action": "press",
"type": "B"
},
"11": {
"cnt": "1",
"action": "release",
"type": "B"
},
"12": {
"cnt": "1",
"action": "hold",
"type": "B"
},
"13": {
"cnt": "2",
"action": "press",
"type": "B"
},
"20": {
"cnt": "1",
"action": "press",
"type": "B"
},
"21": {
"cnt": "1",
"action": "release",
"type": "B"
},
"22": {
"cnt": "1",
"action": "hold",
"type": "B"
},
"23": {
"cnt": "2",
"action": "press",
"type": "B"
},
"30": {
"cnt": "1",
"action": "press",
"type": "B"
},
"31": {
"cnt": "1",
"action": "release",
"type": "B"
},
"32": {
"cnt": "1",
"action": "hold",
"type": "B"
},
"33": {
"cnt": "2",
"action": "press",
"type": "B"
},
"40": {
"cnt": "1",
"action": "press",
"type": "B"
},
"41": {
"cnt": "1",
"action": "release",
"type": "B"
},
"42": {
"cnt": "1",
"action": "hold",
"type": "B"
},
"43": {
"cnt": "2",
"action": "press",
"type": "B"
}
},
"keyAttribute": 0,
"maxScenes": 4,
"cnt": 1,
"type": "B"
}
The action is described with a two-digit value within the vDev metrics.level parameter: The first digit is the button/scene number, the second digit points to the action/keyAttribute of this button/scene (0=short press, 1=release, 2=hold, 3=short press two times, 4 = short press three times, and so on. Examples: Double Click button 2 => 23, Single Click button 1 = 10)
A similar description you'll find in the If > Then app.
Re: Central scene - keyAttribute?
This looks very good! thank you. I will try it out.