Button Controller Question

Question:

  1. I turn on a dimmer using button #1. The dimmer shows Switch:on, Level: 99. Great.
  2. I then try and execute a complete off with the following rule:

    That rule changes the level to 57, and leaves the switch on.
    Why does it do that?

Why are you turning off and then dimming to 0? The former is generally the best way to turn the device off. A set level to 0 normally does the same on most devices -- but in either case, just one or the other should be necessary. It's possible that doing the latter before the former is complete is causing some problems.

Have you tried just one of these actions alone? You can also test from the device detail page instead of a Button Rule.

If I turn off the dimmer switch programmatically, does that change the level to 0? If not, I have to change the level, anyway.

If you want to determine the on/off state of a device, you want to look at the switch attribute. The level attribute generally shows you the last known (when on) level of the device. A value of 0 is normally not something you will find for level, which generally ranges as a percent from 1-100 or sometimes (since this is what Z-Wave really does) 1-99.

If setLevel(0) works (and it normally does--just trying to rule out another problem above), it will likely just turn the device off -- with no change to level.

If you want to do a specific fade to off duration use setLevel, if you just want to turn it off with its default fade (if any) you can just use off. They should both result in the same outcome, dont use both.

Also, your stop changing command could be interfering with it. I suspect just the off would work without that but if you really need it in there try adding a 0.5s delay after the stop before turning off.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.