Item autoupdate=false for dynamically created channels in OH2 binding


I learned that in order to achieve a pushbutton functionality I need to create a Switch item with autoupdate=false.
What is the best way to do it in a OH2 binding, for dynamically created channel type and channel, for which items are created and linked automatically by the framework (simple mode)?
I noticed it is possible by creating an AutoUpdateBindingProvider, but is this still applicable to OH2?


I don’t think you can do this from PaperUI yet. You probably have to turn off simple mode and manually define the Item in a .items file.

Ok, but how can I do it programmatically in the binding code?