InventoCasa / ha-advanced-blueprints

Advanced Blueprints combined with pyscript for extra useful automations
166 stars 35 forks source link

pyscript: Track daily running time #34

Closed alistair23 closed 3 months ago

alistair23 commented 1 year ago

This is the first step in addressing https://github.com/InventoCasa/ha-advanced-blueprints/issues/32.

This patch adds support to monitor the total daily runtime of appliances and prints the information to the user.

Verpz commented 9 months ago

Would be cool if there was also a sensor to track this.

alistair23 commented 9 months ago

Would be cool if there was also a sensor to track this.

That would be cool! Any idea how to do that?

Verpz commented 9 months ago

Would be cool if there was also a sensor to track this.

That would be cool! Any idea how to do that?

History Stats

History stats has been working well for me! It is already built-in

alistair23 commented 9 months ago

The part I'm not sure how to do is expose it from pyscript

Kolbi commented 4 months ago

@InventoCasa did you had a chance to review this PR?

InventoCasa commented 3 months ago

Well, better late than never, right? @alistair23 Thanks for the PR! I reviewed it. I vow to do better with future PRs (in terms of processing time) ;)