angeloxx / homebridge-myhome

Homebridge plugin for BTicino/Legrand MyHome
MIT License
33 stars 18 forks source link

Problems with roller shutters and F411 #1

Closed Reyna1d closed 7 years ago

Reyna1d commented 7 years ago

Good evening, Sorry for my English, but I am french. First, congratulations for your plugin, it is great. But, I can not use it with my roller shutters. I have modules F411 to manage them and the management of the estimated position does not work. My shutter takes 14s to go up or down completely. The configuration of the accessory is as follows:

{ "accessory": "MHBlind", "name": "Arrière", "address": "0/8/4", "time": 14 },

Thank you for your work, continue, it's great.

angeloxx commented 7 years ago

Hi @Reyna1d, thank you for your feedback. The estimated position is calculated starting a known position (fully closed at the startup); to keep this information affordable you need to:

This information is lost at restart. Remember that it is a (linear) estimate, so it doesn't care about the start delay (eg. if you have a shutter with tilt bar) and the estimate gets worse if you make many small movements. You can compensate the error with the additional property: