ControlThink Forums

Share ideas. Get support. Meet new friends.
Welcome to ControlThink Forums Sign in | Join | Help
in Search

AllOn / AllOff

Last post 06-04-2008 3:13 PM by Chris Walker (CT). 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-04-2008 2:52 PM

    • MikeKade
    • Top 75 Contributor
    • Joined on 08-28-2007
    • Scottsdale, AZ
    • Posts 11

    AllOn / AllOff

    I noticed the AllOnEnable and Disable flags in the devices. WHen I set them, I assume that I can call ZWaveDevice.AllOn() in order to turn on all the devices with the flag set (?)

    I have not been able to get this to work. An Example:

    1. I have 90 devices

    2. I set the AllOnEnable to TRUE for 10 of the devices

    3. I issue a ZWaveDevice.AllOn()... Should I not see the 10 devices turn on? The only device that turns on is the one that I sent the AllOn() to.

    The same is true for the AllOff().

    Any suggestions?

     

  • 06-04-2008 3:13 PM In reply to

    Re: AllOn / AllOff

    MikeKade,

    You need to call the .AllOn() function on each device in the network.  If AllOn is enabled, it will turn on; otherwise, it won't.

    Here's some sample code:

    foreach (ZWaveDevice device in zwaveController.Devices)
    {
        device.AllOn();
    }

    Chris

Page 1 of 1 (2 items)