Skip to content

Commit ae5b15b

Browse files
committed
SmartLock
Implemented new state "JAMMED" State "JAMMED" will be send when callback returned false
1 parent 2ae47cb commit ae5b15b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SinricProLock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bool SinricProLock::handleRequest(const char* deviceId, const char* action, Json
3838
if (actionString == "setLockState" && lockStateCallback) {
3939
bool lockState = request_value["state"]=="lock"?true:false;
4040
success = lockStateCallback(String(deviceId), lockState);
41-
response_value["state"] = lockState?"LOCKED":"UNLOCKED";
41+
response_value["state"] = success?lockState?"LOCKED":"UNLOCKED":"JAMMED";
4242
return success;
4343
}
4444
return success;

0 commit comments

Comments
 (0)