Smart Home applied to historic buildings. A real case study