Replies: 1 comment
-
@hwzolin @3reality-support I am not a quirk developer but believe that if it is not a standard "cover" device (e.g. an orientation or "tilt" sensor for detect angular movement/changes in example windows and garage doors, or slats angle control for venetian blinds and control the tilt position of venetian blinds slats to adjust the amount of light in a room) so that you can just not create quirk device handler to translate those angles into a standard "tilt" entities for how "closures" cluster is exposed for standard cover device in Home Assistant then you probably want to expose it as a a state, for which you might need to extend the sensor device in the zha component of zigpy and the zha code inside Home Assistant core to expose a new device type for "tilt"? Covers also include all different closure devices; awnings, barriers, blinds, cabinets, curtains, doors, garage doors, gates, pergolas, screens, shades, shutters, and windows. Suspect though that if your product is not actually a "cover" by deffinition but instead only a stand-alone swnslr then you would instead make sense that you rather want to use the sensor device type and extend that to show tates and/or conditions of the sensor A lot of device classes are supported for sensors but not yet angle, orientation, position, or tilt: Again, note that the ZHA in Home Assistant do not support every device class available and as far as I can tell the cover device type in Home Assistant core is the only type of device that. So if you want to expose tilt in the UI then you need to submit a patch for above linked sensor code that could proably copy part the tilt code from the cover so that it is exposed similarly in the zha UI?
Another one is otherwise the Screen Orientation Sensor and/or Screen Rotation Sensor PS: The zha integration currently supports the following device types within Home Assistant:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@TheJulianJES @puddly

Hello, our company's vibration sensor has a set of private clusters, the function is to report the angle of the X, Y, Z axis of the sensor at the moment.
I would like the reported data to be displayed in the red box in the image below. How do I set this up in my code?
Below is a screenshot of the data reported by this private cluster:

The following is my code, please give me some suggestions for modification, thank you!
Beta Was this translation helpful? Give feedback.
All reactions