Building electrical appliance control system applying Internet of Things technology