Skip to content

Commit

Permalink
Add BLE moving event #88
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Oct 31, 2020
1 parent 532c6b1 commit a453683
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/xiaomi_gateway3/core/bluetooth.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ def parse_xiaomi_ble(event: dict, pdid: int) -> Optional[dict]:
'timestamp': timestamp
}

elif eid == 0x0F:
# 1 - moving no light, 100 - moving with light
# TODO: fix me in future
return {'action': int.from_bytes(data, 'little')}

return None


Expand Down

0 comments on commit a453683

Please sign in to comment.