From 87d55834be230170efca4f08a9a023191cd7ed60 Mon Sep 17 00:00:00 2001 From: Alexei Chetroi Date: Thu, 7 Jun 2018 16:56:07 -0400 Subject: [PATCH] zha: handle "step_with_on_off" cluster command in LevelListener. (#14756) --- homeassistant/components/binary_sensor/zha.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/binary_sensor/zha.py b/homeassistant/components/binary_sensor/zha.py index 6931355ca0e..224d694e0f5 100644 --- a/homeassistant/components/binary_sensor/zha.py +++ b/homeassistant/components/binary_sensor/zha.py @@ -187,8 +187,8 @@ class Switch(zha.Entity, BinarySensorDevice): if args[0] == 0xff: rate = 10 # Should read default move rate self._entity.move_level(-rate if args[0] else rate) - elif command_id == 0x0002: # step - # Step (technically shouldn't change on/off) + elif command_id in (0x0002, 0x0006): # step, -with_on_off + # Step (technically may change on/off) self._entity.move_level(-args[1] if args[0] else args[1]) def attribute_update(self, attrid, value):