Smart homes can be identified as homes which can satisfy the needs of the residences with the help of the modules used, making their lives easier and offering safer, more comfortable and more economical living. Smart homes can be built with wirings or wirelessly. However, in our world where technology is rapidly advancing, with the wireless devices replacing wired devices the smart homes too are being developed wirelessly. The smart home systems allow the user to manage all electronic and electric devices in the house. None the less, one of the most significant features of the smart home homes is that even if the user does not run the system at all, scenario configurations with a small artificial intelligence in the background run. The scenarios are part of the system where the user defines cases that can occur in their homes once and then it gives necessary warnings when the cases defined do occur. In this study creating these scenarios for the smart systems and using of them in the wireless sensor networks is explained. (C) 2015 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).