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

Had randomly another issue where an error came up and shutter was not closed by sun elevation. Just report it here for the sake of bugfixing. The automation is just awesome!

Trace: WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free

Config:

alias: CCA-2-Beschattung_Seite VDB_Schlafzimmer
description: erstellt 22.02.24
use_blueprint:
  path: hvorragend/cover_control_automation.yaml
  input:
    shading_forecast_sensor: weather.openweathermap
    blind: cover.s25_og_schlazi4_vdb_19
    auto_options:
      - auto_shading_enabled
      - auto_up_enabled
      - auto_down_enabled
      - auto_sun_enabled
    time_control: time_control_input
    cover_status_options: cover_helper_enabled
    drive_time: 60
    time_up_early: "08:00:00"
    time_up_early_non_workday: "10:00:00"
    time_up_late: "08:30:00"
    time_up_late_non_workday: "10:00:00"
    close_position: 0
    time_down_late: "23:00:00"
    time_down_late_non_workday: "23:00:00"
    workday_sensor: binary_sensor.workday_sensor
    position_tolerance: 1
    shading_position: 15
    shading_azimuth_start: 50
    shading_azimuth_end: 230
    shading_temperatur_sensor1: sensor.openweathermap_temperature
    shading_min_temperatur1: 15
    shading_weather_conditions:
      - sunny
      - partlycloudy
      - clear
    check_config: true
    auto_global_condition:
      - condition: state
        entity_id: input_boolean.automatisierung_rollade_sonnenschutz
        state: "on"
    shading_elevation_min: 0
    shading_forecast_temp: 21
    sun_elevation_up: -1.5
    sun_elevation_down: -2.6
    cover_status_helper: input_text.rolladen_status_inputhelper_vdb_schlafzimmer

I have this automation running, works fine for my shutters at my office, but my 14y and 17y old girls are not happy with it for the bedrooms. is there any change i can bypass the automation and set a time helper that opens the blinds on a given time, without the settings of CCA?

With the additional conditions, the additional actions and the force function, a lot should be possible.


I was looking at this, but it has to be a binary sensor. I know how to make a input_boolean, but don’t know how to make a binary senor?
I made an input_boolean switch, but can not link this into the sensor entity.

Your automation has stopped here:

- delay: "00:00:{{ range(drive_delay_fix|int(0), drive_delay_fix|int(0) + drive_delay_random|int(0) +1) | random }}"

with the error message:

'NoneType' object has no attribute 'done'"

I still have no idea what the problem is.
I will change the delay commands a bit. Then maybe it should be more bulletproof.

1 Like

What are you planning to do with the Workday sensor? This is a fixed integration in HA.

I have two suggestions for you.

  • At weekends and during vacations, the roller blind closes automatically but only opens manually. ← That’s how I implemented it.
    You just need to have an integrated calendar including vacations.
    Or
  • You use the resident mode. For example with a Zigbee switch or presence detector.

I’ve only really understood it now. I think so. Can’t you use the Schedule Helper?

At weekends and during vacations, the roller blind closes automatically but only opens manually. ← That’s how I implemented it.
You just need to have an integrated calendar including vacations.

that is what i want to do. how did u do that? i make a calendar (helper schedule)? or put something in my google calendar?

The vacations are saved in my Google calendar, the calendar is linked to HA. As soon as the word “vacation” appears, I trigger a switch helper with this blueprint (📆 Calendar Notifications & Actions - #3 by Blacky).

This switch is used in the CCA in the section “Additional Condition For Opening The Cover”, to block the opening.

Ok, i think i got it.
i made a blueprint with a calendar ‘Uitslapen’ with keyword ‘Uitslapen’.
the calendar is a google calendar linked in HA.

start action is a input boolean switch to set on.

the additional condition is to check if the input boolean switch is off.

i think this could do the trick.

2 Likes

I think that will be the solution to your problem. If your daughters also like to sleep in at the weekend, you could create a helper group with weekends and vacations. Just create a weekday sensor that only recognizes the weekends :slight_smile:

1 Like
alias: Kalender -> Uitslapen
description: ""
use_blueprint:
  path: Blackshome/calendar-notifications-and-actions.yaml
  input:
    calendar: calendar.uitslapen
    include_calendar_trigger: disable_key_word
    start_action_1:
      - service: input_boolean.turn_on
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.uitslapen
    end_action_1:
      - service: input_boolean.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: input_boolean.uitslapen

i had a problem yesterday. the cover opened on CCA-early time, without the calendar entry. can i see your yaml of the calendar-blueprint?

Hi! I just started with the config, but came to a problem (for me). It is the “Contact Sensor Entity” wich won’t work for me, cause I am using Homematic three-state-sensors [open/closed/tilted] for the balkony-doors (and even some windows).

Could it be an option for an enhancement to define a “contact sensor” or alternativly a “three-state-sensor”?

At the moment, my own automation works like:

if night-mode=true (= helper) and sensor switched from * to tilted then tilt-position
if night-mode=true (= helper) ans sensor switched from * to open then then open-position
if night-mode=true (= helper) and sensor switched from * to closed then closed-position

In this case the helper is needed to avoid drive-up / drive-down during daytime. I could do it without helper (reading current LUX), but this idea came later and -you could know- sometimes I’m a little bit to lazy^^ or “never change a running system”^^

Would be nice to be able to config this too :slight_smile:

Best regards
Sascha

HI guys,
at first…amazing blueprint :)…i use it to close/open my covers in the evening/morning in winter with sun elevation and time. But now in spring and later in autum it could be usefull that the covers should not close, depending on the forcast temperature!
For shading its possible to set the forcast temperatur to close the covers, if temp is higher than the given temp. But thats usesless for me i think!
So is it possible to implement an option to close the cover if the temp forcast in the night is below a given value (for example 7°C) ? Or is it still implimented and i oversee that feature?
thx for helping :slight_smile:

Hi, sorry for the late reply. There was a lot going on here over Easter :sweat_smile:

alias: Ferien Automatik
description: ""
use_blueprint:
  path: Blackshome/calendar-notifications-and-actions.yaml
  input:
    calendar: calendar.michaelloschmidt_googlemail_com
    calendar_trigger: Ferien
    start_action_1:
      - service: input_boolean.turn_on
        target:
          entity_id: input_boolean.ferien
        data: {}
    include_start_auto_actions:
      - enable_start_action_1
    include_end_auto_actions:
      - enable_end_action_1
    end_action_1:
      - service: input_boolean.turn_off
        target:
          entity_id: input_boolean.ferien
        data: {}

New update:

2024.04.05-01:
  - Update: Forecast Temperature below 0 possible
  - Delay lines minimally changed
  - Added: Allow shading to activate multiple times a day #44
  - Fixed: Ventilation is usually activated too often.
1 Like

Hello. I keep getting an ‘entity does not support this service’ error on one of my shades. It opens them fine in the morning (all SmartWings via zigbee) and around 9AM one shade (out of 4) goes down to 25%. They do not close at night. Here’s an error and the trace. Love the automation, but it’s hard for me to find the error.

Please update and try again. It looks like a very old version.
If the error still exists then please send me a trace.

1 Like

Hi, I have installed the latest version of the Blueprint. Unfortunately the shading function does not work, though all requirements are met. Here is the latest trace

1 Like