☀️ Cover Control Automation (CCA) - a comprehensive and highly configurable roller blind blueprint

There is definitely something wrong with your helper.
CCA cannot read the content and therefore cannot determine the length.
Have you already waited for the next trigger after emptying the helper? If so, the helper should be refilled.

Please do not execute the automation manually. It only works with a trigger.

Not yet. I’ll give this a shot tomorrow. Thank you for the quick replies and great blueprint!

Hi. Thank you for your feedback.
Here’s the tracefile from this morning
https://www.dropbox.com/s/gatfwr9fta538r9/trace%20automation.rolldaden_fenster_wohnzimmer%202025-03-07T05_35_00.389270%2B00_00.json?dl=0

Just a quick one before I go to work:
Do you still have a trace from 06:30?

The helper tells me that the roller blind was already open at this time today.

Hi,
thanks for your fast reply.
Unfortunately, I only have a trace from 6:35…

Thanks for the hint to the status helper.
I think I made a mistake.
I’m using your blueprint for three covers in total.
But I was using the same status helper on two different covers by mistake.
I have generated a new status helper for the cover in quesiton.
So let’s see if that helped.

Thank you again. :+1:

Irrespective of this, your values for opening the blinds have not yet been reached.

The Sun Elevation was still at -4.5.
And the latest opening time had not yet been reached either.

So everything is actually correct.

I only read your whole answer after my last post.
Then we have the solution.

1 Like

Dear Community

I would like to configure/enable automatic sun protection / sunshade control.
As this seems fairly the most complicated part in CCA (at least for me) could you please post some examples and hints how you have done it? What is absolutely essential and what is nice to have. Preferable I would like to see how you did it with Venetian blinds andHMIP actuators (HmIP-FBL)

Many Thanks in advance.

Thanks for this blueprint - really neat solution but I have one question - how does Sun Shading works?


Automation only checks once azimuth start value == sun.sun or in time intervals, or everytime once sun shading brightness start value is > 8000 lx ?

1 Like

Thank you so much. I couldn’t figure out for months why I couldn’t set the max length in the helper.

@Herr.Vorragend
You should consider adding this important information as a prerequisite to the Cover Status Helper information where it currently says " Attention: You will need to manually create a input_text entity with a length of 254 chars for this." It would help other users like @Freacly and me to create the helper as needed. Thanks! :slight_smile:

1 Like

What do you mean exactly? As a prerequisite? Should I query this technically? Because it’s already in the text.

Many parameters for shading also execute a trigger. The blueprint then checks whether all conditions (regardless of the trigger) are valid.

Important information for numerical triggers in HA:
Once the threshold is exceeded, it is no longer triggered. It’s already in the blueprint somewhere else. I’ll make it more present at some point.

So: It is only triggered when the value exceeds or falls below the threshold. After that, you have to wait for other triggers.

Start with the mandatory fields first.

On the other hand: What sensors do you have? Everyone has it configured differently because there are also different requirements.

1 Like

Thanks for your answer. I have the following sensors:

  • “Default” Sun Sensor: sun.sun (Sun integration).
  • Brightness Sensor For Sun Shading: HmIP-SLO or HmIP-SWO-PL, although HmIP-SLO should be more accurate as it is a real Brightness Sensor and not as the HmIP-SWO-PL the Weather Station
  • Sun Shading Temperature Sensor 1 (eg. indoor): HmIP-WTH-1 in nearly all my rooms or also some Netatmo Indoor Modules
  • Sun Shading Temperature Sensor 2 (eg. outdoor): HmIP-SWO-PL or a Netatmo Outdoor Temperature sensor
  • Sun Shading (Forecast) Weather Sensor: Forecast by Met.no as HA integration
  • Sun Shading Weather Conditions: Forecast by Met.no as HA integration

Another question is, how do I configure shading when using “Homematic(IP) Local ‘Set cover combined position’” in Additional Actions :man_shrugging:

I mean you have to activate the advanced mode in your general user settings as mentioned here, before you are able set the max. length as shown here. Otherwise it does not provide the option to configure the max. length in the helper.

It’s an important prerequisite that probably other users than @Freacly and me won’t know of.

Hope that makes it clearer to you. Thanks again!

Hello
I have a problem where the cover won’t close after venting. Here’s my configuration.

alias: Cover Control Automation (CCA)
description: “”
use_blueprint:
path: hvorragend/cover_control_automation.yaml
input:
blind: cover.rollladen_buro_rolladen_buro
auto_options:
- auto_down_enabled
- auto_brightness_enabled
- auto_sun_enabled
- auto_ventilate_enabled
- auto_up_enabled
cover_status_options: cover_helper_enabled
time_up_early_non_workday: “07:00:00”
time_up_late_non_workday: “08:30:00”
time_up_late: “07:30:00”
time_down_early: “16:30:00”
time_down_early_non_workday: “16:00:00”
workday_sensor: binary_sensor.workday_sensor
check_config: true
default_brightness_sensor: sensor.dammerung_kombinationssensor
brightness_down: 12
brightness_up: 10
contact_window_tilted: binary_sensor.fenstergriff_buro_gekippt
contact_window_opened: binary_sensor.fenstergriff_buro_offen
auto_ventilate_options:
- ventilation_delay_enabled
- ventilation_if_lower_enabled
- ventilation_after_shading_end
shading_brightness_sensor: sensor.hmip_slo_000d60c9a67869_beleuchtungsstarke
shading_sun_brightness_end: 9974
shading_sun_brightness_start: 13000
shading_temperatur_sensor1: sensor.wandthermostat_ez_hmip_wandthermostat_ez_temperatur
shading_elevation_min: 25
shading_min_temperatur1: 22
shading_temperatur_sensor2: sensor.wetterstation_garten_temperatur
shading_min_temperatur2: 25
shading_forecast_sensor: weather.forecast_home
drive_delay_fix: 3
drive_delay_random: 8
auto_shading_end_condition:
- condition: state
entity_id: binary_sensor.raspberrymatic_sv_beschattung_auto
state: “off”
ventilate_position: 30
ventilate_tilt_position: 30
lockout_tilted_options:
open_tilt_position: 100
close_tilt_position: 0
shading_position: 50
cover_status_helper: input_text.h_rollladenstatus_buro
ignore_after_manual_config:
- ignore_ventilation_after_manual
- ignore_closing_after_manual
individual_config:
drive_time: 143

Other way around: the blind opens and then doesn’t close again until the end of the day.

Where it actually needs to stay closed (well shaded) until the sun has moved off the window at azimuth >= 101 or elevation >= 57, or something like that.

I can’t find a trace that seems to trigger the shading, there is one run just after midnight with an ID of t_shading_reset, then the next call is the 6am “Early On Workdays”, followed by the 8am “Late On Workdays” and at that point the blind is opened. The next thing that happens is the “t_shading_end_pending_5” when the sun hits the end point.

The best I can do is the 8am “Late On Workdays” trace. That seems to check for shading, decides that we aren’t and then triggers the open: trace automation.curtains_person1_s_curtains 2025-03-12T19_00_00.138744+00_00.json - Google Drive

@Herr.Vorragend would say, please send me a trace :wink:

Its a wild guess, your window contact sensor is a 3 way sensor? if yes, have you seen this?

It must be a binary two-way contact sensor. If a three-way sensor is available, it must be converted to a binary two-way sensor using a [template sensor](https://www.home-assistant.io/integrations/template/). See also the [following posts](https://community.home-assistant.io/t/cover-control-automation-cca-a-comprehensive-and-highly-configurable-roller-blind-blueprint/680539/593) in the forum.

**Important note:** Please do not enter the same sensor in both fields for the contact sensors. This does not work and leads to strange situations.

If i’m using the Force Down feature, how can I return back to normal operation. I don’t want necessarily to return to the previous value but to a freshly calculated state.
What would be the best way to achieve this?

Alternatively I thought about using Manual Override instead of Force Down to achieve the same. Is there a way to trigger Manual Override reset from outside the automation?

I read and searched quite a bit through this huge thread, but didn’t find an answer to my question. Sorry if it has been discussed before.

Hi all, maybe one can help

I have 3 roller blinds and it works perfect for months.

Now 1 Rollerblind goes up and down as expected.

The both others go only down in the evening but not up in the morning,

Deletion of scripts and new creation doesn’t help.
Also a copy of the working one and change of the entities brings no solution.
No one an idea?