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

What you could also do: use the additional conditions to prevent the roller blind from being lowered. However, you then have to control the subsequent closing yourself using the force function. Not quite what you want, but a small workaround.

Is it safe to share the trace here directly?

Yes, why not? It only contains control data.
Alternatively, you can send me the link via chat.

Ok, and the one you need is the one that works correctly? Or the one that doesn’t work? (Right now, they all work because I changed them all)

Of course I need the trace of the misbehavior. If you like, then also a functioning process. But that’s not really necessary.

Hi,

I have a question about the phrase, “:small_red_triangle_down: Additional Condition For Closing The Cover.” I understand that this is an extra condition in addition to other conditions. And when it is false, does it mean it is not a blocking condition?

Could you confirm if this understanding is correct?

Because, when condition is false, my automation is blocked. I whould like use it for totally other condition.

Thank you!

I (re)checked the sun option, my bad! Now this condition is managed correctly, but shutters open and/or close but not both and it happens randomly. From the logs it seems it is the helper that is not set correctly (i.e. status is “closed” so the automation is not trying to actually close the shutter, whereas it is opened). Is there something specific to initialize / maintain the helper?

I would say, since it’s a condition (even an optionnal one) if it’s false then it’s blocking the scenario.

1 Like

That’s exactly how it is.

No, the helper is filled automatically.

Please show me a trace of a faulty shutter movement.

I send you the trace using PM, thanks for your precious help!

alias: Chambre parentale (CCA)
description: Cover Control Automation
use_blueprint:
  path: hvorragend/cover_control_automation.yaml
  input:
    blind: cover.shutter_chambre_parentale
    auto_options:
      - auto_sun_enabled
      - auto_down_enabled
    cover_status_helper: input_text.cca_helper_chambre_parentale
    time_control: time_control_disabled
    check_config: true
    sun_elevation_down: -6
    ignore_after_manual_config: []
    reset_override_config: reset_timeout
    reset_override_timeout: 240
    auto_global_condition:
      - condition: or
        conditions:
          - condition: state
            entity_id: input_select.mode_volet_chambre_parentale
            state: Automne
          - condition: state
            entity_id: input_select.mode_volet_chambre_parentale
            state: Hiver
        enabled: true
    individual_config: []
    auto_up_condition:
      - condition: and
        conditions:
          - condition: state
            entity_id: calendar.absences
            state: "on"
          - condition: sun
            after: sunrise
    auto_down_condition:
      - condition: and
        conditions:
          - condition: state
            entity_id: input_select.mode_volet_chambre_parentale
            state: Eté
          - condition: sun
            before: sunrise
            before_offset: "-30"
    sun_time_duration: 0
    cover_status_options: cover_helper_enabled

I would like close with the sun only in “Autome” / “Hiver” mode but also close the morning in “Eté” mode.

But auto_down_condition block all automation.

Your global condition must be removed. Especially if you only want to influence the closing process.

That makes no sense anyway. Because you check the same entity everywhere. Some option will always be negative.

You need to revise the down condition. Work with nested AND/OR conditions. Then it will work.

I also see that you have added a condition for opening the blind. But opening is not active at all in your options.

OK…

alias: Chambre parentale (CCA)
description: Cover Control Automation
use_blueprint:
  path: hvorragend/cover_control_automation.yaml
  input:
    blind: cover.shutter_chambre_parentale
    auto_options:
      - auto_sun_enabled
      - auto_down_enabled
      - auto_up_enabled
    cover_status_helper: input_text.cca_helper_chambre_parentale
    time_control: time_control_disabled
    check_config: true
    sun_elevation_down: -6
    ignore_after_manual_config: []
    reset_override_config: reset_timeout
    reset_override_timeout: 240
    auto_global_condition: []
    individual_config: []
    auto_up_condition:
      - condition: and
        conditions:
          - condition: state
            entity_id: calendar.absences
            state: "on"
        enabled: true
    auto_down_condition:
      - condition: or
        conditions:
          - condition: state
            entity_id: input_select.mode_volet_chambre_parentale
            state: Automne
          - condition: state
            entity_id: input_select.mode_volet_chambre_parentale
            state: Hiver
          - condition: state
            entity_id: calendar.absences
            state: "on"
        enabled: true
    sun_time_duration: 30
    cover_status_options: cover_helper_enabled
    sun_elevation_up: 6

Like that, I can :
Close with the sun on autumn and winter (Automne / Hiver mode).
And when I’m on vacation, cover automatically open/close.

But, how close my cover the summer, when I sleep with open cover and want close before the sunset ?

Phew, I don’t even know where to start. :grinning:

By the way, your blueprint is three months old. Please perform an update.

And then I see the following:
“current_position”: null,

This means that CCA does not know what your cover status is. Your covers do not appear to have the required attribute.

Not 3 months:
Version: 2024.09.25

I update.

I haven’t this code:

alias: Chambre parentale (CCA)
description: Cover Control Automation
use_blueprint:
  path: hvorragend/cover_control_automation.yaml
  input:
    blind: cover.shutter_chambre_parentale
    auto_options:
      - auto_sun_enabled
      - auto_down_enabled
      - auto_up_enabled
    cover_status_helper: input_text.cca_helper_chambre_parentale
    time_control: time_control_disabled
    check_config: true
    sun_elevation_down: -6
    ignore_after_manual_config: []
    reset_override_config: reset_timeout
    reset_override_timeout: 240
    auto_global_condition: []
    individual_config: []
    auto_up_condition:
      - condition: and
        conditions:
          - condition: state
            entity_id: calendar.absences
            state: "on"
        enabled: true
    auto_down_condition:
      - condition: or
        conditions:
          - condition: state
            entity_id: input_select.mode_volet_chambre_parentale
            state: Automne
          - condition: state
            entity_id: input_select.mode_volet_chambre_parentale
            state: Hiver
          - condition: state
            entity_id: calendar.absences
            state: "on"
        enabled: true
    sun_time_duration: 30
    cover_status_options: cover_helper_enabled
    sun_elevation_up: 6

No, I wasn’t referring to you.
I was quoting the post from thomas.engel.fr. He uses version 2024.08.03. And the latest CCA version is 2024.10.21.

1 Like

Excuse me. What exactly do you mean?
Do you want to sleep with the blind open? Or do you want to close the blind before sunset? You can’t do both, can you?

If you set Sun Elevation appropriately, the blind will only be closed at sunset anyway.

Everything else is the magic of YAML conditions.

I’m completely new to Home Assistant, having recently switched over from ioBroker. I’ve set up an automation using the Cover Control Automation (CCA) blueprint to control my blinds, which are connected through Homematic IP. The automation seems to trigger at the correct time, but the blinds don’t move at all when it runs.

When I control the blinds manually through Home Assistant, they work perfectly, so I know the connection and basic setup are correct. I’m not sure which part of the code I should post here to help troubleshoot this issue. Could someone point me in the right direction?

:slight_smile:

I want to sleep with the blind open AND I want to close the blind before sunset.

For stop closing on night, I use mode :

          - condition: state
            entity_id: input_select.mode_volet_chambre_parentale
            state: Automne
          - condition: state
            entity_id: input_select.mode_volet_chambre_parentale
            state: Hiver

But how close before the sunset ?