Positioning issue for zwave rollershutter. fix for #2581 (#2587)

This fixes issue: #2486
pull/2589/head
John Arild Berentsen 2016-07-21 15:07:48 +02:00 committed by GitHub
parent 3441170827
commit a0d71c9cb2
1 changed files with 6 additions and 1 deletions

View File

@ -56,7 +56,12 @@ class ZwaveRollershutter(zwave.ZWaveDeviceEntity, RollershutterDevice):
@property
def current_position(self):
"""Return the current position of Zwave roller shutter."""
return self._value.data
if self._value.data <= 5:
return 100
elif self._value.data >= 95:
return 0
else:
return None
def move_up(self, **kwargs):
"""Move the roller shutter up."""