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

I have tried everything that I can think of to get this blueprint to work for me. It looks incredible, but I cannot get my iBlinds v3.1 (z-wave) to work with this script. It appears that all is working in traces, but no blind tilting ever happens. I did read that current_position attribute is required. All I have available is “current_tilt_position”. Would this cause the issue?

I have also selected the option “Prevent the use of ‘set_cover_position’ and ‘set_cover_tilt_position’ and only use the additional actions” due to the issue of the blueprint wanting to execute cover.set_cover_position rather than " cover.set_cover_tilt_position".

Would really like to get this blueprint working, it looks awesome! Thanks for any help!

oops… should have checked it more before posting… sorry!
Here is the right one: https://pastebin.com/raw/XD3kdDWT

Thanks again for troubleshooting this! :slight_smile:

I go to bed after sun go down. But I don’t want close my clover in this mode. But, I would like that my shutter close before sun go up.

I use shelly modules for shutters. On the other hand, for this specific case, it is a group of two shutters ! Maybe this is the problem?

Never mind, I figured it out. Had to create a cover.

Sorry for the late response. I have now solved it with a second automation system and a helper. In this automation, the roller shutter is moved to 50% at sun elevation -1.5 and then closed later. The whole thing only happens when the XMas helper is on and I have also set this helper in CCA under additional condition for closing the cover. This allows me to activate the helper during the Christmas period and only then are the specific shutters kept open and only closed completely later

I come back with some good news…it was the problem… it’s working if i dont’ use groups… Thanks !!

Hi. First thank you for this automation!

I am quite new to HA (moving from IP Symcon). I got basic things working and now want to configure my shutters that are from an knx integration.

With CCA opening and closing in the morning / evening works already. But I have problems getting ventilation working. I added a window contact entity and enabled ventilation.

But when I close the window the shutter does not open.
I have the position_status in my shutter.

This is my configuration.

id: '1731761454009'
alias: CCA - Büro
description: ''
use_blueprint:
  path: hvorragend/cover_control_automation.yaml
  input:
    blind: cover.buero_rollo_2
    auto_options:
      - auto_up_enabled
      - auto_ventilate_enabled
      - auto_down_enabled
    contact_window_opened: binary_sensor.buero_strasse_mk12
    lockout_tilted_options:
      - lockout_tilted_shading_start
      - lockout_tilted_closing
    auto_ventilate_options: []
    contact_delay_trigger: 1
    contact_delay_status: 1
    time_up_early: '14:39:00'
    time_up_early_non_workday: '14:39:00'
    time_down_early: '19:00:00'
    time_down_early_non_workday: '19:00:00'
    check_config: true
    check_config_debuglevel: debug
    time_up_late: '14:39:00'

Thank you for any help.

Good morning everyone!

I am trying to add a condition that means that if the boolean is activated, the stores no longer open, basically that all automation is disabled. I would like to avoid making another automaton that deactivates this one.

Is it possible to do it from the settings? I tried since the additional conditions but it doesn’t work.

Thank you for your help.

Sorry, it took me some time to get a log. I usually try to keep my automations working (for my family) and managing to let one not working and getting a trace was a bit tricky for me.
Here it is:

Hi, would it be possible that you share the yaml of this 2-Step-closing? :slight_smile:
I currently only have two separate automations (one closing normally during not-Christmas-time, and one staying open for much longer during Christmas-time)

I got a question on a “special” topic and perhaps you have an idea on it :slight_smile:

We have the problem, that our covers are freezing stuck, if it’s too cold, especially if it has been snowing (like currently :smiley: )

Major problem was the window in our bedroom, since the window is tilted open all night and the high humidity is freezing the whole cover. I solved this with a force open on “frost alarm” (and additional condition on closing).
That’s working fine.

Now to the topic, that I don’t get running:
The rest of the covers should NOT be completely opened when “frost alarm”, but only go to ventilation position (30%), so that they can’t freeze stuck at the bottom.
Also, when closing trigger is firing, and it’s freezing, the covers should only go to ventilation position. (Not staying completely open!)
And I don’t get that working :frowning:
I had the binary sensor “frost alarm” as the condition for “force ventilation”. But nothing happened and the covers were closed normally.

So question would be: is that possible in general? Is yes, what setup should I use?

Additional question: is “force ventilation” only possible on covers, that have ventilation enabled?

Every hint is appreciated :hugs:

PS: what I DID get running: when covers were closed, i opened the handle (trigger for ventilation). Cover started going up. And when I closed handle again, it STAYED in ventilation position! (Good!)
BUT that did NOT work on windows, that had “fully opening” setting instead of “tilted”… Here I am totally confused :smiley:

Hi @Herr.Vorragend

Thank you very much for this awesome blueprint. I am very happy with it. Only for one use-case I would like to know if you have a suggestion for me.

I am using shades in my home office to block light. Otherwise my computer screen would be quite hard to read. I setup the sun shading / protection features but I find them quite overwhelming config wise. There is so much (well thought!) stuff that can block the shading, even if I want it too.
Basically I want shading to occur if the brightness in my room is too high and the sun has the corresponding elevation/azimuth.

Do you have any suggestion on how to achieve this? Can I just leave every other option untouched/give them no entities, i.e. for the forcast? Does the blueprint only use the conditions configured then?

Thank you very much.

I got the blueprint finally working.

One problem remains however:

Lock out protection does not seems to work.
When I open the window is will move the cover to the open position. However when I now move the cover down manually it will do so and not move back to the open position. So it will lock me out.

Hi, I guess I got it working :smiley:
But the “force ventilate position” was not the right choice…
I now created helper-groups for all “normal” windows with “frost alert”+“standard window contact”. So if either is “on” and cover is currently closed, the cover is set to ventilation position (same as normal ventilation automation).

For doors with lockout protection (“standard window contact” used for “full open” automation) i ONLY set the “frost alert” as ventilation trigger.

That works like a charm especially since covers are also closed again if temperature rises above critical.
(At least I hope it works, since now the weather is warmer again and the trigger is “missing” :smiley: )

Salut,
Go to this Paramètre.

did you do thee sun elevation and full close in one automation or in two? can you share the yaml for that?

Yes, in one. Sure.

alias: Rolladen OG XMAS
description: XMAS Funktion, Wohnzimmer, Esszimmer, Flur schließen erst später
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.sun_solar_elevation
    below: -2
    id: Lichter ein
  - trigger: time
    at: "21:30:00"
    id: schliessen
conditions: []
actions:
  - choose:
      - conditions:
          - condition: and
            conditions:
              - condition: trigger
                id:
                  - schliessen
              - condition: state
                entity_id: input_boolean.xmas_aktiv
                state: "on"
        sequence:
          - action: cover.close_cover
            metadata: {}
            data: {}
            target:
              device_id:
                - 2ecd89ca8c97d9305598b9797dd90b66
                - b06fe34adec371c3fca76a1b34acb125
                - c0a0e38212cf68ffdfb52f2b66fec033
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.xmas_lichter
      - conditions:
          - condition: and
            conditions:
              - condition: trigger
                id:
                  - Lichter ein
              - condition: state
                entity_id: input_boolean.xmas_aktiv
                state: "on"
        sequence:
          - action: switch.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: switch.xmas_lichter
mode: single

Helper „input_boolean.xmas_aktiv“ is set under additional condition for closing the cover in cca. If this helper is true, the cover doesn‘t close with cca.
„switch.xmas_lichter“ is the helper for xmas lights and outlets

Edit: Sorry thats my new automation, because i decided to keep the cover completly open till 21:30 and not to close to maybe 40%. But thats easy to integrate if you want.
Simply add the covers with the desired height to the action where the lights are also switched on

Here I’m again.
I am experiencing several automations not working as expected. Despite the sun elevation is properly configured, and the values match, the automation does not execute.
Because HA blueprint debugging is so awful, I have no idea what is going wrong. Hope someone can help me here.
Here is a trace

Hi,
I have a problem with the ventilation mode.
The roller shutter moves correctly to the specified ventilation position when the window contact is opened.
But after closing the window contact, the shutter remains in the ventilation position. It is no longer closed.
Here is the yaml code for the roller shutter:

alias: "CCA: Küche"
description: ""
use_blueprint:
  path: hvorragend/cover_control_automation.yaml
  input:
    blind: cover.sht_kc
    auto_options:
      - auto_ventilate_enabled
    cover_status_options: cover_helper_enabled
    cover_status_helper: input_text.shutter_position_kitchen
    drive_time: 22
    ventilate_position: 10
    contact_window_tilted: binary_sensor.sc_kcs

and here is the code for the window contact:

- binary_sensor:
    - name: sc_kcs
      unique_id: sc_kcs
      device_class: window
      state: >
        {{ not is_state('sensor.hmip_srh_sc_kc', ['closed', 'tilted']) }}

What could be the reason for the roller shutter not closing?