davglass/doorbot

health status

lucwuyts opened this issue · 1 comments

I don't think there is a health function.

This seems to work:

health(device, callback){
	validate_callback(callback);
	const url= `/doorbots/${device.id}/health?api_version=9&auth_token=${this.token}`;
	this.simpleRequest(url, 'GET' , callback);
}

Added in doorbot@5.0.3