I use 2 Items and a rule to do this: Ubiquiti Unifi Binding Feature Discussion
but it should be better with a JS xform