I’ve check the log on my device and when a scene is execute there is always 2 commands sent to my device:
Date Source Type Name Value User Displayed Text
2017-12-30 5:26:57.158 PM EST
moments ago DEVICE level 50 Sink level is 50
2017-12-30 5:26:27.091 PM EST
moments ago DEVICE level 99 Sink level is 99
When a dim light is added to a scene, it adds an on/off status and I add a brightness setting to dim light.
My dimmer don’t seem to need an on/off cmd (that was the 99% in the log)
only a brightness level.
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
4
Very good analysis and I think you have determined the root cause.
I use Z-Wave dimmers and also experience inconsistent results from my Scenes… sometimes.
One characteristic of my dimmers is that if they are rapidly switched off and on, they will “forget” their proper dim level and come on at some random level… well; that’s because they fade on and fade off, and if interrupted during this fade on or fade off the preset level is lost.
I think this is most likely the problem caused with the implementation of Scenes: The dimmer is turned on while it is still brightening or vice versa. “Race condition”?
I don’t know if SmartThings will find an “easy” solution for this; i.e., it should be made an option in Scenes as to whether or not a scene item needs and “on/off” in addition to “setLevel” or not.