rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
530 stars 36 forks source link

Add limit on the tilt movements when position is not at 100% #302

Open Linax2015 opened 6 months ago

Linax2015 commented 6 months ago

Describe you new feature you'd like

Would it be possible to get a limit on the tilt position when the position is not at 100%?

I have 7 Vertical Blinds by Benthin using the RTS protocol and am able to use your system. But the tilt does not go to 0 or 100% on the position travel but only 30%(Closing) and 70%(Opening). They only tilt to 0 and 100% when the position is at 100%.

There is a total of 6 positions and 7 steps on a round trip, example from shortest blind:

Position: 100%. Tilt: 70%. Parked at end position when running up on remote.

Position: 100%. Tilt: 30%. Pressing Down moves blinds from position 1-2 (Tilt moves from 70% to 30%) 5.23sec

Position: 0%. Tilt: 30%. From position 2-3 (Position moves from 0% to 100% ) 7,17sec

Position: 0%. Tilt: 0%. From position 3-4 (Tilt moves from 30% to 0%) This is the end position when pressing down on remote 2,3sec

Position: 0%. Tilt: 100%. Pressing Up on remote moves blinds from position 4-5 (Tilt moves from 0% to 100%) 7,59sec

Position: 0%. Tilt: 70%. From position 5-6 (Tilt moves from 100% to 70%) 2,07sec.

Position: 100%. Tilt: 70% From position 6 -1 (Position moves from 0% to 100%) 7,08sec

Info can be found here: https://community.home-assistant.io/t/esp-somfy-rts-integration/543401/465?u=linax

rstrouse commented 6 months ago

I need to get this clear in my head so I am going to make some assertions below and you can let me know if they are correct.

When the vertical blind is 100% closed and 100% tilted closed. Then if you short press the up button once it will first rotate the slats open to 70% then begin moving to the full open position. When it reaches the end it will then be at 0% with 70% tilt.

Then if you short press the down button. It will first rotate the slats to 30% then begin moving to the full closed position. When it reaches the end it is then at 30% or does it rotate to 0% when it reaches the end.

Linax2015 commented 6 months ago

Sorry for the late reply buy for some reason the mail went to spam.

It is not fully correct on the tilt as it goes to the end on the tilt fist and then to 70%, And it is a bit confusing in my head also so i think the easyest way to get on the same page is if you have a look on this video of one of the blinds here (Can only upload 10mb to github so had to use google) Here you can se the full motion from opened to closed and from closed to open.

rstrouse commented 6 months ago

I took a look at your video and while it seemed to answer some of the questions I need to get it clear in my head before making modifications that might support this. It seems like there is a separate motor for the slat position. Is that the case or are we dealing with something mechanical.

It looks like when closing it simply runs to the 70% position then starts moving. However, when opening it seems like it first moves to 0% then back to 30% then starts moving open. I assume that while it is doing the tilt movement if you press the my button after the up it will stop in that position. Does it then go back to 100% on the tilt if you press the down button again?