Automatic blinds / sunscreen control based on sun platform

Thanks for searching, I do have the (2) entity, but it is automatically deactivated once you set the Roller Shutter to Venetian blind mode. I do have the same Roller Shutters for normal blinds, there is no other entity then.

But other than the post you linked says, I do have only 1 cover entity with the (I assume correct) attributes, you may double check to make sure it is what your integration expects:

If I got your reply correctly, then you integration tells only the cover.tilt_position to change, right?

Yes, it calls the position service call that is associated with the type of blind. In your case the cover.set_cover_tilt_position

Thanks, I tested it again, but it seems to be the case that the blueprint uses the target value provided by the sensor of the integration to set the position of the blind and NOT the tilt. The position matches exactly with the target of the sensor. The tilt is not set at all it seems.
Maybe there is something wrong in the blueprint? I used the one you provided in the other thread as the ā€œAuto Generationā€ of the blueprint failed.

If you use the latest version you will not need the blueprint anymore as the integration itself calls the needed services.
You can find more info about the update in this topic Custom Component - Adaptive Cover

Maybe there is some bug in the blueprint, but never received an issue ticket for it and donā€™t have tilted blinds myself.

It seems that was the case, I had a fairly old version, even though I installed the integration only maybe one or two weeks ago. Now it seems to use the tilt attribute. Will test and provide feedback.

However I still do not understand what the standard and maximum position settings mean.

The default is the position where the blinds to return if the sun is not infront of the window. Some type of covers like roman shades should not open fully so their height position can be limited with that setting. Add "maximum" open setting so that roman shades don't try to open all the way Ā· Issue #39 Ā· basbruss/adaptive-cover Ā· GitHub

I signed up to the Home Assistant community just to say Thank-you. This blueprint is amazing!
Incredible work.

1 Like

Is there any way to define that the blinds should receive the command ā€œopen_coverā€ instead of the percentage value to open completely?

If the blinds should open completely at the end of the day (=no sun) and receive the percentage value from the automation (I think fully open would be 100%, right?), they sometimes do not open completely, as it always seems to lead to greater deviations during the day, after each movement of the blinds.

Sending the command open_cover is the same as sending 100% with set_cover_position.

As regards to the cover not opening completely, thatā€™s an issue with your system. Either your cover motor is not correctly calibrated or itā€™s not powerful enough. Perhaps your system has a calibration method you can do? You could also use something like this template sensor to calibrate it correctly: factor for position percentage #129

Thank you for your answer.

But can you explain to me why the command ā€œopen_coverā€ and ā€œset_cover_positionā€ (to 100%) should be the same? Iā€™m pretty sure that moving to 100% position is not the same command as ā€œmove up completelyā€.

Arenā€™t two different commands sent to the cover?

Are you saying either command does something different for you? That makes no sense.

The command ā€œset_cover_positionā€ is used to move to a percent-position and ā€œopen_coverā€ gives the command to open completely. Can you explain to me why HA should send the same command to the blinds in this cases (ā€œopen_coverā€ and ā€œset_cover_positionā€ to 100%)?

When the blinds receive the command to open, they do so as far as they will go, without Home Assistant having to do anything. However, if a percentage position is to be approached, there is a completely different logic behind this. Especially if the blinds do not have an exact position.

I donā€™t know why you think it would send the same command to the blinds, but maybe there is someone else here who can comment on this and explain your answer to me.

Because setting the position to 100% is the same thing as telling it to open completely. 100% is completely open.

No, itā€™s the same thing. You can check this by going to dev tools and calling the ā€˜open coverā€™ service. You will see the position is changed to 100% like it should. It would be very strange if they did something different, because then you would never be able to use the full range of the cover position with the set_position service.

Okay, then I completely misunderstood the two commands. I assumed that ā€œopen_coverā€ simply gives the command to move to the ā€œstopā€ and ā€œset_cover_positionā€ moves to a ā€œtheoreticalā€ position of 100%, which then perhaps does not trigger the limit switch but, after the blind has moved up and down a few times a few percent, has a falsified position.

Well technically the integration has the freedom to implement it how they want to. But if you look at the tuya code for example, it just sets the position to 100%. So I assume it doesnā€™t even have a limit switch.

Like I said, if your blindā€™s position is unreliable then you can calibrate it. (or perhaps itā€™s just broken)

2 Likes

Thank you for your help, Iā€™ll have to look into this further,

This is something, that should be configured in the device itself, not in HA. Call it calibration if you will, but this has nothing to do with HA.

HA just controls the device, it isnā€™t responsible for calibrating or even running it. HA sends its commands, and waits for feedback, thatā€™s it. :slight_smile:

2 Likes

I know the blinds are calibrated in their settings. My questions and concerns were not about knowing where to configure this.

According to previous answers, it should always execute the same commands, whether I move the blinds to a fixed position or open them completely. In both cases, it should move to 100%, right? But that is not the case. According to Home Assistant, the blinds should now be fully retracted (100%), but they were at approx. 96%.

I then gave the command to move to 100% again, but nothing happened. Then I moved the blinds to 96% and they moved a little further down.
When I moved them back to 100%, they retracted as before (not completely up, approx. 96%).

After I gave the command with the ā€œup arrowā€ (=retract) instead of the 100% position, the blinds retracted completely.

For me, this is a indication that not the same commands are being executed.

The open_cover function (as seen here: core/homeassistant/components/tuya/cover.py at dc1aba0a056d8fb188c36fa44028e56677a5f0ef Ā· home-assistant/core Ā· GitHub) works with and without specifying a defined position. This is why I understand that it does not send the same command to the blinds if HA executes the complete retraction with specification of position 100 or simply with the ā€œopen_coverā€ command.

What integration integrates your covers into HomeAssistant? A position of 100% is defined within HomeAssistants logic as fully opened. cover.open_cover preforms the opening until it receives the status of fully opened, so setting the position to 100% and just opening the cover can be considered as the same. This is also confirmed by this statement from you:

Which also should mean that HomeAssistant shows that they are 100% opened.
My best guess is that the API of the cover motor does not communicate well enough with HA to report the correct state. In most cases this is not a problem that should be solved at HAā€™s side but at the side of the hardware.

And yes you are correct that they are not the same exact command is executed but the outcome should be exactly the same. What does the cover itself reports outside HA if it is at approx. 96%?

Edit: Do you use the adaptive cover integration, the blueprint or the plain jinja macro? This is not exactly clear to me from your posts.

Okay, thank you all. Iā€™ll look at this directly with the blinds and the integration/communication.