zwave-js-server-python/zwave_js_server/const/command_class/sound_switch.py

18 lines
449 B
Python

"""Constants for the Sound Switch CC."""
from __future__ import annotations
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."""
# https://github.com/zwave-js/node-zwave-js/blob/master/packages/zwave-js/src/lib/commandclass/SoundSwitchCC.ts#L71
OFF = 0
DEFAULT = 255