Skip to content

Commit

Permalink
feat: support xiaomi motion sensor 2s - global version (XMPIR02SGXS) (#…
Browse files Browse the repository at this point in the history
…95)

It's actually the same as the China mainland version (XMPIR02SXS vs XMPIR02SGXS).
The only change is the device id as the code change indicates.
The change is manually verified by Home Assistant (no change except use the new xiaomi-ble package)

Hardware Info:
- https://www.mi.com/global/product/xiaomi-motion-sensor-2s/
  • Loading branch information
ldfandian authored Sep 7, 2024
1 parent c2631ea commit 7e30569
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xiaomi_ble/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ class DeviceEntry:
name="Motion Sensor",
model="XMPIRO2SXS",
),
0x4C60: DeviceEntry(
name="Motion Sensor",
model="XMPIRO2GSXS",
),
0x4683: DeviceEntry(
name="Occupancy Sensor",
model="XMOSB01XS",
Expand Down

0 comments on commit 7e30569

Please sign in to comment.