From 21381a95d41a34f7c1ba6aff1cc2902c5aa00e75 Mon Sep 17 00:00:00 2001 From: John Arild Berentsen Date: Sat, 25 Jun 2016 20:35:36 +0200 Subject: [PATCH] Zwave fixes. (#2373) * Fix move_up and move_down I managed to switch up the zwave move_up and move_down commands. This PR fixes it. Thank you @nunofgs for bringing this to my attention :) * Fix for aeotec 6 multisensor --- homeassistant/components/rollershutter/zwave.py | 4 ++-- homeassistant/components/zwave.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/rollershutter/zwave.py b/homeassistant/components/rollershutter/zwave.py index ea0be0ddf74..81b891d7bf1 100644 --- a/homeassistant/components/rollershutter/zwave.py +++ b/homeassistant/components/rollershutter/zwave.py @@ -60,11 +60,11 @@ class ZwaveRollershutter(zwave.ZWaveDeviceEntity, RollershutterDevice): def move_up(self, **kwargs): """Move the roller shutter up.""" - self._node.set_dimmer(self._value.value_id, 0) + self._node.set_dimmer(self._value.value_id, 100) def move_down(self, **kwargs): """Move the roller shutter down.""" - self._node.set_dimmer(self._value.value_id, 100) + self._node.set_dimmer(self._value.value_id, 0) def stop(self, **kwargs): """Stop the roller shutter.""" diff --git a/homeassistant/components/zwave.py b/homeassistant/components/zwave.py index 98a24240a00..84ec3dfd847 100644 --- a/homeassistant/components/zwave.py +++ b/homeassistant/components/zwave.py @@ -108,7 +108,8 @@ DISCOVERY_COMPONENTS = [ TYPE_BOOL, GENRE_USER), ('binary_sensor', - [GENERIC_COMMAND_CLASS_BINARY_SENSOR], + [GENERIC_COMMAND_CLASS_BINARY_SENSOR, + GENERIC_COMMAND_CLASS_MULTILEVEL_SENSOR], [SPECIFIC_DEVICE_CLASS_WHATEVER], [COMMAND_CLASS_SENSOR_BINARY], TYPE_BOOL,