[nikobus] added option to reverse rollershutter commands (#10047)

* Added option to reverse rollershutter commands - UP -> DOWN and DOWN -> UP - might happen if rollershuter module's output is wired differently.

* Fixed PR comments.

Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
This commit is contained in:
Boris Krivonog
2021-02-04 22:59:44 +01:00
committed by GitHub
parent 0d13b8d1ef
commit 6878384df9
6 changed files with 59 additions and 20 deletions

View File

@@ -131,6 +131,8 @@ Defines a `rollershutter-module` with address `4C6C`.
| output-5 | Rollershutter | Output 5 |
| output-6 | Rollershutter | Output 6 |
In case rollershutters are moving in the oposite direction when sending `UP` or `DOWN` commands, there is a `reverse` parameter, which can be set to `true` in this case to reverse the rollershutter's direction. Defaults to `false`.
##### Estimating Position
Nikobus rollershuter module does not provide information about rollershutter's position. In order to bridge this gap, an optional parameter `duration` can be set per channel, describing the amount of time needed by a rollershutter to get from open to closed state (or vice-versa).