Electrical device, comprising - an electrical consumer unit, - an electronic switch including an electronic switching element and a driver device controlling the electronic switching element, - a pulsed power supply having a power unit with the electronic switching element and configured to generate an electrical supply voltage or an electrical supply current for the electrical consumer unit from an electrical voltage based on an alternate powering on and off of the electronic switching element, the power unit having a current path through which an electrical current (i) flows associated with the electronic switching element of the electronic switch during operation of the power supply, - at least one pulse transformer having a primary side with a primary-side winding and at least one secondary side with at least one secondary-side winding and which is coupled with the power unit by its primary side in such a way that electrical current (i) associated with the electronic switching element of the electronic switch flows through the primary-side winding, characterised in that the pulse transformer is lightly loaded on its secondary side such that the secondary-side electrical voltage across the secondary-side winding is at least approximately proportional to the rate of change of the electrical current (i) associated with the electronic switching element of the electronic switch, - threshold comparator (30, 42) which is configured to compare the secondary-side electrical voltage or a filtered secondary-side electrical voltage (U2') that is generated by filtering with a reference voltage that is associated in particular with a time change of an electrical current which is associated with the fully functioning electronic switch and - an evaluation device coupled with the threshold comparator (30, 42) which evaluation device is configured to detect a potential defect of the electronic switch based on the comparison implemented by the threshold comparator (30, 42). - an electrical consumer unit, - an electronic switch including an electronic switching element and a driver device controlling the electronic switching element, - a pulsed power supply having a power unit with the electronic switching element and configured to generate an electrical supply voltage or an electrical supply current for the electrical consumer unit from an electrical voltage based on an alternate powering on and off of the electronic switching element, the power unit having a current path through which an electrical current (i) flows associated with the electronic switching element of the electronic switch during operation of the power supply, - at least one pulse transformer having a primary side with a primary-side winding and at least one secondary side with at least one secondary-side winding and which is coupled with the power unit by its primary side in such a way that electrical current (i) associated with the electronic switching element of the electronic switch flows through the primary-side winding, - threshold comparator (30, 42) which is configured to compare the secondary-side electrical voltage or a filtered secondary-side electrical voltage (U2') that is generated by filtering with a reference voltage that is associated in particular with a time change of an electrical current which is associated with the fully functioning electronic switch and - an evaluation device coupled with the threshold comparator (30, 42) which evaluation device is configured to detect a potential defect of the electronic switch based on the comparison implemented by the threshold comparator (30, 42).