Skip to content

current_tilt_position error in roller blinds automations #284

@sotatech

Description

@sotatech

Hi,

Thank you for this fantastically versatile blueprint. One minor problem I have is that I'm getting a lot of errors in the logs:

Master Bedroom Cover Control Automation (CCA): Error in 'choose[6]' evaluation: In 'or' (item 1 of 2): In 'template' condition: UndefinedError: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'current_position' In 'or' (item 2 of 2): In 'template' condition: UndefinedError: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'current_tilt_position'

I have roller blinds installed, so there is no tilt function. Here is my automation:

alias: Master Bedroom Cover Control Automation (CCA)
description: ""
use_blueprint:
path: hvorragend/cover_control_automation.yaml
input:
blind: cover.master_bedroom_blind
time_up_early: "08:00:00"
time_up_early_non_workday: "08:30:00"
time_up_late: "09:00:00"
time_up_late_non_workday: "09:00:00"
time_down_early_non_workday: "17:00:00"
time_down_late_non_workday: "22:30:00"
workday_sensor: binary_sensor.workday_sensor
workday_sensor_tomorrow: binary_sensor.workday_tomorrow_sensor
open_position: 70
cover_status_options: cover_helper_enabled
cover_status_helper: input_text.master_bedroom_cover_status_helper
resident_config: []

I have a lot of blinds so these errors are constantly spamming the logs.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions