Presence-Based Automation – Comfort, Security and Energy Savings

One of the important characteristics of an intelligent smart home is its ability to adapt its operation not only to predefined schedules, temperatures or other sensor data, but also to whether someone is currently at home.

In the Szélessáv SmartHome system, presence detection is performed by the OpenWrt router, while automatic switching operations are managed by our custom-developed JEK Presence Switch plugin for Domoticz.

The solution does not require a dedicated mobile application, GPS-based location tracking or an external cloud service. The system operates based on devices detected within the local network.

Presence-based smart home automation using an OpenWrt router and Domoticz

How Does Presence Detection Work?

Most of us carry our smartphones almost everywhere. When we arrive home, our phones automatically connect to the home Wi-Fi network. When we leave, this connection is lost.

The OpenWrt presence monitoring service determines the status of a configured presence group based on the availability of selected network devices.

Multiple devices, such as the smartphones of different family members, can be assigned to a single presence group.

This allows the system to respond not necessarily to the arrival or departure of an individual person, but, for example, to the arrival of the first family member or the departure of the last person from the home.

JEK Presence Switch – Automatic Device Control

The JEK Presence Switch plugin developed for Domoticz periodically queries the router's presence monitoring service and controls selected devices based on the information received.

Four independent groups of controlled devices can be configured:

The control system is not limited to a single predefined operation. It can be freely adapted to the requirements of a particular home, office or other building.

In automatic mode, the plugin periodically checks the status of the controlled devices and, when necessary, restores the settings assigned to the current presence or absence state.

Practical Applications

Automatic Energy Savings When Leaving Home

When the last family member leaves the home, the system can automatically switch off equipment that does not need to operate while the building is unoccupied.

Examples include:

This eliminates the need to manually check which devices have been left running every time we leave home and helps reduce unnecessary energy consumption.

Presence-Based Heating and Cooling

Our custom-developed DSVT intelligent heating and cooling controller can also use presence information provided by the OpenWrt router.

During absence, the system can apply more energy-efficient target temperatures and adjust the operating conditions for domestic hot water production.

When occupants return home, comfort settings can be restored automatically without requiring manual adjustments to thermostats or other control devices.

The extent of temperature adjustments should be adapted to the thermal inertia of the building and its heating system. With underfloor heating, for example, a short period of absence does not necessarily justify a significant reduction in the target temperature.

Related solution: DSVT – Intelligent Heating and Cooling Control

Presence-Based Automatic Shading

The ASC Automatic Shutter Controller can also take the presence or absence of occupants into account.

When someone is at home, greater priority can be given to individual comfort requirements. During absence, energy efficiency can take priority, for example by preventing overheating in summer or utilizing passive solar heat gains in winter.

Related solution: ASC – Automatic Shutter and Shading Control

Automatic Activation of Security Functions

Presence-based automation can also be used to operate supplementary home security functions.

When nobody is at home, the system can, for example:

When occupants return home, these supplementary functions can be automatically adjusted or disabled.

It is important to note that network-based presence detection does not replace a properly designed alarm system or other dedicated security equipment.

Comfort Functions When Arriving Home

The system can also automatically activate various comfort functions when occupants return home.

With appropriate additional automation rules, entrance or garden lighting can be switched on after dark, comfort settings can be restored, and functions required only when someone is at home can be enabled.

Multiple Independent Presence Groups

Multiple independent presence groups can be created within the OpenWrt presence monitoring service.

Separate groups can be configured for:

Multiple instances of the JEK Presence Switch plugin can be created within Domoticz, each monitoring a different presence group and controlling different devices.

This allows automation to adapt not only to the general occupancy of the building but also to the specific requirements of individual user groups.

Automatic, Manual and Off Operating Modes

The operation of the JEK Presence Switch can also be controlled through the Domoticz interface, allowing automatic presence-based control to be overridden or disabled whenever necessary.

This can be particularly useful when receiving guests, when someone leaves their smartphone at home, or when different operating conditions are temporarily required.

Limitations of Presence Detection

Network-based presence detection uses the presence of network devices to infer the presence of their users. It cannot therefore always accurately determine whether someone is physically present inside the building.

Incorrect presence information may result from a smartphone being left at home, Wi-Fi being disabled or a device running out of battery power.

Automation rules should therefore be configured so that incorrect presence information cannot result in dangerous or undesirable operation.

Local Operation Without Cloud Dependency

Presence-based automation in the Szélessáv SmartHome system operates entirely within the local network.

Presence detection and the associated local automations can remain operational even if the internet connection is temporarily unavailable, provided that the local network and the required devices are functioning.

Installation and System Requirements

The presence monitoring service and the JEK Presence Switch plugin are included in the Szélessáv SmartHome system. Both components are also independently available as open-source software.

The JEK Presence Switch plugin can also be used with other Domoticz installations, provided that our OpenWrt presence monitoring service is available on the network.

OpenWrt Presence Monitoring Service

https://github.com/szelessavalapitvany/openwrt-presence

Domoticz JEK Presence Switch Plugin

https://github.com/szelessavalapitvany/Domoticz-JEK-Presence-Switch

Detailed technical documentation, installation instructions and configuration options for the plugin are available on the following page:

JEK Presence Switch – Technical Documentation and Installation

Why Use Presence-Based Automation?

In a truly intelligent home, we should not have to manually adjust our devices every time we arrive or leave. Our home should adapt to us, rather than requiring us to adapt to our home.