A method of calibrating a magnetic field sensor device, the magnetic field sensor device coupled to a first surface of a circuit breaker box, the circuit breaker box overlying an electrical power infrastructure of a building, the electrical power infrastructure having a first phase branch and a second phase branch, the magnetic field sensor device comprising two or more magnetic field sensors, the method comprising:
- determining a first amplitude and a first phase angle of a first magnetic field in the two or more magnetic field sensors of the magnetic field sensor device;
- receiving communications that a first load is coupled to the first phase branch of the electrical power infrastructure;
- while the first load is coupled to the first phase branch, determining a second amplitude and a second phase angle of a second magnetic field in the two or more magnetic field sensors of the magnetic field sensor device;
- receiving communications that a second load is coupled to the second phase branch of the electrical power infrastructure;
- while the second load is coupled to the second phase branch, determining a third amplitude and a third phase angle of a third magnetic field in the two or more magnetic field sensors of the magnetic field sensor device;
- and
- determining one or more calibration coefficients for the magnetic field sensor device at least in part using the first amplitude and the first phase angle of the first magnetic field in the two or more magnetic field sensors, the second amplitude and the second phase angle of the second magnetic field in the two or more magnetic field sensors, and the third amplitude and the third phase angle of the third magnetic field in the two or more magnetic field sensors.