Mast head light used when under power (steaming) Is different than an anchor light and located on the mast in a different location.
View attachment 230502
NOTE: A sailboat operating under power at night - whether the sails are set, or not – is required to follow the same rules as a power boat, as outlined above, since they are no longer entitled to the sailboat's usual right of way privileges due to restricted maneuverability. For this reason, most sailboats will often comply with option 1 above, and will mount a masthead (or “steaming”) light on the front of the mast. Although called a “masthead” light, this light is not literally carried at the top of the sailboat's mast. Instead there are specific minimum height requirements for various length sailboats, which will be found in Annex I, Section 84 of the Navigation Rules and Regulations Handbook.
If you are thinking about a white light while sailing then this light is used at night and faces to the stern. Not forward as a steaming light.
Since the lights are used after sunset and before sunrise I am confused as to how a photo-diode is going to make your life easier regarding a steaming light.