Skip to content

Commit

Permalink
allow trigger distance in meters as ZY-M100 does (#705)
Browse files Browse the repository at this point in the history
* triggerdistance for ZY-M100

ZY-M100 has triggerdistance in meters

* add comment to clarify distance is meters

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

* remove trailing whitespace

---------

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
  • Loading branch information
MichaelHeimann and Kane610 authored Dec 16, 2024
1 parent 2411a27 commit 0290954
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pydeconz/models/sensor/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@ class PresenceConfigTriggerDistance(enum.StrEnum):
MEDIUM = "medium"
NEAR = "near"

# Trigger distance in meters
ONE = "1"
TWO = "2"
THREE = "3"
FOUR = "4"
FIVE = "5"
SIX = "6"
SEVEN = "7"
EIGHT = "8"
NINE = "9"


class PresenceStatePresenceEvent(enum.StrEnum):
"""Current activity associated with current presence state.
Expand Down

0 comments on commit 0290954

Please sign in to comment.