We can use last_updated_timestamp for the compare since its always calculated when the state is created and comparing floats is much faster than datetime objects
We can use last_updated_timestamp for the compare since its always calculated when the state is created and comparing floats is much faster than datetime objects