Again you might be better of posting on a mysql forum
Select sum(KWH_pro_Tag),
DATE_FORMAT(DAY, '%Y-%m) as DAY
from
(
SELECT
DATE_FORMAT(time, '%Y-%m-%d') AS DAY,
max(value) AS "KWH_pro_Tag"
FROM Item125
GROUP BY DATE_FORMAT(time, '%Y-%m-%d')
) mx
GROUP BY DATE_FORMAT(DAY, '%Y-%m')
ORDER BY DAY DESC