-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add mmWave area commands and reports for Inovelli VZM32-SN #4944
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,36 @@ | |
| from zigpy import types | ||
|
|
||
|
|
||
| class MMWaveArea(types.Struct): | ||
| """A single mmWave sensor area definition. | ||
|
|
||
| Used for interference, detection, and stay areas on the VZM32-SN. Bounds | ||
| are in millimeters on the x (width/left-right), y (depth/near-far), and | ||
| z (height/floor-ceiling) axes, relative to the switch. | ||
| """ | ||
|
|
||
| x_min: types.int16s | ||
| x_max: types.int16s | ||
| y_min: types.int16s | ||
| y_max: types.int16s | ||
| z_min: types.int16s | ||
| z_max: types.int16s | ||
|
|
||
|
|
||
| class MMWaveTarget(types.Struct): | ||
| """A single detected target reported by the mmWave radar. | ||
|
|
||
| Positions are in millimeters. dop is the Doppler velocity and target_id is | ||
| a device-assigned tracking identifier. | ||
| """ | ||
|
|
||
| x: types.int16s | ||
| y: types.int16s | ||
| z: types.int16s | ||
| dop: types.int16s | ||
| target_id: types.int16s | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
|
|
||
| class AllLEDEffectType(types.enum8): | ||
| """All LED effect type for Inovelli Blue Series switch.""" | ||
|
|
||
|
|
||
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.
We don't really need all these tests as this somewhat just tests zigpy itself but it's also fine to keep them for now.