This commit is contained in:
1 parent
65c2a25736
commit
ece7b498ed
1 file changed
+8
@@ -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
|
||||
Reference in new issue
Block a user