I did not do the wiring myself, but my Denali D2s were installed like:
battery to harness to Denali off/on switch to motorcycle high low switch.
The result is I can turn them on and off, dim them, and they stay on when I switch to high beam.
Lights shown at 2:18.
Honda NC700x DCT Additions and modifications. Oklahoma Hank. - YouTube