Danielhiversen / PyXiaomiGateway

PyXiaomiGateway
MIT License
153 stars 55 forks source link

Add support for Xiaomi Vibration sensor #89

Closed dlashua closed 6 years ago

syssi commented 6 years ago

Please provide some example responses of the device.

dlashua commented 6 years ago

You can view the full integration at this Pull Request: https://github.com/home-assistant/home-assistant/pull/16422

Here are some sample outputs from this sensor...

{'cmd': 'report', 'model': 'vibration', 'sid': '158d0002a8ad03', 'short_id': 16435, 'data': '{"coordination":"16,13,1225"}

{'cmd': 'report', 'model': 'vibration', 'sid': '158d0002a8ad03', 'short_id': 16435, 'data': '{"bed_activity":"94"}

{'cmd': 'report', 'model': 'vibration', 'sid': '158d0002a8ad03', 'short_id': 16435, 'data': '{"final_tilt_angle":"175"}'}

{'cmd': 'report', 'model': 'vibration', 'sid': '158d0002a8ad03', 'short_id': 16435, 'data': '{"status":"vibrate"}
Danielhiversen commented 6 years ago

Please rebase your branch on the latest master branch to fix the failing tests

Danielhiversen commented 6 years ago

@syssi Any more comments?

syssi commented 6 years ago

Sorry for the late feedback. I'm waiting for my sensor. The PR is fine! Good job!