In embodiments, the present invention may provide for a system of power management and control of an electrical facility, comprising the electrical facility that includes an electrical device, an internal power source, a connection to an external power source through an external power control device, a power source management facility, and a switch sense facility that senses the power control state of the external power control device, wherein the power source management facility controls the source of power being delivered to the electrical device based on the switch sense facility detecting at least one of the power control state of the external power control device and the presence of power being received from the external power control device. In embodiments, the electrical facility is a lighting facility and the electrical device is a lighting source, and where the lighting source may be an LED lighting source. The internal power source, the power source management facility, and the switch sense facility may be external to the lighting facility, and the like. The internal power source, the power source management facility, and the switch sense facility may be external to the electrical device. The power control state may be determined through a sensing of current in an electrical signal sent by the switch sense facility onto the input power connection. Sensing of current may utilize taking multiple samples, averaging, statistical determination, and the like, to determine measured current sense. The power control state may be determined through a sensing of reflections from an incident electrical pulse sent by the switch sense facility onto the input power connection. There may be an electrical coupling between the input power connection and the switch sense facility. The power source management facility may place the internal power source in a charge mode when there is power being received by the external power control device. The power source management facility may power the lighting source from the internal power source when the switch sense facility senses that the power control state of the external power control device is on and that there is no power being received by the lighting facility. The external power control device may be a device that is used to apply power to an electrical circuit. The external power control device may be a device that is used to apply power to a lighting circuit. The power control state may be an open switch or a closed switch. The power control state may be a partially on state from a dimmer device. The power control state may be determined from a threshold value, where the threshold value is predetermined, learned by the switch sense facility, and the like. The learning may be based on an electrical signal provided on the input power connection. The external power source may be AC power, DC power, and the like. The switch sense facility may sense the presence of power being received prior to the external power control device through a power sensing circuit in the external power control device. The power sensing circuit may insert impedance on the circuit that the switch sense facility may detect. The power source management facility may change the source of the power being used by the lighting facility based on the state of the power sensing circuit detected by the switch sense facility. The lighting facility may provide protection circuitry to protect against at least one of electrical transients and surges, where the protection may be to protect the switch sense facility.