Skip to content

Add support for Xiaomi Vibration sensor#89

Merged
Danielhiversen merged 2 commits intoDanielhiversen:masterfrom
dlashua:master
Sep 13, 2018
Merged

Add support for Xiaomi Vibration sensor#89
Danielhiversen merged 2 commits intoDanielhiversen:masterfrom
dlashua:master

Conversation

@dlashua
Copy link
Copy Markdown
Contributor

@dlashua dlashua commented Sep 4, 2018

No description provided.

@syssi
Copy link
Copy Markdown
Collaborator

syssi commented Sep 4, 2018

Please provide some example responses of the device.

@dlashua
Copy link
Copy Markdown
Contributor Author

dlashua commented Sep 4, 2018

You can view the full integration at this Pull Request:
home-assistant/core#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
Copy link
Copy Markdown
Owner

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

@Danielhiversen
Copy link
Copy Markdown
Owner

@syssi Any more comments?

@Danielhiversen Danielhiversen merged commit 26e6e0f into Danielhiversen:master Sep 13, 2018
@syssi
Copy link
Copy Markdown
Collaborator

syssi commented Sep 13, 2018

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

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.

3 participants