The “raw” Item should be linked to the Channel.
The “raw” Item should be a member of the Debounce Group.
The "debounced " Item should not be linked to anything. No channels, no follow profile, nothing. The only source of it’s state will come from the Debounce rule. If you need to cause the debounced value to be sent back out to another Channel, you can link the Item to a Channel but set the “command” option to “true”.
This version of the rule template was written in Nashorn JS so nothing else needs to be installed. If you are running this on OH 4, please use Debounce [4.0.0.0;5.0.9.9] instead. Note that if you remove the template and readd it after moving to OH 4 it will install this version. OH 4 requires the JS Scripting add-on to be installed but it also has a lot of error checking and if there is something wrong it will report it.