Tracking Heat Pump Energy Consumption and State

I recently installed a heat pump and have been using a HomeWizard Energy 3-phase meter to track its power consumption in kWh. The sensor provides detailed data on the heat pump’s state, such as whether it’s heating, cooling, or producing hot water. Now, I want to create a monthly counter that categorizes the kWh usage based on the heat pump’s state.

I’m thinking of using a conditional utility meter to achieve this, but I’m not entirely sure how to set it up. Does anyone have experience with this or know of a better approach? Any advice or suggestions would be greatly appreciated! :blush: