Have a quick search for auxiliary power or similar. Some of those posts might give you some good ideas.
Not sure but might make a difference depending on year of bike. If new enough for auto headlights, I assume you may be able to take a feed off the sidelight as should switch off with ignition I think.
More knowledgable bods will be along shortly