Node-red flow -set timeout with js

with the help of Johannes (JGKK) I managed to use an enocean rocker 4 switch as a dimmer.
He did a perfect job!
Please have a look at this threat: