Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
basbruss committed Dec 5, 2023
1 parent 660ac8a commit 2adf193
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 5 deletions.
38 changes: 35 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,46 @@ Restart Home-Assistant and add the integration.

## Setup

Adaptive Cover supports (for now) three types of covers/blinds; Vertical and Horizontal and Venetian (Tilted) blinds.
Adaptive Cover supports (for now) three types of covers/blinds; `Vertical` and `Horizontal` and `Venetian (Tilted)` blinds.
Each type has its own specific parameters to setup a sensor. To setup the sensor you first need to find out the azimuth of the window(s). This can be done by finding your location on [Open Street Map Compass](https://osmcompass.com/).

### Simulation
## Strategy

This component supports two strategy modes: A `basic` mode and a `climate comfort/energy saving` mode that works with presence and temperature detection.

### Basic mode

This mode uses the calculated position when the sun is within the specified azimuth range of the window. Else it defaults to the default value or after sunset value depending on the time of day.

### Climate mode

This mode calculates the position based on extra parameters for presence, indoor temperature, minimal comfort temperature and maximum comfort temperature.
This mode is split up in two types of strategies.

#### No Presence

Providing daylight to the room is no objective if there is no presence.

##### Below minimal comfort temperature:

If the sun is above the horizon and the indoor temperature is below the minimal comfort temperature it opens the blind fully or tilt the slats to be parallel with the sun rays to allow for maximum solar radiation to heat up the room.

##### Above maximum comfort temperature:

The objective is to not heat up the room any further by blocking out all possible radiation. All blinds close fully to block out light.

If the indoor temperature is between both thresholds the position defaults to the set default value based on the time of day.

#### Presence

The objective is to reduce glare while providing daylight to the room. All calculation is done by the basic model for Horizontal and Vertical blinds.

Tilted blinds will only defect from the above approach if the inside temperature is above the maximum comfort temperature. Than the slats will be positioned at 45 degrees as this is [founded optimal](https://www.mdpi.com/1996-1073/13/7/1731).

### Simulation
![combined_simulation](custom_components/adaptive_cover/simulation/sim_plot.png)

### Blueprint

This integration provides the option to download a blueprint to control the covers automatically by the provide sensor.
By selecting the option the blueprints will be added to your local blueprints folder.
By selecting the option the blueprints will be added to your local blueprints folder.
6 changes: 4 additions & 2 deletions custom_components/adaptive_cover/calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class AdaptiveGeneralCover(ABC):
win_azi: int
h_def: int
sun_data: SunData = field(init=False)

def __post_init__(self):
"""Add solar data to dataset."""
self.sun_data = SunData(self.timezone, self.hass)
Expand Down Expand Up @@ -112,7 +113,7 @@ def calculate_percentage(self) -> int:


@dataclass
class NormalCoverState():
class NormalCoverState:
"""Compute state for normal operation."""

cover: AdaptiveGeneralCover
Expand Down Expand Up @@ -180,7 +181,8 @@ def normal_type_cover(self) -> int:
# glare does not matter
if (
self.climate_data.is_presence is False
and self.climate_data.temp is not None and self.cover.sol_elev > 0
and self.climate_data.temp is not None
and self.cover.sol_elev > 0
):
# allow maximum solar radiation
if self.climate_data.is_winter:
Expand Down

0 comments on commit 2adf193

Please sign in to comment.