ha-measureit icon indicating copy to clipboard operation
ha-measureit copied to clipboard

Add a Service: Increment Counter

Open nicknol opened this issue 10 months ago • 2 comments

Checklist

  • [X] I have filled out the template to the best of my ability.
  • [X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • [X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

no problem - just a new feature

Describe the solution you'd like

A service that would increase a MeasureIt counter

Describe alternatives you've considered

At the moment a counter is increased when a status change happens. Which works!!

But in some cases I only have an automation that detects something countable, e.g. the power consumption of my coffee machine drops below a specified value, and that means one more cup of coffee has been brewed. Currently, the automation turns an input_boolean to on, waits for 5 seconds, and turns it off again. and MeasureIt counts the status change.

Additional context

And it's not only my coffee machine ;) I use a similar approach for my dish washer, my dryer, ...

nicknol avatar Apr 20 '24 06:04 nicknol