* [hdpowerview] get secondary shade position value was inverted
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
* [hdpowerview] remove testing Jar from PR
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
* Uses a coordinate system that is NOT inverted in relation to OpenHAB
*/
if (posKind2.intValue() != 3) {
- return new PercentType(100 - (int) Math.round(position2.doubleValue() / MAX_SHADE * 100));
+ return new PercentType((int) Math.round(position2.doubleValue() / MAX_SHADE * 100));
}
default:
return UnDefType.UNDEF;
pos = shadePos.getState(SECONDARY_ACTUATOR, ZERO_IS_OPEN);
assertEquals(PercentType.class, pos.getClass());
- assertEquals(65, ((PercentType) pos).intValue());
+ assertEquals(35, ((PercentType) pos).intValue());
pos = shadePos.getState(PRIMARY_ACTUATOR, VANE_COORDS);
assertEquals(UnDefType.class, pos.getClass());