Use history-graph in lovelace to show current month's data - Hours through current month?

I’m trying to make a graph that shows this months data for a sensor component. Since the history-graph card uses hours_to_show setting to control the amount of data displayed, how do I calculate the hours into the current month and use it to drive that value?

Specifically, I’m looking for:
(now() - beginning of month) = displayed as number of hours

1 Like