diff --git a/homeassistant/components/binary_sensor/xiaomi_aqara.py b/homeassistant/components/binary_sensor/xiaomi_aqara.py index 550bdaac172..584d56c2e68 100644 --- a/homeassistant/components/binary_sensor/xiaomi_aqara.py +++ b/homeassistant/components/binary_sensor/xiaomi_aqara.py @@ -467,4 +467,12 @@ class XiaomiCube(XiaomiBinarySensor): }) self._last_action = 'rotate' + if 'rotate_degree' in data: + self._hass.bus.fire('xiaomi_aqara.cube_action', { + 'entity_id': self.entity_id, + 'action_type': 'rotate', + 'action_value': float(data['rotate_degree'].replace(",", ".")) + }) + self._last_action = 'rotate' + return True