In this paper we study the emotional interaction system on smart home in IoT. It can control the home appliances and communicate with users after analyzing the given emotions by text. The system with emotion is personalized,user-friendly, and can be able to achieve harmonious human-machine interaction. In future, some functions will be designed to cater to aged people and infants.