Monitoring Belgian smart meters P1 port using RRDTool

I've been writing the output of the P1 port from my smart meter for a while using this little script

Here are the daily results:

Notice the baseline load, this is the median of the consumption when solar panels were generating less than 10W. It roughly corresponds to the drain from the fridge, idle devices, chargers, boiler, inverter, sleeping computers and night lights.