This capability has now been integrated into homeassistant >2023.2.1 by mkmer. That version handles the state names differntly and has seperate entities for the durration. I am sticking with this ...