**8.1 Discovery of water leaks and its prevention**

First step is deploying water sensors under every reasonable potential leak source and an automated master water valve sensor for the whole house, which now means the house is considered as an IoT.

In case the water sensor detects a leak of water (3), it sends an event to the hub (2), which triggers the "turn valve off" application. The home control application then sends a "turn off" command to all IoT (3) appliances defined as sensitive to water stopping and then sends the "turn off" command to the main water valve (1). An update message is sent via the messaging system to these appearing in the notification list (6). This setup helps defending against scenarios where the source of the water is from the house plumbing. The underlying configuration assumes an integration via messages and commands between the smart home and the IoT control system. It demonstrates the dependency and the resulting benefits of combining smart home and IoT.

#### **8.2 Smoke detectors**

Most houses already have the typical collection of smoke detectors (1), but there is no bridge to send data from the sensor to a smart home hub. Connecting these sensors to a smart home app (2), enables a comprehensive smoke detection system. It is further expanded to notify the elevator sensor to block the use of it due to fire condition (1), and so, it is even further expanded to any IoT sensor (3), who may be activated due to the detected smoke alert.

In [5] they designed a wireless sensor network for early detection of house fires. They simulated a fire in a smart home using the fire dynamics simulator and a language program. The simulation results showed that the system detects fire early.

**Figure 5.** *Advanced smart home implementations chart.*

#### **8.3 Incident management to control home appliances**

Consider the scenario where you leave home while some of the appliances are still on. In case your absence is long enough, some of the appliances may over heat and are about to blowout. To avoid such situations, we connect all IoT appliances' sensors to the home application (2), so that when all leave home it will automatically adjust all the appliances' sensors accordingly (3), to avoid damages. Note that the indication of an empty home is generated by the Smart Home application, while the "on" indication of the appliance, is generated by IoT. Hence, this scenario is possible due to the integration between smart home and IoT systems.
