I have added PercentType capabilities to Niko Home Control rollershutters. This will enable Niko Home Control rollershutters to be correctly used with Homekit and other transports only supporting PercentType for rollershutters.
As I do not have rollershutters myself, I have to rely on you to do proper testing of the functionality.
During development, it came to my attention that Niko Home Control percentages did not always match correctly to openHAB UP/DOWN percentages. The standard in openHAB is 0% for UP and 100% for DOWN. It appeared that it sometimes (but not always) was the other way around in NHC.
I therefore introduced an invert flag to be able to invert the mapping. This is not best practice (see PR#3337), and I would rather take it out if everyone sees the same behaviour.
Therefore, could you test the latest version of the binding from here with a recent snapshot version of openHAB (it will not work with 2.2) and let me know how it behaves?
Please test with the invert parameter false and true:
- Command UP, does it go up?
- Command DOWN, does it go down?
- Command 0%, does it go completely UP (or open)?
- Command 100%, does it go compeletely DOWN (or closed)?
- Command 30%, does it go to 30% DOWN?
If all tests come back with the same result, I will adapt the binding to only have that one behaviour and remove the invert flag.
EDIT: Testing has finished and the changes have been merged in the 2.3.0 snapshot. No invert flag is required.