How this behaves now
Daytime:
Coordinator polls the ECU every 5 minutes as before.
Regex pulls the NN.NN kWh from #total.
Nighttime (when sun.sun == below_horizon AND “suspend after sunset” is enabled in options):
No HTTP request is made.
The coordinator returns the last known value (final daily total).
If the integration is added at night (no previous value), it returns 0.0 until sunrise.
If the sun entity is missing, it just keeps polling (no behavior change), so it’s safe even in weird configs.