-
Notifications
You must be signed in to change notification settings - Fork 57
Description
As we briefly discussed in #268 already, I would like to explore what it would take to add shutter functionality to this firmware. I have single- and dual-channel Girier shutter modules in my home, and they already provide basic shutter control reasonably well. They can be calibrated, and the motor direction can be swapped in case they are wired incorrectly. However, there are a few areas I would like to improve:
- The roller shutters I know and have used have significant dead zones at the upper and lower ends of travel. For example, my roller shutters take around 20 seconds to go from one end position to the other, but for the first 3-4 seconds there is no visible movement. Then they start moving, and after they are fully closed, the motor can still be heard running for a few more seconds. These two dead zones mess up position calculation. If I set the roller shutter from 0% to 10%, I hear the motor running for 2 seconds, but the shutter does not actually move at all. When setting a specific position, I often do not have an intuitive understanding of what percentage corresponds to the desired position. A better firmware would allow calibration of these two dead zones so the position value better matches the actual roller blind position.
- I have Velan Life Roller blind push-buttons. These have a stop button in the middle that effectively closes both direction switches at the same time. A better firmware would interpret simultaneous switch presses as a stop command.
- My 1-gang and 2-gang Girier shutter modules behave inconsistently. One can be stopped by momentarily pressing the opposite direction, while the other actually starts moving the motor in the opposite direction. One can be controlled by holding down the button, so it only moves while the button is pressed, while the other does not support this. A better firmware would be more consistent and maybe even allow these behaviors to be configured to match the home owner’s preference.
What I did
I figured out the port mapping, created a build on my fork, successfully OTA-updated the original firmware with the custom firmware on a dual-channel Girier shutter module, and verified the port mapping through the config string.
There is one quirk on this device: the on-board reset button appears to be wired to the same pin as the first switch input. I have not fully explored the PCB yet, so I do not know why another pin was not used. On this device, pressing the reset button is equivalent to pressing the first switch.
Next steps
First, I will create a PR for the new device database entry. Then I will explore options to add shutter-specific features without disturbing or complicating the existing functionality. As far as I understand, the 2-gang and 4-gang switch modules are hardware-equivalent to the 1-channel and 2-channel shutter modules, so it may make sense to allow reconfiguration between these modes if needed.
Once I have spent more time exploring the codebase in detail, I would like to follow up with ideas, proposals, and questions.
Photos
