danielperna84 / hahomematic

Python 3 Interface for Home Assistant to interact with HomeMatic devices
MIT License
130 stars 22 forks source link

Cover not fully opening (DRBL) #1552

Closed JonasWirz closed 4 months ago

JonasWirz commented 4 months ago

I agree to the following

The problem

After updating to 1.6.1.0, my covers are only opening up to 99% when opening them via HomeAssistant Dashboard. They first fully open to 100%. After a few seconds, they are moving again and stop at 99%.

Before updating, everything worked fine.

What version of HomematicIP (local) has the issue?

1.6.1.0

What was the last working version of HomematicIP (local)?

No response

What type of installation are you running?

Home Assistant OS

What type of installation are you running for your homematic backend?

CCU3

Which version of your homematic backend are you running?

No response

What hardware are you running for your system?

No response

Which config details do you use

Which interfaces do you use?

Diagnostics information (no logs here)

No response

Log file extract. Anything in the logs that might be useful for us? The log (Setting/System/Logs -> load full log) is the best source to support trouble shooting!

No response

Additional information

No response

SukramJ commented 4 months ago

We only send one command for covers, so why do you think it’s an issue of this integration. Or are you using blinds?

JonasWirz commented 4 months ago

Sorry. I am using blinds ;). I think it has something to do with the "slap position" as well. After opening the blind via HA, the blind has a slat position of 50% configured in HomeMatic. When I open the blind directly in HomeMatic, the slat position is 100%.

SukramJ commented 4 months ago

That is menitioned in the release notes of 1.60.0:

Set open tilt level to 50%

JonasWirz commented 4 months ago

I saw the release notes of 1.60.0. But this causes problems in my case. If I press "open" in Homeassistant, the blind opens (I think it receives the command 100% open). Afterwards, it receives the command for 50% slat position and goes to position 99% and 50% slat position, because I think that 100% open at 50% slat position is an invalid state (if the blind is fully open, it can not have a slat position). Why was an open tilt level of 50% chosen?

SukramJ commented 4 months ago

It was requested by blind users in the past.

SukramJ commented 4 months ago

I think this is not an issue with this integration. If you want to change the tilt default to a new value you should start a discussion in this repository. I personally don‘t use blinds or covers.

JonasWirz commented 4 months ago

Thank you!

I think the problem lies within the order of the commands as they are sent to the Homematic upon combined tilt/position command. In cover.py starting from line 109, there is the service definition. First, the position command is sent. Afterwards, the tilt command is sent. This way, the position of 100% is overwritten by the HomeMatic system due to the wrong tilt value. However, if you press "open" in HomeAssistant, a position of 100% is sent, which is never reached because of the tilt value.

SukramJ commented 4 months ago

No, if you use the service cover combined position, then only on combined parameter is send. Same with the cover open/close command.