How can I make the notification lights flash occasionally instead of staying on constantly?
Try BLNControl Pro, provided your kernel supports BLN (BackLight Notification).

It has a schedule function that allows a user to disable BLN during the night or a specified period of time along with options to change blink rate as well as time-out of the backlight remaining on as well as a battery threshold beyond which BLNs won't be activated.