Kiwkset ZigBee Lock Integration

Jon, interesting that you had the programming for monitoring the lock state. I had been trying to do the same thing so that on my OmniTouch screen it would show the lock status. For some reason, using an object property it always shows as locked. Using flags, similar to your code above, I get 1 for locked and 0 for unlocked.
Any ideas on how to display the correct status?
Haiku obviously shows the correct state, so it must be possible
 
Jon, interesting that you had the programming for monitoring the lock state. I had been trying to do the same thing so that on my OmniTouch screen it would show the lock status. For some reason, using an object property it always shows as locked. Using flags, similar to your code above, I get 1 for locked and 0 for unlocked.
Any ideas on how to display the correct status?
Haiku obviously shows the correct state, so it must be possible
You can just reverse the flag setting in the code if you want it reversed. I'm using the flag to just show visually whether it is locked or unlocked. The actual value of the flag is reversed of what the lock status is. The lock status (through the SDK) reports 0 for locked and 1 for unlocked. However, because I set the flag when it is locked, the flag status shows 1.
 
Thanks, I was hoping to have an object panel say unlocked or locked. I might just use a status led icon instead which i use for my PIR's and reeds.
 
The battery powered devices aren't always "on" like the hard wired modules.
They get awakened by their parent modules.
I'd imagine entering a code directly in a lock and it transmitting to the HAI would be a faster comms path than the other way.

So if you entered the code to unlock the lock, the HAI could receive that fairly quickly and programmatically disarm (that's what it sounds like the OP wants).

Close, very close. The battery powered lock wakes up on its own (every 5 seconds) so see if its parent has any pending message for it. The parent has no control on how often or when the battery powered device wakes up. This is why a command from the Omni->Lock could take 5 seconds because it is waiting for the lock to wake up. If you manually change something on the lock itself (like use the keypad or turn the key) it will know to wake up immediately and report its status.

Ryan
 
Back
Top