Modeling decentralized systems for energy savings based on detailed local thermal comfort calculations