Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions zwave_js_server/const/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@

INTERVIEW_FAILED = "Failed"

CURRENT_STATE_PROPERTY = "currentState"
TARGET_STATE_PROPERTY = "targetState"
CURRENT_VALUE_PROPERTY = "currentValue"
TARGET_VALUE_PROPERTY = "targetValue"

TRANSITION_DURATION_OPTION = "transitionDuration"
VOLUME_OPTION = "volume"


class CommandStatus(str, Enum):
"""Status of a command sent to zwave-js-server."""
Expand Down
2 changes: 2 additions & 0 deletions zwave_js_server/const/command_class/barrier_operator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""Constants for the Barrier Operator CC."""
from enum import IntEnum

SIGNALING_STATE_PROPERTY = "signalingState"


class BarrierEventSignalingSubsystemState(IntEnum):
"""Enum with all (known/used) Z-Wave Barrier Event Signaling Subsystem States."""
Expand Down
4 changes: 4 additions & 0 deletions zwave_js_server/const/command_class/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class CodeSlotStatus(IntEnum):

LOCK_USERCODE_PROPERTY = "userCode"
LOCK_USERCODE_STATUS_PROPERTY = "userIdStatus"
DOOR_STATUS_PROPERTY = "doorStatus"
CURRENT_MODE_PROPERTY = "currentMode"
LOCKED_PROPERTY = "locked"

ATTR_CODE_SLOT = "code_slot"
ATTR_IN_USE = "in_use"
ATTR_NAME = "name"
Expand Down
2 changes: 2 additions & 0 deletions zwave_js_server/const/command_class/meter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from enum import IntEnum
from typing import Dict, Set, Type, Union

VALUE_PROPERTY = "value"

CC_SPECIFIC_SCALE = "scale"
CC_SPECIFIC_METER_TYPE = "meterType"
CC_SPECIFIC_RATE_TYPE = "rateType"
Expand Down
3 changes: 3 additions & 0 deletions zwave_js_server/const/command_class/notification.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Constants for the Notification CC."""

CC_SPECIFIC_NOTIFICATION_TYPE = "notificationType"
4 changes: 4 additions & 0 deletions zwave_js_server/const/command_class/protection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""Constants for the Protection CC."""

LOCAL_PROPERTY = "local"
RF_PROPERTY = "rf"
4 changes: 4 additions & 0 deletions zwave_js_server/const/command_class/sound_switch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
"""Constants for the Sound Switch CC."""
from enum import IntEnum

TONE_ID_PROPERTY = "toneId"
DEFAULT_TONE_ID_PROPERTY = "defaultToneId"
DEFAULT_VOLUME_PROPERTY = "defaultVolume"


class ToneID(IntEnum):
"""Enum with all known Sound Switch CC tone IDs."""
Expand Down