You can buy a lot of equipment for your lights. Most known are probably the running lights as mounted
on US bikes.
Nowadays these are often combined with alarmunits. But you also can buy modules with several different
functions build in such
as hazard lights.
For those of you who wants to do a bit of experimenting yourself there are some electrical drawings
to start with at this site.