@jpage4500 Rule Machine can trigger based on attribute value changes, but as far as I know, it doesn't expose the previous values... which seems to be what your modification is adding to this app.
There was some discussion about exposing previous values but I'm not sure if anything came out from it.