Welcome Guest ( Log In | Register )

Hey there! While you are enjoying browsing the site, why not take a few seconds to register for an even better experience! It's absolutely free and a painfree process!
Here are some of the benefits of registering: Registering is so easy and quick, we don't even require you to deal with those annoying CAPTCHA graphics! Register Now!
6 Pages V  « < 4 5 6  
Reply to this topicStart new topic
> Z-Wave Status using RZCOP/VRCOP help
etc6849
post Nov 17 2009, 05:20 PM
Post #76


Advanced Cocooner
***

Group: Registered
Posts: 319
Joined: 04.06.09
Member No.: 5965



Good news! PS works for single nodes! See the attached results. Note, I modified your code for OnChangeSceneID to run these tests to:

CODE
dim oMember, oDevice
dim sCmd: sCmd = "ON,UP"

if sysevent.newVal and this.SceneID > 0 then
    ' Set light level for each member
    for each oMember in this.GetObjectsByType(Schema.Modules.Leviton.Classes.SceneMember.Path, false)
        set oDevice = oMember.Device
        if oDevice.IsOfExplicitType(Schema.Modules.Leviton.Classes.Dimmer.Path) then ' Dimmer
            this.Parent.Parent.SendCommand ">N" & oDevice.NodeID & "L" & this.ConvertBrightness(oMember.Brightness) & ",UP", true
        else ' Switch
            if oMember.PowerState = false then sCmd = "OF,UP"
            this.Parent.Parent.SendCommand ">N" & oDevice.NodeID & sCmd, true
        end if
        this.Parent.Parent.SendCommand ">N" & oDevice.NodeID & "PS" & this.SceneID & ",255", true
        this.Programmed = now    
    next
end if

set oMember = nothing
set oDevice = nothing


And to this the second time. Note I appended "UP" to the PS command for this trial. I think it is needed so that all controllers know which nodes have a scene stored:

CODE
dim oMember, oDevice
dim sCmd: sCmd = "ON,UP"

if sysevent.newVal and this.SceneID > 0 then
    ' Set light level for each member
    for each oMember in this.GetObjectsByType(Schema.Modules.Leviton.Classes.SceneMember.Path, false)
        set oDevice = oMember.Device
        if oDevice.IsOfExplicitType(Schema.Modules.Leviton.Classes.Dimmer.Path) then ' Dimmer
            this.Parent.Parent.SendCommand ">N" & oDevice.NodeID & "L" & this.ConvertBrightness(oMember.Brightness) & ",UP", true
        else ' Switch
            if oMember.PowerState = false then sCmd = "OF,UP"
            this.Parent.Parent.SendCommand ">N" & oDevice.NodeID & sCmd, true
        end if
        this.Parent.Parent.SendCommand ">N" & oDevice.NodeID & "PS" & this.SceneID & ",255,UP", true
        this.Programmed = now    
    next
end if

set oMember = nothing
set oDevice = nothing

Attached File(s)
Attached File  PS_sent_to_each_node_test.txt ( 1.3K ) Number of downloads: 2
Attached File  similar_test_with_UP_appended_to_setScene.txt ( 2.1K ) Number of downloads: 2
 
Go to the top of the page
 
+Quote Post
123
post Nov 18 2009, 01:01 PM
Post #77


Cocoonut
****

Group: Registered
Posts: 1439
Joined: 01.09.06
From: Montreal, QC
Member No.: 1259



Thanks for carrying out all of the tests. If I can summarize your results:

Play a scene
">S1,255" will activate Scene 1 but only the devices listed in the last association list will play the scene. So if the last command had an association list containing ">N2,10,25", then only those devices will play scene 1 (assuming they have been programmed with scene 1 instructions).
The best way to play a scene is to ensure it includes its own association list. For example: ">N2,10,25S1,255". This is how BETA9-5 currently plays a scene.

Add a device to a scene
Devices can be individually added to a scene. This is how BETA 9-5 currently handles scene programming. However, you indicated it is better if each transmission includes the "UP" comamnd. The next posted release will include this modification.

Let's allow the driver to run for at least a week and see if any other tweaks are needed. We'll accumulate all of the modifications into the next release.

Go to the top of the page
 
+Quote Post
etc6849
post Yesterday, 04:29 PM
Post #78


Advanced Cocooner
***

Group: Registered
Posts: 319
Joined: 04.06.09
Member No.: 5965



What you said sounds correct. Anyways, here's the response from Leviton on fade rate:

The fade rate values will be entered in seconds for the scene commands with the VRC0P. All values between 0-127 will be measured in seconds after 127 there is a calculation in that takes place. This value can be adjusted up to three minutes for the VRC0P. The 255 default value will be the same as the default for the individual dimmers you are including into the scene.

Keith L. Culton

Technical Service Associate

T: 800-824-3005
F: 631-812-6762
kculton@leviton.com

Leviton Mfg. Co.
201 North Service Road
Melville, NY 11747
www.leviton.com

The maximum fade rate is three minutes which would be a value of 180.

Keith L. Culton

Technical Service Associate

T: 800-824-3005
F: 631-812-6762
kculton@leviton.com

Leviton Mfg. Co.
201 North Service Road
Melville, NY 11747
www.leviton.com
Go to the top of the page
 
+Quote Post

6 Pages V  « < 4 5 6
Reply to this topicStart new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Add to Google Lo-Fi Version Time is now: 20th November 2009 - 08:37 PM
Bridged By IpbWiki © GlobalSoft