Record Pulses
Accurately see each pulse
Must run on battery
Count the number of pulses every x minutes Multiply by ZZZ factor to give kWh energy used during the xx minutes Calculate current power use Watt Possibly calculate dailiy energy conumption and reset at midnight BLE to reduce power consumption (no Wifi since it consumes too much power) Probably can't sleep because it needs to read the pulses, but perhaps there is a sleep mode for when BLE is off
LDR
ESP32, BLE
Battery
C++ Adruino Framework BTHome standard for broadcasting sensor data Other libraries