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

@Herr.Vorragend today the weather is sunny and warm, and the blueprint is working like clockwork. Everything is fine, even the shading is running smoothly.
Thank you for all your work and the excellent blueprint.

Hi,
i have one question:
Is it possible to set variables like:

time_up_early: “07:00:00”

through an helper entity?

I set it with an String but it doesn‘t work.

Thank you for your great work,
Chris

@Bostil Did you see my chat message? I think I have found the cause of your problem.

Thank you very much for your feedback.

I can also see in these trace files that the commands to control the roller blind have been executed.

1 Like

I understand the question only too well and I’ve been asked about it several times.

The only problem is that this option is not available without trickery.

See also here:

Regarding the clock time: You could also use the Schedule Helper. Very few CCA users do this

First thank you for this amazing blueprint!
Yesterday I tried it out. My goal was the automation to automatic shading. That mean only close the cover if the sun is shinig in the window. I don’t need a time.
My config:

alias: Rollo Beschattung Esszimmer
description: ""
use_blueprint:
  path: hvorragend/cover_control_automation.yaml
  input:
    auto_options:
      - auto_shading_enabled
    blind: cover.rollo_esszimmer
    cover_status_options: cover_helper_enabled
    cover_status_helper: input_text.rollo_esszimmer_helfer
    shading_position: 0
    individual_config:
      - allow_shading_multiple_times
    shading_azimuth_start: 171
    auto_shading_start_condition: []
    check_config: true

But in the trace I see:

platform: template
value_template: >-
  {% if time_down_late_non_workday == [] or workday_sensor == [] or
  (is_state(workday_sensor, 'on')) %}
    {{ is_time_field_enabled and now() >= today_at(time_down_late) }}
  {% else %}
    {{ is_time_field_enabled and now() >= today_at(time_down_late_non_workday) }}
  {% endif %}
id: t_bc_2

And another question why the rollo open:

platform: state
entity_id: cover.rollo_esszimmer
attribute: current_position
id: t_ma_1
for: '00:01:00'

hi guys,
i got some probs, maybe some missunderstoods! with the blueprint. I tried to close the covers only with sun elevation and azimuth. In this case i only had to activate sun and shading in the blueprint, correct?

I added the relevant information for the sun automation:

and for the shading:


I tried differnt values for the azimuth. But nothing happens! I think some of the parameters are wrong, but which??

Her is the trace for the blueprint: https://controlc.com/4f147ba1

Hi @Herr.Vorragend,
I have 12 Homematic blind and a automation for each of them. Some doesn´t close when End Elevation is reached.
Attached two traces where it hasn´t worked Today.
Share

New update:

2024.05.01-01:
  - Updated: Trigger shading at time_up_early and schedule helper state change, too
  - Fixed: Possibility to ignore actions after manual position changes
  - Added Feature: Force activation of sun shading #49
  - Fixed: Manual shutter movements after a core restart were not always recognised.
1 Like

Your Cover Status Helper says that you have neither opened nor closed the roller blinds. So no shutter movement is executed in the configuration. Current position was 1 and once 4.

You have also activated “prevent_default_cover_actions”. And I don’t recognize any other commands.

With the “old” version i have also still the issue that the shading seems not to be working.

@Herr.Vorragend Another point … I’m abusing since a few days the ventilation with a 35% height and the force-option to trigger in Home Assistant via a button a kind of “manual shading” without using any window-sensor. The position is higher than the usual shading. But this is something i can do without interfering with the classical shading ?

I see in rhe status helper manual true but no open or close true.
I use homematicip_local.set_cover_combined_position and set open as

and close as

Is it possible to force any open/close action no matter what the actual state is. My CCU seems to doesn‘t report the correct combined status for some blinds

Since the core update this morning, CCA no longer works for me. All threshold values for shading have been exceeded and nothing is happening.

Blueprint Config

id: '1706507921469'
alias: CCA Büro Mike
description: ''
use_blueprint:
  path: hvorragend/cover_control_automation.yaml
  input:
    shading_forecast_sensor: weather.nuernberg
    blind: cover.shellyplus2pm_3ce90e2f49dc
    time_up_early: '05:30:00'
    time_up_late: '07:30:00'
    closed_position: 31
    time_down_early: '22:00:00'
    time_down_late: '22:30:00'
    default_brightness_sensor: sensor.lichtsensor_buro_mike_illuminance_lux
    brightness_up: 180
    workday_sensor: binary_sensor.workday_sensor
    contact_sensor: binary_sensor.fenster
    ventilate_position: 31
    shading_cover_position: 50
    shading_azimuth_start: 76
    shading_azimuth_end: 176
    shading_temperatur_sensor1: sensor.hausfront_temperature
    shading_min_temperatur1: 15
    shading_brightness_sensor: sensor.lichtsensor_buro_mike_illuminance_lux
    shading_sun_brightness_start: 4500
    shading_sun_brightness_end: 180
    auto_options:
      - auto_up_enabled
      - auto_down_enabled
      - auto_brightness_enabled
      - auto_sun_enabled
      - auto_shading_enabled
    close_position: 31
    shading_position: 50
    time_down_early_non_workday: '22:00:00'
    cover_status_helper: input_text.cca_helper_buro_mike
    cover_status_options: cover_helper_enabled

The corresponding logbook entries are empty.

Downgrade didn’t help.

Looks like the workflow is running through after manually moving the cover. Strange.

I have some problems understanding this part:


All I want to do is to check the actual temperature and the position of the sun.
If the temperature is higher then 22°C and the sun reaches a certain position I want the shades to be closed.

Lets take Wismar es example:

If the Sun Attitude is 45.91° I want the shades to be closed.

But in the blueprint I only can read this:

Sun Elevation Value For Closing The Cover

The cover will be closed if the sun elevation is under this value

This sounds like the opposite for me?
I want to have them closed if the elevation value reaches 45.91°

Am I lost in translation? Is altitude the same as sun elevation?

There could be so many reasons for this, but I can’t recognise them. Do the other default settings such as elevation work for you?

It is necessary that either the times or the scheduler are configured. With the default settings, shading is automatic between 06:00:00 and 22:00:00.

Don’t be fooled by the traces. Of course, triggering is very frequent. But then nothing happens further down the line.

And the trigger ID “t_ma_1” stands for the recognition of manual journeys. Nothing from the blueprint was opened here. Something was opened a few seconds earlier.

Is there no real trace?
If not, then it was not triggered. Then please have a look here:

1 Like

What exactly are you planning to do?

Do you want to control the daily movements of the blinds via the sun values? In other words, opening and closing?

Then you also need to activate the following options:

  • Enable automatic cover opening
  • Enable automatic cover closing

The “Enable automatic shading” option is for sun protection on hot days, for example.

Your trace is not correct. This is not a trace that has reacted to a trigger.

Short answer: With the force functions, you disrupt almost everything. As long as the force boolean is active, nothing else will happen.

1 Like

Ah, now I can also see the commands (set_cover_combined_position) in the trace.

You could increase the tolerance value a little. But make sure that all position specifications do not overlap.

Otherwise you could use the “Ignore after manual position changes” options.