mwraith / homebridge-somfi-blinds

A Homebridge plugin to control any device with the Somfy RTS technology with a Raspberry Pi connected to a simple 433 MHz transmitter. Adapted from wibberryd/homebridge-rpi-rts, but provides a stateful service.
MIT License
7 stars 3 forks source link

Partial opening #11

Open Peet-B opened 1 year ago

Peet-B commented 1 year ago

Hi there,

First of all, thank you for this amazing plugin displaying real shutters.

Since partial opening isn't yet possible. I was thinking on how it could be made possible. If you were to count the time it would take your blind to go from fully open to fully closed, you'd have a time which would be a 0 - 100 scale. If you then would drop the slider at about 40% open, it would look something like this:

Fully open to fully close time: 18 seconds Fully open to 40% close time: 18/100*40 = 7,2 seconds After 7.2 seconds the "My" button would be pressed automatically.

When closing or opening again all the way, the blind (don't know about the Venetian ones) will only stop when they hit their set stop target. So if the set distance would be >99%, the my button wouldn't be pressed, same goes for <1%.

I would love to have this feature, since my blinds and windows are massive and I would like to sometimes open them 50% to allow for some natural light penetrating my rooms.

mwraith commented 1 year ago

Hi @Peet-B. Thanks for the feedback.

Although partial opening isn't supported, there is a very basic feature that you might be interested in related to this. The way is works is that you first need to set a blindTimeToOpen in ms in the config file, which is the the fully open to fully close time. Then whilst the blind is in the process of moving if you tap the blind to send the opposite signal it does in fact send a My signal and therefore stop the blind at partial open.

It's obviously not as nice as being able to just do it via the slider as you have suggested, but it's maybe still helpful for you.