I have installed the latest OpenHAB 2.3 and the zwave-2.4.0-SNAPSHOT binding. The lock shows secure connection and I can add codes with HABMIN. I have been messing with curl commands and the API. I have set the status on/off for the lights and lock. How can I use curl to add and remove usercodes from the lock?
{
"statusInfo": {
"status": "ONLINE",
"statusDetail": "NONE"
},
"editable": true,
"label": "Lock",
"bridgeUID": "zwave:serial_zstick:1651146928c",
"configuration": {
"usercode_code_27": "",
"config_10_1": 3,
"usercode_code_28": "",
"usercode_code_29": "",
"doorlock_timeout": 0,
"group_1": [
"node_1"
],
"config_12_4": 499,
"config_16_1": 4,
"usercode_code_23": "",
"config_14_4": 166,
"usercode_code_24": "",
"config_18_1": 1,
"usercode_code_25": "",
"usercode_code_26": "",
"usercode_code_20": "",
"usercode_code_21": "",
"usercode_code_22": "",
"action_heal": false,
"config_7_1": 0,
"config_9_1": 3,
"config_3_1": -1,
"usercode_code_30": "",
"config_5_1": -1,
"binding_cmdrepollperiod": 1500,
"config_11_1": -1,
"usercode_label_3": "test",
"action_reinit": false,
"config_13_4": 223,
"config_15_1": 0,
"usercode_code_16": "",
"usercode_code_17": "",
"usercode_code_18": "",
"usercode_code_19": "",
"action_failed": false,
"action_remove": false,
"binding_pollperiod": 86400,
"usercode_code_7": "",
"usercode_code_8": "",
"usercode_code_9": "",
"usercode_code_3": "2A 2A 2A 2A 2A 2A 2A 2A 2A 2A",
"usercode_code_4": "",
"usercode_code_5": "",
"usercode_code_6": "",
"usercode_code_12": "",
"config_8_1": 3,
"usercode_code_13": "",
"config_6_4": 117440512,
"usercode_code_1": "2A 2A 2A 2A 2A 2A 2A 2A 2A 2A",
"usercode_code_14": "",
"usercode_code_2": "2A 2A 2A 2A 2A 2A 2A 2A 2A 2A",
"usercode_code_15": "",
"config_4_1": 0,
"usercode_code_10": "",
"node_id": 5,
"usercode_code_11": ""
},
"properties": {
"zwave_class_basic": "BASIC_TYPE_ROUTING_SLAVE",
"zwave_class_generic": "GENERIC_TYPE_ENTRY_CONTROL",
"zwave_neighbours": "1,3,4",
"zwave_frequent": "true",
"modelId": "BE469",
"zwave_version": "113.22",
"zwave_listening": "false",
"manufacturerId": "003B",
"manufacturerRef": "6341:5044",
"dbReference": "303",
"zwave_deviceid": "20548",
"zwave_nodeid": "5",
"zwave_lastheal": "2018-08-07T07:58:02Z",
"vendor": "Allegion",
"defaultAssociations": "1",
"zwave_routing": "true",
"zwave_beaming": "true",
"zwave_secure": "true",
"zwave_class_specific": "SPECIFIC_TYPE_SECURE_KEYPAD_DOOR_LOCK",
"zwave_manufacturer": "59",
"zwave_devicetype": "25409"
},
"UID": "zwave:device:1651146928c:node5",
"thingTypeUID": "zwave:schlage_be469_00_000",
"channels": [
{
"linkedItems": [
"ZWaveNode005_DoorLock"
],
"uid": "zwave:device:1651146928c:node5:lock_door",
"id": "lock_door",
"channelTypeUID": "zwave:lock_door",
"itemType": "Switch",
"kind": "STATE",
"label": "Door Lock",
"description": "Lock and unlock the door",
"defaultTags": [],
"properties": {
"binding:*:OnOffType": "COMMAND_CLASS_DOOR_LOCK"
},
"configuration": {}
},
{
"linkedItems": [],
"uid": "zwave:device:1651146928c:node5:alarm_raw",
"id": "alarm_raw",
"channelTypeUID": "zwave:alarm_raw",
"itemType": "String",
"kind": "STATE",
"label": "Alarm (raw)",
"description": "Provides alarm parameters as json string",
"defaultTags": [],
"properties": {
"binding:*:StringType": "COMMAND_CLASS_ALARM"
},
"configuration": {}
},
{
"linkedItems": [
"ZWaveNode005_BatteryLevel"
],
"uid": "zwave:device:1651146928c:node5:battery-level",
"id": "battery-level",
"channelTypeUID": "system:battery-level",
"itemType": "Number",
"kind": "STATE",
"label": "Battery Level",
"defaultTags": [],
"properties": {
"binding:*:PercentType": "COMMAND_CLASS_BATTERY"
},
"configuration": {}
}
]
}