... 33 errors for 259200 poll commands ...
For the beta version, we'll leave the Job counter in place but I can see that number growing to be very large!
... driver is smart enough to retry the command if there is an error..
Yes, up to three attempts are made and then the job is discarded and logged as an error. The number of attempts is adjustable (see "MaxRuns").
...can non vizia rf devices be grouped?
Currently, the driver has no way of knowing the device's brand (although there appears to be a way of determining it) so it doen't know what is, or is not, a Leviton Vizia RF device. In this driver, Groups are collections of lighting devices (of any brand).
Here's how I envisioned driver configuration:
- Run a Discovery to populate the Device folder with discovered Z-Wave devices.
- Go through the list of devices and, for each one that does not report its status, enable its "OneWay" property. Many switches, dimmers, and thermostats are one-way devices and must be polled.
- Now activate Polling by setting "PollingInterval" to 20 seconds or more. The interval should probably be increased if:
- You're not particulary concerned about the time lag between a device's state-change and Premise's awareness of the event.
- You have a lot of Z-Wave devices.
Currently, the driver initiates a Polling operation immediately after it completes a Discovery operation but only if the PollingInterval is zero (i.e. Polling is currently deactivated). The idea is that there's no need to explicitly request a Polling operation if it is already set to run periodically. The next scheduled polling cycle will take care of updating the discovered devices. This sounds reasonable but I now realize there's a flaw.
Immediately after Discovery, none of the discovered devices have had their "OneWay" flag enabled yet. Polling only handles devices whose "OneWay" flag is enabled so its'll just skip all the newly discovered devices. So automatically running polling right after discovery accomplishes nothing.
What I probably need to do is create a
special flavour of polling that occurs only after Discovery and
polls all devices regardless of the state of their OneWay flag.
...the driver assumes all group members will respond to the ",UP" portion of the command (ie is a vizia rf product) which may not always be true.
That is not my understanding of the "UP" command's purpose. The documentation indicates "UP" should be appended to all 'action' statements and its purpose is as follows:
After any command where changing the level or state of the load was sent, the sending node is
responsible for updating information for all other controllers controlling the same nodes.
My interpretation is that these 'other controllers' need not be from Leviton and must be informed of any state-changes to the nodes they control.