-
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
[Device Support Request] lumi.vibration.aq1 orientation #1230
Comments
I made a commit on a fork I made. It's not done yet... still looking into why the orientation is always returning 90 degrees |
After testing it works fine. Made a pull request. Hopefully it will be good because it's my first time doing something in Python and github pull request. |
Hi, Will this mean if it gets approved it will be available in one of the next HA updates? |
Correct. It´s currently approved and next release of zha-device-handlers it can be put into a pull request for Home Assistant´s next release next month. |
Thanks for the quick reaction and for adding this feature. I guess I have to remove and pair my sensor again to get it supported? Just switched from Deconz to ZHA and was really missing the orientation, using it for my garagedoor state. |
I don't think you have to repair. I also use it for the same purpose. |
@schwickster Is it correct that it not made the 2feb release? |
It should be there. Try a repair maybe? |
Just removed and repaired the sensor but still no orientation attribute. |
That's because It's not an attribute but an event. |
This really needs to be a state! (or attribute?) |
Yeah ive been struggling with that too. Having events is the new way |
Is your feature request related to a problem? Please describe.
Currently it´s not possible to read what orientation the lumi.vibration.aq1 (aqara djt11lm) is. It's possible to read how many degrees it has tilted.
Describe the solution you'd like
Adding orientation gives the option to use this sensor as a open/close for a garage door.
Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.
No logging, but I did find the code within Deconz that it's possible.
https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/xiaomi/aq1_vibration_sensor.json
https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/xiaomi/aq1_vibration_sensor_orientation.js
Additional context
Thanks!
The text was updated successfully, but these errors were encountered: