#History Stats or something else..

1 messages · Page 1 of 1 (latest)

silent ermine
#

what would be the best way to count events (state change) in a day?

ie; counting the number of time in/out of bed in a night using data from bed pressure sensor. resetting the counter each day. but preferably starting to count only after bedroom lights are off.

I was aiming for <history stats sensor> but it might not be the best way...

long heart
#

History stats seems to be an exact fit for that. Depending on your available sensors, you could create a template sensor to track when the bedroom lights were last off to use as your start

silent ermine
#

I already have a binary sensor that track my bed occupancy... so I'll check for template sensor of the bedroom lights.