Add position to zwave rollershutter (#2772)

This commit is contained in:
Nuno Sousa authored and Paulus Schoutsen committed 2016-08-16 00:37:58 -07:00
1 parent 693098ff00
commit 7762365b3f
12 files changed
+106 -1

No files matched your search

@@ -97,6 +97,10 @@ class ZwaveRollershutter(zwave.ZWaveDeviceEntity, RollershutterDevice):
self._lozwmgr.pressButton(value.value_id)
break
def move_position(self, position, **kwargs):
"""Move the roller shutter to a specific position."""
self._node.set_dimmer(self._value.value_id, 100 - position)
def stop(self, **kwargs):
"""Stop the roller shutter."""
for value in self._node.get_values(