Termostate smart control