ZHA - Automatically calibrate Zigbee covers

:robot::window: ZHA - Automatically calibrate Zigbee covers

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Github Link Click Here

:warning:You must be on Home Assistant Version 2024.10 or later.

This blueprint allows for automatic calibration for Zigbe covers (only tested for TS130F) without the need to calculate open/close times or manually issue Zigbee Cluster Commands.
It requires to have a mobile_app integration to send notifications.

I was having a hard time calibrating my covers, and saw people saying that you needed to count the seconds that the covers take to open or close, and write that attribute into the Zigbee cluster. Too much work for 10 covers in my house.
I then stumbled upon this Github comment explaining the real calibration process. But again too much work for all my covers. I decided to then automate that process.

How do the automation works?

1. CLOSES the cover
2. You will receive a notification to confirm when the cover is closed
3. OPENS the cover
4. You will receive a notification to confirm when the cover is open
5. CLOSES the cover
6. You will receive a notification to confirm when the cover is closed
7. Cover is CALIBRATED
1 Like

Thanks, your blueprint was a lifesaver :slight_smile: I had to slightly change your blueprint to make it work. As documented here, the device selector returns the device id of the selected device. Therefore, we can simply pass the returned device id to device_attr. Feel free to change your gist according to my changes over here.

2 Likes

Hi,

I got your version to run, however seems that the calibration is still off.
Once the process is complete and I confirm on the last window. my Blinds are completely shut but in app I see that they are:

OPEN: 28%

Any ideas how can I get it to work or any information I can provide to help with the solution?