temp_achieved(): check only sensors/heaters turned on.

Problem spotted, described in a helpful manner and over-fixed
by @zungmann. This fix picks up his basic idea and implements it
with already existing state properties.