# Using transitionDuration with ZwaveJS node V11

**URL:** <https://discourse.nodered.org/t/using-transitionduration-with-zwavejs-node-v11/100873>\
**Category:** General\
**Tags:** zwave, zwavejs\
**Created:** [5 April 2026 21:28 UTC](https://discourse.nodered.org/t/using-transitionduration-with-zwavejs-node-v11/100873 "2026-04-05T21:28:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [5 April 2026 21:28 UTC](https://discourse.nodered.org/t/using-transitionduration-with-zwavejs-node-v11/100873/1 "2026-04-05T21:28:16Z")

</div>

hi @marcus-j-davies installed the new version changed my flows as instructed, All working very well !  
Thank you  
As a side note how do i use transitionduration?  
I was hoping to switch on a binary input then using the duration switch it off ? is this what it is designed for?  
Please forgive my question if it seems simple but its a learning curve for me.  
Thanks again for a wonderful node

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [5 April 2026 21:57 UTC](https://discourse.nodered.org/t/using-transitionduration-with-zwavejs-node-v11/100873/2 "2026-04-05T21:57:59Z")

</div>

Hi @magicman

`transitionDuration` needs to be supported by the target device for it to have an effect.  
it can be used to say change the value of a multilevel switch (dimmer), or an RGB controller (transition to a different colour)

```js
/* Dimming down a light (Multilevel Switch) over 3s */
const Node = 5;
const ValueID = {
    commandClass: 0x26,
    endpoint: 0,
    property: 'targetValue'
}
const SetValueOptions = {
    transitionDuration: '3s',
};

msg.payload = {
    cmd: {
        api: 'VALUE',
        method: 'setValue'
    },
    cmdProperties: {
        nodeId: Node,
        valueId: ValueID,
        value: 25, /* Say from its current value of 100 */
        setValueOptions: SetValueOptions
    }
}

```

I have never had a device that I can test this with - but it's a set value option in the Driver, that this is designed for.

It could work for a binary switch, as long as its supported by the device

**EDIT**  
The above is verbose of course, but the Factory Node has full support for applying options 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 July 2026 09:58 UTC](https://discourse.nodered.org/t/using-transitionduration-with-zwavejs-node-v11/100873/3 "2026-07-29T09:58:09Z")

</div>

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