Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Xiaomi Motion Sensor 2S (XMPIR02SXS) #1118

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

Necroneco
Copy link
Contributor

spec: https://home.miot-spec.com/spec/xiaomi.motion.pir1

shop: https://www.xiaomiyoupin.com/detail?gid=160625

logs:

2023-08-02 21:27:09.279 DEBUG ... [BASE] 94346938cf34 (13617) setup ble (13617):

2023-08-02 21:43:16.348 DEBUG ... [MQTT] miio/report b'{"id":1335669370,"method":"_sync.ble_query_dev_list","params":{"devices":[{"mac":"94:34:69:38:CF:34","pdid":13617}]}}'
2023-08-02 21:43:16.437 DEBUG ... [MQTT] miio/report_ack b'{"id":1335669370,"result":{"authed_devs":[{"mac":"94:34:69:38:CF:34","ttl":1800,"pdid":13617,"did":"blt.3.1eq3ei05c5c00","beaconkey":"531d10b6262cf8edc6b77038ddae5288","token":"6f83ffc9e95ad186996846cd","spec_supported":1}],"denied_devs":[]}}'
2023-08-02 21:43:17.367 DEBUG ... [MQTT] miio/report b'{"id":1202342371,"method":"_sync.ble_spec_query_prod","params":{"pdid":13617,"offset":0}}'
2023-08-02 21:43:17.887 DEBUG ... [MQTT] miio/report_ack b'{"id":1202342371,"result":{"operation":"ble_spec_query_prod","pdid":13617,"ttl":1800,"size":6,"pidrule":[{"siid":2,"piid":1005,"intvl":600,"delta":1,"type":"float"},{"siid":2,"piid":1024,"intvl":0,"delta":0,"type":"uint16"},{"siid":2,"piid":1053,"intvl":90,"delta":1,"type":"uint16"},{"siid":3,"piid":1003,"intvl":600,"delta":1,"type":"uint8"}],"eidrule":[{"siid":2,"eiid":1028,"intvl":0,"delta":0,"piids":[]},{"siid":2,"eiid":1008,"intvl":0,"delta":0,"piids":[{"piid":1005,"type":"float","name":"Illumination"}]}]}}'

2023-08-02 21:02:06.062 DEBUG ... [MQTT] miio/report b'{"id":1333151329,"method":"properties_changed","params":[{"did":"blt.3.1eq3ei05c5c00","siid":2,"piid":1053,"value":10,"tid":39}],"type":6}'

2023-08-02 21:12:22.107 DEBUG ... [MQTT] miio/report b'{"id":1185899592,"method":"event_occured","params":{"did":"blt.3.1eq3ei05c5c00","siid":2,"eiid":1008,"tid":53,"arguments":[{"piid":1005,"value":14.000000}]},"type":6}'

2023-08-02 21:15:47.028 DEBUG ... [MQTT] miio/report b'{"id":237915686,"method":"properties_changed","params":[{"did":"blt.3.1eq3ei05c5c00","siid":2,"piid":1005,"value":83.000000,"tid":60}],"type":6}'

2023-08-02 21:16:55.860 DEBUG ... [MQTT] miio/report b'{"id":1436769714,"method":"properties_changed","params":[{"did":"blt.3.1eq3ei05c5c00","siid":2,"piid":1005,"value":0.000000,"tid":61}],"type":6}'

2023-08-02 21:17:21.871 DEBUG ... [MQTT] miio/report b'{"id":1628469726,"method":"properties_changed","params":[{"did":"blt.3.1eq3ei05c5c00","siid":2,"piid":1024,"value":300,"tid":62}],"type":6}'

2023-08-02 21:17:33.050 DEBUG ... [MQTT] miio/report b'{"id":2003805733,"method":"properties_changed","params":[{"did":"blt.3.1eq3ei05c5c00","siid":3,"piid":1003,"value":100,"tid":63}],"type":6}'

@AlexxIT AlexxIT merged commit 52d14e8 into AlexxIT:master Aug 2, 2023
1 check passed
@AlexxIT
Copy link
Owner

AlexxIT commented Aug 2, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants