
ASC (Automatic Shutter Controller) is designed to help maintain indoor temperature by automatically adjusting shutters and blinds, reducing heating and cooling demand while taking occupant comfort and the need for natural daylight into account.
The controller uses a configurable indoor temperature target range, set to 20–25 °C by default. It determines the desired shutter position based on indoor and outdoor temperatures, light intensity and, optionally, presence detection.
During cold weather, closing shutters can help reduce heat loss through windows, while opening them in sunshine allows the building to benefit from natural solar heat. In summer, blocking intense sunlight can help prevent rooms from overheating.
The controller therefore does more than react to the time of day or light intensity. It considers whether the room would benefit from solar heating, protection against heat gain, or additional natural daylight.
For example, if the indoor temperature exceeds the configured maximum and the outdoor air is even warmer, shading may be desirable during strong sunshine. However, if the indoor temperature is below the desired minimum and sufficient sunlight is available, opening the shutters may be beneficial.
The actual shutter position can be configured separately for every operating state, so the automation is not limited to a single predefined set of rules.
ASC supports different sensor configurations. Installing every type of sensor is not required.
Open-Meteo provides hourly forecast data, which the controller interpolates to estimate conditions at the current time. Forecast-based estimates are not as accurate as direct local measurements, especially for illuminance, which can vary significantly depending on building orientation, surrounding objects and sensor placement.
Examples of suitable DIY sensors include the D1 Mini Wi-Fi Temperature Sensor (Hungarian) and the D1 Mini DS18B20 Wi-Fi Light and Temperature Sensor (Hungarian).
The system uses two adjustable light thresholds to distinguish three illumination levels:
The strong-light threshold is not universal. Its appropriate value depends on window size, orientation, glazing, the thermal characteristics of the building and the location of the light sensor.
ASC can also use historical light measurements when determining its thresholds. Adjustable hysteresis helps prevent unnecessary shutter movements caused by small fluctuations in illuminance.
The central element of ASC is a control matrix containing 36 operating states. The controller selects the applicable state based on measured or estimated environmental conditions and applies the shutter position assigned to that state.
Each of these three temperature ranges contains 12 individually configurable shutter positions.
Each group of 12 settings is divided into two groups of six:
This distinction is important because the same sunlight conditions may require different shading strategies depending on whether the outdoor environment is warmer or colder than the room.
Each group of six settings is further divided into three illumination conditions: darkness, normal daylight and strong sunshine.
Each lighting condition can have different shutter positions depending on whether someone is present. For example, the controller can prioritize energy efficiency when nobody is home and allow more natural daylight when occupants are present.
3 indoor temperature ranges × 2 indoor/outdoor temperature relationships × 3 light intensity levels × 2 presence states = 36 operating states.
Each operating state can be assigned a shutter position between 0% and 100%, which the controller applies in automatic mode.
Energy efficiency and occupant comfort do not always require the same shutter position. During strong sunshine, fully closing shutters may reduce heat gain, but people inside the room may prefer more natural daylight.
Presence detection allows ASC to apply different shading settings under identical temperature and lighting conditions, depending on whether someone is at home.
Presence detection is optional but strongly recommended to take full advantage of the controller's capabilities. Our open-source OpenWrt Presence module provides occupancy information using Wi-Fi connections and network availability.
OpenWrt Presence – Source Code, Installation and Documentation on GitHub
A single ASC controller instance can manage multiple shutter switches, applying the same control logic and shutter position to all of them.
For rooms with different orientations or functions, creating separate controller instances is recommended. For example, a south-facing living room, an east-facing bedroom and a west-facing terrace experience different sunlight conditions and may require different light thresholds and shutter positions.
A single controller can also use multiple temperature or light sensors and incorporate their readings into its control decisions. Each controller instance can be configured independently.
In the Domoticz hardware configuration, sensor device IDs (IDX) are specified using the following prefixes:
The IDX values of the shutters to be controlled are entered separately as a comma-separated list.
For outdoor shading systems, ASC can respond to wind speed and vibration. A wind speed threshold can be configured, above which the controller initiates a protective closing action.
Vibration-based protection, using a dedicated sensor, is particularly useful for sensitive roller shades. When movement caused by wind gusts is detected, the controller can initiate a closing action and maintain the protective state for a configurable period.
The protective action must be adapted to the mechanical design of the particular shading system, because the safest position is not necessarily the same for every type of blind or shutter.
To make the 36-state control matrix easier to configure, we developed a dedicated HTML interface accessible from the Domoticz custom menu:
Custom / ASC_Shutter_Redony
The interface can be accessed within Domoticz using the following address: #/Custom/ASC_Shutter_Redony.
The interface displays current temperature and light measurements, the control matrix and the percentage-based shutter positions assigned to individual states.
The currently active state is highlighted, making it easy to understand which control rule is being applied. Configuration changes can be saved and will take effect during the next control cycle when automatic mode is enabled.
Temperature limits, light thresholds, hysteresis, wind and vibration protection, and automatic or manual shutter operation can also be configured through the control devices created by the plugin in Domoticz.
ASC runs within the Domoticz Python plugin system and does not require a manufacturer's cloud service or a subscription. With suitable local sensors, the controller can also operate without an internet connection. However, retrieving optional Open-Meteo weather forecasts requires internet access.
The project aims to provide a flexible, customizable and energy-efficient automation solution for motorized shutters, blinds and shading systems from different manufacturers, provided they can be controlled through Domoticz.