What type of counter do I need?

Hi there,

please help me on the right track here since search did not bring up any useful for me.

I want to count:

  1. the amount of showers taken per day
  2. the amount of time per shower

Both displayed as an entity.

I have created a sensor via node-red giving me:

I was thinking to

  1. count the output if this sensor only when going from “nothing” to “=H: hot water active”
  2. count the amount of time the state of this sensor is “=H: hot water active”

I have trouble in finding the right helper and config of the helper. Since the output of my sensor is only a text “=H: hot water active” or else.

Thanks for any help

Have you looked at statistics sensors?

Think I got it based on:

Thanks, you pointed me in the right solution. Turned out I already had some utility meters made in the past.