Energy calculation serval devices (lights) gets a reset or strange value after reboot

Please format your pasted configuration correctly.