Proper door lock support

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
User avatar
alexey.zimarev
Posts: 24
Joined: 16 Oct 2012 17:54

Proper door lock support

Post by alexey.zimarev »

I finally got the device installed and working, however to my disappointment there are some flaws in door locks support.
1) Cannot get sl_UserCode variable value from the lock
2) Cannot get and set time/date restrictions on user codes

Are there plans to implement these features? This is kind of a standard functionality for any controller that support door locks.
User avatar
alexey.zimarev
Posts: 24
Joined: 16 Oct 2012 17:54

I checked the log file for

Post by alexey.zimarev »

I checked the log file for messages when the lock gets locked and unlocked. There are two secure messages that are received, the first one sets open/close mode in command class 98, sets something in command class 152, where data.firstPart is set to many star characters (is it really so or just hidden from the log file?).

And then it gets another secure message and says
Trying to create command for unknown CC 0x71
Command Class 0x71 is not supported

I thought this might be some sort of the code message, however I checked with the normal door sensor and I see that it also sends 0x71 message and I get the same message in the log, now without "secure".

So I think class 152 might be the code, this data.firstPart, would be nice to clarify. And I still have no idea about the date/time limitation for codes.

Also when I use the blue UI to set the code, it only sets the code id 0, no matter what code id I choose. I can read this code with id 0 and for all other codes it says "server error" and in the log file I see "user code X is too high" where X is 1 or 2 although I just set the codes 1 and 2. Funny enough there's no option to set code with id zero also it is possible to get it and it is actually the only one that works.
User avatar
alexey.zimarev
Posts: 24
Joined: 16 Oct 2012 17:54

Actually I am checking the JS

Post by alexey.zimarev »

Actually I am checking the JS API now and it seems to be worse than I initially expected. Via the API nothing valuable is received when the lock is locked or unlocked using the keypad. Although the log file indicates a secure message is coming in and I can see this mysterious commandClasses.152.data.firstPart = ******* there plus I see commandClasses.98.outside mode changes to 0 or 255 depending on the action, the JSON I get contains none of those. When I lock or unlock using the UI, JSON indeed returns the outsideStatus back properly but this does not happen when the lock is operated using the keypad. And in any case there's no way to get the code ID, which has been entered on the keypad.

I have to say that Vera Lite is capable to do all of this without any problem.
User avatar
alexey.zimarev
Posts: 24
Joined: 16 Oct 2012 17:54

Further checking...

Post by alexey.zimarev »

Further checking...

I found that after receiving a frame with lock/unlock event, there's one more frame (I mentioned it in the first post) with 0x71 command class. The value there is
71 05 10 XX
where XX is the user code ID that was entered when locking/unlocking.

However, as I described, nothing of this is reported to the JS API. No lock status (0 or -1) even in the supported command class, not speaking of unsupported 0x71.

For me it is kind of a major flaw. I cannot any further with my solution on RaZberry and will get back to Vera until the API is fixed :(
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Almost all you want is

Post by PoltoS »

Almost all you want is implemented in our new v1.4-rc1 beta. Note that this is still a beta and it has some problems with other command classes. But Door Lock Logging (0x71) is supported, UserCode is also fixed and works. Even ScheduleEntryLock works, but still lacks a UI.

We are working on support of DoorLocks for next versions
User avatar
alexey.zimarev
Posts: 24
Joined: 16 Oct 2012 17:54

Cool

Post by alexey.zimarev »

Good news, thanks. I am not much interested in the UI since I plan to use V8 engine on the server side anyway. I also got issues with interviewing my locks, I have Poly Lock and Poly Pad. There's a lot going on in the log file but interview is reported as incomplete. Is it just because the device is unknown to you? I can send you any information you need to add support for these devices if you want.
User avatar
alexey.zimarev
Posts: 24
Joined: 16 Oct 2012 17:54

incomplete interview

Post by alexey.zimarev »

I also got some issues with interview processes. I guess this is due incomplete device support. I already mentioned that the manufacturer information interview goes actively in the log but nothing comes in the UI, I assume there are some unsupported bits that make this part incomplete. In addition battery status check is not working, I got this part incomplete as well and battery level in the UI shows 0%.
domatech
Posts: 12
Joined: 09 Dec 2013 12:41

Re: Proper door lock support

Post by domatech »

Hello all,

Any news about poly-locks ? i want to know if that work before i can buy a poly-lock for myself.

Regards.
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Proper door lock support

Post by pofs »

domatech wrote:Hello all,

Any news about poly-locks ? i want to know if that work before i can buy a poly-lock for myself.

Regards.
As far as I recall, topic starter was required to send his lock back to manufacturer to install a new firmware, because the original one was flawed. It was quite a time ago, so I think they've updated their locks already. It likely should work now.
Also we improved our security interview process a lot since that.

I don't know if he managed to get UserCode working. He'd better answer himself.
UserCode is also improved now, and I believe it should work.
Post Reply