IKEA On/OFF connected through Deconz to work as a dimmer?

I’ve put the toggle code in a subflow. It’s explained here. https://nodered.org/docs/user-guide/editor/workspace/subflows