Feature request: manual cover calibration (position only based on time)

  • Hi, I was not able to calibrate my roller shutter with Shelly plus 2PM in my house.

    Most popular branch of roller shutter in France equipping newly built house like Bubendorff has a relay between the input and the motors. Basically, the motors are always powered on, the and the switch only action on the relay. There is thus no power consumption on the switch wires and thus, calibration doesn’t work, giving basics fully open/close functionality on Shelly 2PM.

    As from the documentation mention that the position is mostly time-based when reading the API documentation:

    When calibration data is available, the Cover component will keep track of the duration of each movement and use the calibration data to determine the current position relative to the end positions. Similarly, the Cover component will use the calibration data to translate GoToPosition requests to movement durations in the corresponding direction.

    (I guess accounting with the motor ramp up time). I think though that we can make it work with some kind of manual calibration, setting manually the open and close times. Then, the shelly can approximate the current position based on travelled time. Of course, it can reset everytime the up position was set to more than maxtime_open or maxtime_close.

    Another way to introduce this feature would be, through Shelly scripts, override the GetStatus returned values so that we can do implement this feature, and then override "pos_control" and "current_pos" in http://192.168.33.1/rpc/Cover.GetStatus?id=0. However, if I’m right, there is no way to override/set those values ?


  • I am deeply interested by this thread and feature. I have Bubendorff roller shutter too.

    for my side, the calibration has weird behaviour as well. during downward calibration movement, it stops the processs at approx 85%-90% of the full stroke, and for upward movement, it is same. At the end, the calibration passed, but in consequence, the travel stroke is not on the whole range.

    I do not know if this behaviour is linked to my set-up, or if it is due to calibration process. ( done with light bulbs to simulate wattage measurement).

  • hi your post is very interesting and it's something I was thinking too. did you find a solution?

    I have a problem with the calibration of an awning in 2pm device, the motor goes into thermal protection during the various calibration steps. Can you send a calibration manually or via script?