Usage
The lamp has switch to turn it on/off and encoder with button for interacting with its menus.
How it was made.
Just a plastic box, foam board plate, lamp holder, relay module, wire with switch, screws/nuts, some hot glue and electronic modules.





Software
The following diagram represents the state machine used in device's program.

Check out github repo for sources.
Nice project (especially since it uses STM8 eForth :-) ).
A practical hint: you're using a PE or PP enclosure which is transparent to UV, and that might cause damage to the eyes.
It might be advisable to use some kind of paint/paper/whatever that either blocks UV or transforms it to a longer wavelength (some fluorescent stuff might look cool).