Linear Switch Not Updating UI

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Linear Switch Not Updating UI

Post by islipfd19 »

I've looked and read throughout this forum and found some similar discussion about my problem but none of which helps me find a solution. I'm currently using Linear switches, WS15Z-1 is the model number. I have the RazBerry connected to my 2GIG Go Control Panel as a secondary controller. I find that whenever a switch is manually turned on or off, or updated by the 2GIG Go Control panels software (alarm company interface), the switch status is not updated in Z-Way.

I've attempted to run this http request that I was able to coble together from the API:

Code: Select all

http://zwave-controller:8083/ZAutomation/api/v1/devices/ZWayVDev_6:0:37/command/update
but no luck. It recognizes the 'On' and 'Off' requests but not the 'Update' but if I manually click the 'Update' button on the Expert screen the UI updates. is this something that may have been missed or a bug in version 1.7.1?
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Linear Switch Not Updating UI

Post by PoltoS »

I suppose a switch has no command update. This needs to be fixed.

It does not update instantly probably due to RaZberry not being in the Assoc group for reports.
islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Re: Linear Switch Not Updating UI

Post by islipfd19 »

The switches do not display any info on associated groups. Is there a way I can configure a module to think they are in an associated group?

I don't believe these switches that I have support association.
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Linear Switch Not Updating UI

Post by pofs »

It is quite hard to find a specification for your device. Official manufacturer site seems to be currently unavailable.

But you can check a list of command classes for your device ("show interview results" in expert mode). If there's Association there, it is likely to support association groups.

Even if it does, you may still have two possible problems:
1. You don't know which group you need to include RaZberry into. There's currently no valid XML file for your device, so you need to get it from device documentation and go with expert commands.
2. Sometimes group for reports may include only one device (typically primary controller). So to include RaZberry, you'll need to exclude your primary controller.
islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Re: Linear Switch Not Updating UI

Post by islipfd19 »

I can force the 're-interview' under device configuration but I do not see anything under expert commands to do that. The only documentation on the switch refers to 'All On/All Off' commands, the configuration of the "night light" LED and to invert the switch paddles.

The documentation also states that it can work with other devices that have association but does not say that it provides the association ability.

This manual is what came with the switches: http://www.linearcorp.com/pdf/manuals/WS15Z1_manual.pdf

Basically, all I'd like to do is for a process of some kind to automatically check on the status of the switches; just as if I clicked the 'update' button myself. Do you have any insight to how I can add that to the custom.js file?

EDIT:
I just found some info, "Direct Associations Supported?: No, except with Accessory switch WT00Z-1" on http://shop.haworldonline.com/Linear-Z- ... -11243.htm

So my best option is to implement some type of "polling" or update request on a frequent basis for these switches.
islipfd19
Posts: 126
Joined: 07 Jul 2014 03:35

Re: Linear Switch Not Updating UI

Post by islipfd19 »

I was able to figure out the correct syntax to get the switch state. So, if the switch lacks the ability to send it's current state if activated by an "outside" source one can poll it on a periodic basis. The module I've uploaded can be found here. viewtopic.php?f=3424&t=20588
Post Reply