Continuous query to get monthly energy consumption

@Elisa_Scheer Check out this: Dump converted data to a new measurement? - #10 by philb

I posted this about a month ago. It seems similar to the problem you are trying to solve.