Please follow Questions Guideline #11 by formatting your configuration code properly.
Using the for
configuration variable with attributes can be problematic, because they are not independently tracked. I would suggest you set up a Template sensor Helper to extract the current_temperature
attribute into it’s own entity.