Hello!
I’ve used this post to get a rolling energy cost for my Ender 3 Pro 3D-printer.
https://community.home-assistant.io/t/solved-calculate-cost-for-individual-device-cost-kwh/523880
One thing I am looking for though is the possibility to add up that cost as long as the printer is running (which I have a sensor for). I’d like this so I can see how much each print costs in electricity.
If possible, it would be great to be able to see a sort of history for this as well in some way.
I am not great with templating and general calculations in HA, that’s why I am coming here.
What I have now, with help from the link:
-
sensor.accumulated_wattage_ender_3_pro
- A sensor for the accumulated wattage of the Ender 3 Pro (Reimann sum Integral) -
sensor.accumulated_kw_per_hour_ender_3_pro
- A sensor for accumulated kw per hour of the Ender 3 Pro (Utility Meter) -
sensor.electricity_price_address
- A current electricity cost sensor from Tibber integration -
sensor.cost_hourly_ender_3_pro
- A template sensor calculating the cost by multiplying current cost and accumulated kwh (Template Sensor)
I’d like an additional sensor (or whatever is required) to add together all the costs each hour as long as my input_select.ender_3_pro
is in “Printing”-mode. And also add the starting and ending-hours’ costs to the sum as well, so I can send that number with my notification that he print is done.
After the print is done or when I start another, the total cost should reset.
If you don’t understand the 3D-printing part, think of it like I would want the cost of each Washing Machine cycle and not just see the cost for each hour.
Lots of information here, hopefully someone understands what I want and if it is possible!
Thanks guys
Edit: fixed entity names to Preformatted-text