Cover Control Automation (CCA) - Intelligent Automation for Blinds, Awnings & Shutters | Calendar, Sun Shading, Force Functions

In general, the automation does not work well with my configuration.

Today, the automation triggered a shutdown, but all external venetian blinds stop at 91% opening. So they do not shut down completely.

Can anyone help me with the configuration?

Ultimately, I would like to implement the following:

The external venetian blinds should only be controlled for shading via the blueprint.

They should lower completely and move to an angle I specify when:
Outside temperature above 20 degrees
Indoor temperature above 22 degrees
The sun exceeds a certain azimuth (the height of the sun, i.e. the elevation, does not matter)
The lux number of my luxmeter sensor reads more than 50,0000

If all parameters are correct, it should still delay 5 minutes before triggering.

If all parameters no longer apply, the Venetian blind should open completely to 100% again.

I also have a virtual switch that triggers when the wind is too strong.
Then the Venetian blinds should also raise and stay up.

The external venetian blinds are not needed at night and should remain open.

If I make a manual change on a wall switch or via the app, this change should be applied for 30 minutes until the automation works independently again.

The external venetian blinds are open when the value on my relay is set to 100%.
It is closed when the relay shows 0%.

The angle for shading is 45%.


Generell funktioniert die Automation nicht gut mit meiner Konfiguration.

Heute hat die Automation zwar ein herunterfahren ausgelöst, allerdings stoppen alle Raffstore bei 91% Öffnungsgrad. Also sie fahren nicht komplett herunter.

Kann mir jemand bei der Konfiguration in gÀnze behilflich sein?

Letztlich möchte ich folgendes realisieren:

Die Raffstore sollen ausschließlich zur Verschattung ĂŒber die Blaupause gesteuert werden.

Sie sollen vollstÀndig herunterfahren und einen von mir bestimmten Winkel einnehmen wenn:
Außentemperatur ĂŒber 20 Grad
Innentemperatur ĂŒber 22 Grad
Die Sonnen einen bestimmten Azimuth ĂŒbersteigt (Die Sonnenhöhe also die Elevation ist dabei egal)
DIe Luxzahl meines Luxmeter sensor mehr als 50.0000 außgibt

Sollten alle Parameter zutreffen soll es dennoch 5 Minuten vor auslösen verzögern.

Treffen nicht mehr alle paramter zu, soll das Raffstore wieder komplett öffnen auf 100%

Weiter habe ich noch einen virtuellen Schalter, welche auslöst wenn der Wind zu stark ist.
Dann sollen die Raffstore ebenfalls hochfahren und oben bleiben.

Die Raffstore werden Nachts nicht benötigt und sollen offen bleiben.

Sollte ich an einem Wandtaster oder ĂŒber die App manuell eine Änderung vornehmen, soll diese 30 Minuten ĂŒbernommen werden, bis die Automation wieder selbstĂ€ndig arbeitet.

Die Raffstore sind offen wenn der Wert auf meines Relais auf 100%
Er ist geschlossen wenn das Relais 0% zeigt.

Der Winkel zum Verschatten ist 45%.


my yaml code:

alias: Raffstore KĂŒche - Cover Control Automation (CCA)
description: ""
use_blueprint:
  path: hvorragend/cover_control_automation.yaml
  input:
    blind: cover.shelly2pmg3_8cbfeaa9842c_cover_0
    auto_options:
      - auto_shading_enabled
      - auto_up_enabled
      - auto_down_enabled
    cover_status_options: cover_helper_enabled
    cover_status_helper: input_text.raffstore_kuche_helfer_cca_blueprint
    drive_time: 60
    open_tilt_position: 0
    close_tilt_position: 100
    shading_position: 0
    shading_tilt_position: 45
    time_control: time_control_disabled
    default_brightness_sensor: sensor.gw1100a_solar_lux
    sun_elevation_down: 56
    sun_elevation_up: 229
    brightness_time_duration: 300
    shading_brightness_sensor: sensor.gw1100a_solar_lux
    shading_sun_brightness_start: 50000
    shading_sun_brightness_end: 30000
    shading_azimuth_start: 56
    shading_azimuth_end: 229
    shading_elevation_min: 1
    shading_min_temperatur1: 20
    shading_temperatur_sensor2: sensor.gw1100a_outdoor_temperature
    shading_min_temperatur2: 0
    shading_forecast_type: weather_attributes
    shading_forecast_temp: 0
    shading_weather_conditions: []
    shading_waitingtime_start: 300
    shading_waitingtime_end: 1800
    ignore_after_manual_config:
      - ignore_shading_after_manual
      - ignore_ventilation_after_manual
      - ignore_closing_after_manual
      - ignore_opening_after_manual
    auto_up_force: input_boolean.virtueller_schalter_windgeschwindigkeit_oberhalb_stufe_1
    position_tolerance: 2
    auto_shading_end_condition:
      - type: is_temperature
        condition: device
        device_id: 02baf0a4245940a61c087e23bb9c5579
        entity_id: 02ee9bf1c5ed75b3b68a7fa8220368c6
        domain: sensor
        below: 22
    shading_temperatur_sensor1: sensor.shellyht_1dff9a_temperature
    reset_override_config: reset_timeout
    reset_override_timeout: 30
    open_position: 100
    drive_delay_fix: 5
    tilt_delay: 5
    auto_shading_end_action:
      - action: cover.open_cover
        metadata: {}
        data: {}
        target:
          entity_id: cover.shelly2pmg3_8cbfeaa9842c_cover_0
    reset_override_time: "00:00:00"
    brightness_down: 50000
    brightness_up: 30000

Screenshot of my complete UI Config:











@Herr.Vorragend

@Freacly: Sollte die MaximallÀnge vom Input-Helfer nicht 254 Zeichen anstatt 255 Zeichen sein? Ich weiss zwar nicht, ob das etwas ausmacht


Ich kann es mal anpassen, denke aber nicht, dass das der ausschlaggebende Punkt ist.

Was sagst du zur restlichen Konfiguration?
Passt das so? Denn funktionieren tut leider gar nichts.

Hello,

my blinds are opening and closing on the early times. But I want to use the elevation of the sun to open and close the blinds.
They should not open before 6:00 and should not close before 18:30. And then the elevation should trigger open/close, if it is dark outside

Can someone have a look at my trace? trace
Thanks a lot
JĂŒrgen

Once again, the blueprint was triggered but only the Venetian blind closed 9%.
I don’t understand where the error could be.
Can anyone help me?

I have uploaded the trace here.
Perhaps this will help, along with my screenshots of the configuration in the UI and the Yaml code i posted two days before Here.

@Herr.Vorragend

I have a question about the Cover Status helper: Do I need a separate file (entity) for each roller shutter or can I store the same file for each roller shutter?

You need a helper for every roller shutter

2 Likes

Hey there, I have some faulty Tuya modules, that behave a bit weird. If I set the cover position via the development tools, they won’t move. Most of them do, but some modules will not move at all. However, I noticed, that if I fire cover.set_cover_position several times, they will move to the correct position.

Would it be possible to add a retry and delay option to CCA, so one could tweak the automation? Then I could set the retry count and the delay between them. Around 30% of my covers won’t move with CCA at the moment.

Nice work! Thank you!

One question: I’m looking for a blueprint to controll lights. It needs to have the same kind of time configuration (erliest/latest) than CCA and it needs to have sun (rise/set) as a trigger. It should also be as easy to configure than CCA.

Anyone any ideas or other solutions?

Hi, could you please help me. What needs to be changed?

i would like the blinds are closing dynamical, means they should close every day later 
 based on sun, but latest at 10pm

thanks for support

alias: Rolladen Automatik Wohnzimmer TĂŒr (rechts)
description: ""
use_blueprint:
  path: hvorragend/cover_control_automation.yaml
  input:
    blind: cover.wz_rollo_rechts_tur
    auto_options:
      - auto_up_enabled
      - auto_down_enabled
      - auto_sun_enabled
    time_up_early: "07:30:00"
    time_up_early_non_workday: "08:00:00"
    time_up_late: "07:30:00"
    time_down_early: "22:00:00"
    time_down_early_non_workday: "22:00:00"
    sun_elevation_up: 3
    sun_elevation_down: -5

Hi Guys,

after updating the automation from 2024.08.03 to version 2024.12.20. I don’t get “Manual override” fully to work.

I tried to reconfigure the automation. That did not help.

I startet a completly new configuration for one shutter with also a new status helper. Also this does not work.

If i put “Manual override” - “Reset manual override” to “Reset after a timeout in minutes” it works. I put the time on 5 minutes for testing, and it resets every 5 minutes.

But if i put “Manual override” - “Reset manual override” to “Reset at a specified time” - e.g. 05:00:00 - it does nothing. No reset is happening.
I remember before in the older version, the automation even did write something on the status helper on the set time, even there was nothing manual to reset.

Any ideas ? Thank you in adavance
Bruce

First, thanks for the great blueprint!

I’m looking for a way to open a shade in the morning only to 10% if outside temperature is below 3°C and last nights forecast was snow. Temp above 3°C and no snow in the last nights forecast shoud open the shade fully.

Any tip how I can realize this?

Many thanks!

Hello everyone,
I discovered this great blueprint a few days ago and have been trying to integrate it as best as possible. First of all, I’m unfortunately not a home automation specialist yet.

I have the following problem:
I’ve activated the shading on four blinds.

In the bathroom and bedroom (which share a light sensor), the blinds go down and then go up again after a 300-second interval. If I click on “Prevent the cover from being shaded several times a day,” nothing happens at either window.
For the other two windows in the office, I have set everything identically to the first two. The light sensor is obviously different. There’s no shading there at all.

By the way, ventilation, opening, and closing all of them work without any problems. Of course, I also created a separate assistant for each roller shutter.

I shurly made a mistake somewhere, but what’s the question?
It would be great if you could help me.
If you need any further information, just ask.
I’m not that familiar with the topic yet



Thanxs
Patrick

Thanks for this blueprint. I am using it for Somfy IO solar screen without any problem, and I want to use it also for a RTS device, that only allow open/my/close action without position information. How to do this? Use “cover” template? Another template that use duration of closing/opening action? Thanks for any help. I was quite sure to have read something about this but cannot find it in this post


Hi together,
i have a question about a cover, which is located directly to east.
If the resident is in bed an is getting up late, and the sun brightness is higher than the shading brightness value, the sun elevation and azimuth is between the config settings and the latest opening time is over. In this case when the resident value is changing to off, the cover are opening, because the setting “Open the cover immediately when the sensor goes to ‘off/false’?” is enabled. But in this case, the cover are never changing to shading mode. If i do not enable the setting " Open the cover immediately when the sensor goes to ‘off/false’?", the cover are still closed until evening.

How did you handle this? Is my configuration wrong?
Thank you for some help!
Markus

I am also confused how the override reset works. I don’t want to allow manual override, it should correct it after 1 minute. But this happens almost never, but I don’t know what to troubleshoot.

My misunderstanding was that the override also is corrected outside the “automatic” settings, but it isn’t. Is it possible to implement this?

Hi everyone,

a bit of a HA newby here. I would like to start with a basic step of automating one of my covers based on the Aizmuth of the sun. Unfortunately, I did not get it to work so I just want to make sure that I followed all steps correctly:
(1) Selecting the cover entity of the respective cover
(2) Automation Options: Only enable “sun protection” automation
(3) In Sun Shading: Configure the relevant Aizmuth for my window (in my case 90-270°)

I did not include any temperature or weather information at this point to exclude potential error sources. However, my cover is not reacting to the automation yet even though the condition (Aizmuth) should be fullfilled.

Any tipps/hints?

Hello Hr.Vorragend

It can’t be said often enough, thank you for doing the work for us with the Blueprint. I am currently moving from FHEM / AutoShutterControl (ASC) to HA and have taken over many parameters, such as times, azimuth and positions from a running system.

The following actions already work in CCA:

  • Closing the blinds in the evening according to time or sun elevation, depending on whether someone is at home.
  • Shading
  • Ventilation

What does not work, however, is opening in the morning. Neither by time or by sun elevation. They simply remain closed.

I simply cannot find any error in the configuration.

Here ist an example, iÂŽm uing Homematic HmIP-BROLLÂŽs

description:
use_blueprint:
  path: hvorragend/cover_control_automation.yaml
  input:
    blind: cover.br_rollo
    auto_options:
      - auto_up_enabled
      - auto_down_enabled
      - auto_sun_enabled
      - auto_ventilate_enabled
      - auto_shading_enabled
    individual_config: []
    shading_position: 40
    ventilate_position: 20
    contact_window_opened: binary_sensor.turgriff_buro_offen
    contact_window_tilted: binary_sensor.turgriff_buro_gekippt
    open_tilt_position: 100
    cover_status_options: cover_helper_enabled
    cover_status_helper: input_text.cover_status_buro
    time_up_early: "06:10:00"
    time_up_early_non_workday: "08:30:00"
    time_up_late: "07:10:00"
    time_up_late_non_workday: "09:00:00"
    time_down_early: "20:00:00"
    time_down_early_non_workday: "22:00:00"
    time_down_late: "23:30:00"
    time_down_late_non_workday: "23:30:00"
    workday_sensor: binary_sensor.arbeitstage
    brightness_up: 10000
    brightness_down: 25000
    sun_elevation_down: -5
    sun_elevation_up: 1
    shading_brightness_sensor: sensor.ts_light_360
    shading_sun_brightness_end: 10000
    shading_sun_brightness_start: 25000
    shading_azimuth_start: 90
    shading_azimuth_end: 205
    shading_elevation_min: 15
    shading_temperatur_sensor1: sensor.netatmo_buero_temperatur
    shading_temperatur_sensor2: sensor.netatmo_terrasse_temperatur
    shading_forecast_sensor: weather.forecast_home
    shading_waitingtime_start: 600
    resident_config:
      - resident_shading_enabled
    check_config: true
    shading_min_temperatur1: 21
    drive_time: 25
    resident_sensor: binary_sensor.bewohner_riedberg
    shading_forecast_type: hourly
    shading_forecast_temp: 18
    auto_down_condition:
      - condition: state
        entity_id: binary_sensor.bewohner_riedberg
        state: "off"
    auto_global_condition:
      - condition: numeric_state
        entity_id: sensor.netatmo_terrasse_temperatur
        above: -1
    auto_shading_start_action:
      - action: notify.pushover
        metadata: {}
        data:
          message: aktiv
          title: shading BĂŒro
          target: Trinity
    close_tilt_position: 0
    ventilate_tilt_position: 20
    shading_tilt_position: 40
    shading_min_temperatur2: 21
    check_config_debuglevel: error

Perhaps my problem is a little bigger. It seems that the blinds are not opened at all with this configuration. Neither in the morning nor when shading out. Where have I made the mistake

Please show me a trace of a triggering.
I can then see why nothing happened.
I can’t see anything quickly.