Does a Set() require a Get()?

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
zigguratt
Posts: 3
Joined: 28 Aug 2015 16:35

Does a Set() require a Get()?

Post by zigguratt »

I'm controlling a Z-Wave lock, the Weiser Smartcode Deadbolt with the z-way software In an RPi2. I'm using

Code: Select all

/ZWaveAPI/Run/devices[3].DoorLock.Set(255)
to close the deadbolt. Up until recently that would update the value returned from

Code: Select all

/ZWaveAPI/Run/devices[3].DoorLock.data.mode.value
For some reason this no longer works. I'm finding I have to call

Code: Select all

/ZWaveAPI/Run/devices[3].DoorLock.Get()
to get the updated value. This is bad enough in itself, but now my system can't determine when someone has locked or unlocked the door manually, or auto-locked after 30 seconds.

Does anyone know what the issue might be? Or am I just imagining that it worked before? I'm sure it was, and I read somewhere that a Get() wasn't necessaary. I also noticed that the UI doesn't update the value for the lock unless I click the "Update" button. It also used to change when the lock was used manually.

Any ideas? I can provide more details when I get back home tonight if anyone need them.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Does a Set() require a Get()?

Post by PoltoS »

This means you lock does not push updates itself.
zigguratt
Posts: 3
Joined: 28 Aug 2015 16:35

Re: Does a Set() require a Get()?

Post by zigguratt »

It doesn't now, but it used to. That's why I can't understand why it's changed in the past little while. I wrote code around the lock updating the DoorLock.data.mode.value. I wouldn't have done that if it had never updated in the past.

By the way, Weiser is just the Canadian name for Kwikset locks. It's the equivalent of the Kwikset SmartCode 910 deadbolt.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Does a Set() require a Get()?

Post by PoltoS »

May be you deleted RaZberry from association group?

After doing Set() Z-Way always do Get(), that was always like that
zigguratt
Posts: 3
Joined: 28 Aug 2015 16:35

Re: Does a Set() require a Get()?

Post by zigguratt »

PoltoS wrote:May be you deleted RaZberry from association group?
I certainly didn't do that. I have no idea if it did it by itself, though. If it was deleted from the association group would I still be able to open/close the lock but it would fail to update?
PoltoS wrote:After doing Set() Z-Way always do Get(), that was always like that
That's good to know; I shouldn't have to do a Get(). But if I don't it never updates on its own, though it used to. So the Kwikset SmartCode deadbolt should be updating, right? It's not a matter of my lock not having that functionality.

I'm going to try excluding the lock then including it again, making sure that the interview completes as much as it can. Originally it didn't complete (I read that this is expected with locks using the security class). I forced the rest and all but two were successful. I can't remember which two at the moment (I'm not at home) but they weren't important ones.
Post Reply