Skip to content
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

Create script to generate notification enums and check if git is dirty #773

Merged
merged 14 commits into from
Oct 13, 2023
30 changes: 30 additions & 0 deletions zwave_js_server/const/command_class/notification.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,34 @@
"""Constants for the Notification CC."""
from __future__ import annotations

from enum import IntEnum

CC_SPECIFIC_NOTIFICATION_TYPE = "notificationType"


class NotificationType(IntEnum):
"""Enum with all (known/used) Z-Wave notification types."""

# https://github.com/zwave-js/node-zwave-js/blob/master/packages/config/config/notifications.json
SMOKE_ALARM = 1
CARBON_MONOXIDE_ALARM = 2
CARBON_DIOXIDE_ALARM = 3
HEAT_ALARM = 4
WATER_ALARM = 5
ACCESS_CONTROL = 6
HOME_SECURITY = 7
POWER_MANAGEMENT = 8
SYSTEM = 9
EMERGENCY = 10
CLOCK = 11
APPLIANCE = 12
HOME_HEALTH = 13
SIREN = 14
WATER_VALVE = 15
WEATHER_ALARM = 16
IRRIGATION = 17
GAS = 18
PEST_CONTROL = 19
LIGHT_SENSOR = 20
WATER_QUALITY_MONITORING = 21
HOME_MONITORING = 22