Internet of Things Backed by Knowledge Management for Smart Home