1. A light-emitting system comprising: a light-emitting diode load; and a diagnostics history and power-management integrated circuit connected to the light-emitting diode load, the diagnostics history and power-management integrated circuit comprising: a power management circuit configured to control a supply of power to the light emitting diode load; a diagnostics detection circuit connected to the power management circuit and configured to record a set of diagnostics history data for an operation of the light emitting diode load, the set of diagnostics history data including diagnostics data for at least two sequential occurrences of a reoccurring fault condition, the set of diagnostics history data including indicators of a relative order of occurrence of a plurality of occurrences of a plurality of fault conditions; a non-volatile diagnostics history memory connected to the diagnostics detection circuit and configured to store the set of diagnostics history data; and an external interface connected to the non-volatile diagnostics history memory and configured to transfer externally the set of diagnostics history data stored in the non-volatile diagnostics history memory.