Getting time a value changed -OpenHab3

You can do much the same thing in OH3 - but the Datetime handling in rules is different,you’d need something different to format instead of now.toString("HH:mm")

Alternatively, use a timestamp profile to automatically update an Item