How to acquire MQTT values given for each day of the month

On MQTT I have a topic like EnergyConsumptionCurrentMonth, which has subtopics 01, 02, 03 … for every day of the month. What is the proper/recommended way of turning those into template sensors, so that the day values can be displayed as a bar chart?

Hello user-0209,

Start here:

I have already configured a couple of MQTT datapoints with the help of the docs. What I’m after is a bar chart with values over the months (or hours) that don’t come from the statistics database but straight from MQTT. Is there a card that can visualize it that way? Or can statistics be faked with the help of a function? Or am I thinking too complicated?