Count "on"-time of a binary-sensor

yep, that's covered here