Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover states stays as Opening or Closing when using Set position #247

Open
tasomaniac opened this issue Oct 18, 2024 · 2 comments
Open

Cover states stays as Opening or Closing when using Set position #247

tasomaniac opened this issue Oct 18, 2024 · 2 comments

Comments

@tasomaniac
Copy link

This issue reopens home-assistant/core#98933 and home-assistant/core#105467 because they were closed before the fix can be merged. And based on the comment here the issue is reopened in this repository.

The problem

In ZHA: when using the set position feature to open or close a cover to a certain percentage, the cover state changes to Opening or Closing and never change to Open when the desired position has been reached.

Workaround

For those who are facing similar issue and if you find this thread, I was able to work around this issue by setting up the below automation. I realized that setting the position to the exact same value fixes the issue. The automation is triggered by opening or closing events and automatically fixes the state after 2 minutes timeout.

alias: Fix Blinds Stuck
triggers:
  - trigger: state
    entity_id:
      - cover.blind_2_cover
      - cover.blind_3_cover
      - cover.blind_4_cover
      - cover.blind_5_cover
    to: opening
    for:
      hours: 0
      minutes: 2
      seconds: 0
  - trigger: state
    entity_id:
      - cover.blind_2_cover
      - cover.blind_3_cover
      - cover.blind_4_cover
      - cover.blind_5_cover
    to: closing
    for:
      hours: 0
      minutes: 2
      seconds: 0
actions:
  - action: cover.set_cover_position
    target:
      entity_id: "{{ trigger.entity_id }}"
    data:
      position: "{{ state_attr('{{ trigger.entity_id }}', 'current_position') | int }}"
mode: single
@puddly
Copy link
Contributor

puddly commented Oct 18, 2024

Can you record a debug log of your shutter opening to a specific position, in addition to posting that shutter diagnostics JSON?

@tasomaniac
Copy link
Author

I will as soon as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants