-
Notifications
You must be signed in to change notification settings - Fork 675
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
Added current orientation to aqara vibration sensor #1235
Conversation
…ys returns 90 degrees to the Y axis.. still need to look into it
Added raw values to output
Codecov Report
@@ Coverage Diff @@
## dev #1235 +/- ##
==========================================
- Coverage 80.41% 80.26% -0.16%
==========================================
Files 207 207
Lines 5668 5680 +12
==========================================
+ Hits 4558 4559 +1
- Misses 1110 1121 +11
Continue to review full report at Codecov.
|
Pull Request Test Coverage Report for Build 1631299406
💛 - Coveralls |
All done :) Apologies for the "many" commits fixing newbie mistakes :) First time working with Python. Let me know if it's good to be pulled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
is this now available in home assistant 2022.3? i still can't access the device tilt on it |
It's been available since 2021.12 release and works by checking zha_event event. See #1296 |
I'am listenting to EDIT: okay now it works. I'am now fiddeling with the |
As of 2022.4.... still not there. Hoping it makes it soon! |
As reported in #1230.. The aqara vibration sensor does not show the current orientation after doing a rotation. The code is based on https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/xiaomi/aq1_vibration_sensor.json and https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/xiaomi/aq1_vibration_sensor_orientation.js.
I tested it using this method https://github.com/zigpy/zha-device-handlers#testing-quirks-in-development-in-docker-based-install and using nodered the new event showed up using zha_event. Example of output