Oh ok, shoot. I was hoping it took the return because right now I have these switches working (not as restful switches), but there’s a delay after I turn it on and when the interface shows it as on. That command outputs:
HTTP 1.1 200 OK
Content-Type: application/json
Content-Length: 293
Server: TornadoServer/3.2.2
{
"body": {
"switch_binary": {
"value": 1
}
},
"params": {},
"response": "0.00631",
"result": {
"updated": {
"switch_binary": {
"value": 1
}
}
},
"url": "http://ip:port/api/v1/nodes/14",
"url_path": "/api/v1/nodes/14"
Edit: sorry what I pasted above is after an update. This is from a straight request (pi@:~ $ curl http://ip:port/api/v1/nodes/14 - I keep getting an error posting from my phone…
"params": {},
"response": "0.00426",
"result": {
"association": {
"1": {
"command_list": {
"ccids": [
"basic_report",
"meter_report",
"23041"
]
},
"info": {
"profile": 1
},
"name": {
"name": "Lifeline"
},
"nodes": {
"maxnode": 5,
"nodes": [
1
]
}
}
},
"association_groupings": {
"groupings": 1
},
"basic": {
"value": 100
},
"configuration": {},
"health": {
"command_ack_time": [
0.031056767471502055,
"s",
"green"
],
"command_error_rate": [
1.1590663783732357e-71,
"%",
"green"
],
"command_response_time": [
0.017089494869207245,
"s",
"green"
],
"commands_per_minute": [
11.109367326277257,
"",
"green"
],
"log": 0,
"report_dup_rate": [
47.4614689360484,
"%",
"red"
],
"reports_per_hour": [
51.66559237199424,
"",
"green"
],
"response_dup_rate": [
10.653911844376227,
"%",
"red"
],
"response_error_rate": [
0.0,
"%",
"green"
],
"response_success_rate": [
100.02079381219863,
"%",
"green"
]
},
"ident": {
"address": "0:14",
"name": "Living Room - Left"
},
"manufacturer_specific": {
"manufacturer_id": "zooz",
"product_id": 13,
"product_type_id": 257
},
"meter": {
"A": {
"meter": "electric",
"precision": 3,
"rate": "import",
"scale": "A",
"size": 4,
"value": 0.114
},
"V": {
"meter": "electric",
"precision": 3,
"rate": "import",
"scale": "V",
"size": 4,
"value": 124.63
},
"W": {
"meter": "electric",
"precision": 3,
"rate": "import",
"scale": "W",
"size": 4,
"value": 9.348
},
"kWh": {
"meter": "electric",
"precision": 3,
"rate": "import",
"scale": "kWh",
"size": 4,
"value": 0.474
}
},
"meter_supported": {
"meter": "electric",
"reset": 1,
"scales": [
"kWh",
"W",
"V",
"A"
]
},
"node_info": {
"cmdclasses": [
"zwaveplus_info",
"switch_binary",
"meter",
"switch_all",
"scene_actuator_conf",
"scene_activation",
"configuration",
"association",
"association_grp_info",
"manufacturer_specific",
"version",
"security",
"firmware_update_md",
"powerlevel",
"device_reset_locally"
],
"controlclasses": []
},
"protocol": {
"basic_type": "routing_slave",
"cap": 83,
"generic_type": "switch_binary",
"listening": true,
"security": 28,
"sensor1000": false,
"sensor250": false,
"specific_type": "power_switch_binary"
},
"switch_binary": {
"value": true
},
"version": {
"application": 1,
"application_subversion": 3,
"library": "slave_enhanced",
"protocol": 4,
"protocol_subversion": 38
},
"version_command": {
"association": {
"version": 2
},
"association_grp_info": {
"version": 1
},
"configuration": {
"version": 1
},
"device_reset_locally": {
"version": 1
},
"firmware_update_md": {
"version": 2
},
"manufacturer_specific": {
"version": 2
},
"meter": {
"version": 3
},
"powerlevel": {
"version": 1
},
"scene_activation": {
"version": 1
},
"scene_actuator_conf": {
"version": 1
},
"security": {
"version": 1
},
"switch_all": {
"version": 1
},
"switch_binary": {
"version": 1
},
"version": {
"version": 2
},
"zwaveplus_info": {
"version": 2
}
}
},
"url": "http://ip:port/api/v1/nodes/14",
"url_path": "/api/v1/nodes/14"