File: notification.py

package info (click to toggle)
zwave-js-server-python 0.67.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,820 kB
  • sloc: python: 15,886; sh: 21; javascript: 16; makefile: 2
file content (970 lines) | stat: -rw-r--r-- 38,742 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
# pylint: disable=line-too-long
"""Constants for the Notification CC."""

# ----------------------------------------------------------------------------------- #
# **BEGINNING OF AUTOGENERATED CONTENT** (TO ADD ADDITIONAL MANUAL CONTENT, LOOK FOR  #
# THE "END OF AUTOGENERATED CONTENT" COMMENT BLOCK AND ADD YOUR CODE BELOW IT)        #
# ----------------------------------------------------------------------------------- #

from __future__ import annotations

from enum import IntEnum

CC_SPECIFIC_NOTIFICATION_TYPE = "notificationType"


class NotificationType(IntEnum):
    """Enum for known notification types."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ACCESS_CONTROL = 6
    APPLIANCE = 12
    CLOCK = 11
    CO_ALARM = 2
    CO2_ALARM = 3
    EMERGENCY_ALARM = 10
    GAS_ALARM = 18
    HEAT_ALARM = 4
    HOME_HEALTH = 13
    HOME_MONITORING = 22
    HOME_SECURITY = 7
    IRRIGATION = 17
    LIGHT_SENSOR = 20
    PEST_CONTROL = 19
    POWER_MANAGEMENT = 8
    SIREN = 14
    SMOKE_ALARM = 1
    SYSTEM = 9
    WATER_ALARM = 5
    WATER_QUALITY_MONITORING = 21
    WATER_VALVE = 15
    WEATHER_ALARM = 16

    @classmethod
    def _missing_(cls: type, value: object) -> NotificationType:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return NotificationType.UNKNOWN


class NotificationEvent(IntEnum):
    """Common base class for Notification CC states enums."""


class NotificationEventValue(IntEnum):
    """Common base class for Notification CC state value enums."""


class AccessControlNotificationEvent(NotificationEvent):
    """Enum for known access control notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ALL_USER_CODES_DELETED = 12
    ALL_USERS_DELETED = 37
    AUTO_LOCK_LOCKED_OPERATION = 9
    AUTO_LOCK_NOT_FULLY_LOCKED_OPERATION = 10
    BARRIER_BATTERY_STATUS_BARRIER_SENSOR_LOW_BATTERY_WARNING = 74
    BARRIER_CONTROL_STATUS_BARRIER_ASSOCIATED_WITH_NON_Z_WAVE_REMOTE_CONTROL = 76
    BARRIER_FAILED_TO_PERFORM_REQUESTED_OPERATION_DEVICE_MALFUNCTION = 70
    BARRIER_MOTOR_HAS_EXCEEDED_MANUFACTURER_S_OPERATIONAL_TIME_LIMIT = 66
    BARRIER_OPERATION_OPEN_CLOSE_FORCE_HAS_BEEN_EXCEEDED = 65
    BARRIER_OPERATION_HAS_EXCEEDED_PHYSICAL_MECHANICAL_LIMITS = 67
    BARRIER_PERFORMING_INITIALIZATION_PROCESS = 64
    BARRIER_SAFETY_BEAM_OBSTACLE = 72
    BARRIER_SENSOR_STATUS_BARRIER_SENSOR_NOT_DETECTED_SUPERVISORY_ERROR = 73
    BARRIER_SHORT_CIRCUIT_STATUS_BARRIER_DETECTED_SHORT_IN_WALL_STATION_WIRES = 75
    BARRIER_UL_DISABLING_STATUS_BARRIER_UNATTENDED_OPERATION_HAS_BEEN_DISABLED_PER_UL_REQUIREMENTS = (
        69
    )
    BARRIER_UNABLE_TO_PERFORM_REQUESTED_OPERATION_DUE_TO_UL_REQUIREMENTS = 68
    BARRIER_VACATION_MODE = 71
    CREDENTIAL_ADDED = 43
    CREDENTIAL_DELETED = 45
    CREDENTIAL_LOCK_OPEN_OPERATION = 35
    CREDENTIAL_MODIFIED = 44
    CREDENTIAL_UNCHANGED = 46
    CREDENTIAL_UNLOCK_CLOSE_OPERATION = 36
    DOOR_HANDLE_STATE_WINDOW_DOOR_HANDLE_IS_CLOSED = 25
    DOOR_HANDLE_STATE_WINDOW_DOOR_HANDLE_IS_OPEN = 24
    DOOR_STATE_WINDOW_DOOR_IS_CLOSED = 23
    DOOR_STATE_WINDOW_DOOR_IS_OPEN = 22
    INVALID_CREDENTIAL_USED = 50
    KEYPAD_LOCK_OPERATION = 5
    KEYPAD_STATE_KEYPAD_BUSY = 17
    KEYPAD_STATE_KEYPAD_TEMPORARY_DISABLED = 16
    KEYPAD_UNLOCK_OPERATION = 6
    LOCK_OPERATION_WITH_USER_CODE = 33
    LOCK_STATE_LOCK_JAMMED = 11
    LOCKED_BY_RF_WITH_INVALID_USER_CODE = 21
    MANUAL_LOCK_OPERATION = 1
    MANUAL_NOT_FULLY_LOCKED_OPERATION = 7
    MANUAL_UNLOCK_OPERATION = 2
    MANUALLY_ENTER_USER_ACCESS_CODE_EXCEEDS_CODE_LIMIT = 19
    MESSAGING_USER_CODE_ENTERED_VIA_KEYPAD = 32
    MULTIPLE_CREDENTIALS_DELETED = 38
    NEW_PROGRAM_CODE_ENTERED_UNIQUE_CODE_FOR_LOCK_CONFIGURATION = 18
    NEW_USER_CODE_ADDED = 14
    NEW_USER_CODE_NOT_ADDED_DUE_TO_DUPLICATE_CODE = 15
    NON_ACCESS_CREDENTIAL_ENTERED_VIA_LOCAL_INTERFACE = 51
    RF_LOCK_OPERATION = 3
    RF_NOT_FULLY_LOCKED_OPERATION = 8
    RF_UNLOCK_OPERATION = 4
    SINGLE_USER_CODE_DELETED = 13
    UNLOCK_BY_RF_WITH_INVALID_USER_CODE = 20
    UNLOCK_OPERATION_WITH_USER_CODE = 34
    USER_ADDED = 39
    USER_DELETED = 41
    USER_MODIFIED = 40
    USER_UNCHANGED = 42
    VALID_CREDENTIAL_ACCESS_DENIED_NOT_ENOUGH_CREDENTIALS_ENTERED = 49
    VALID_CREDENTIAL_ACCESS_DENIED_SCHEDULE_INACTIVE = 48
    VALID_CREDENTIAL_ACCESS_DENIED_USER_ACTIVE_STATE_SET_TO_OCCUPIED_DISABLED = 47

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> AccessControlNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return AccessControlNotificationEvent.UNKNOWN


class BarrierPerformingInitializationProcessNotificationEventValue(
    NotificationEventValue
):
    """Enum for known barrier performing initialization process notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    PERFORMING_PROCESS = 255
    PROCESS_COMPLETED = 0

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> BarrierPerformingInitializationProcessNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return BarrierPerformingInitializationProcessNotificationEventValue.UNKNOWN


class BarrierSafetyBeamObstacleNotificationEventValue(NotificationEventValue):
    """Enum for known barrier safety beam obstacle notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    NO_OBSTRUCTION = 0
    OBSTRUCTION = 255

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> BarrierSafetyBeamObstacleNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return BarrierSafetyBeamObstacleNotificationEventValue.UNKNOWN


class BarrierVacationModeNotificationEventValue(NotificationEventValue):
    """Enum for known barrier vacation mode notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    MODE_DISABLED = 0
    MODE_ENABLED = 255

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> BarrierVacationModeNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return BarrierVacationModeNotificationEventValue.UNKNOWN


class DoorStateWindowDoorIsOpenNotificationEventValue(NotificationEventValue):
    """Enum for known door state window/door is open notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    WINDOW_DOOR_IS_OPEN_IN_REGULAR_POSITION = 0
    WINDOW_DOOR_IS_OPEN_IN_TILT_POSITION = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> DoorStateWindowDoorIsOpenNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return DoorStateWindowDoorIsOpenNotificationEventValue.UNKNOWN


class ApplianceNotificationEvent(NotificationEvent):
    """Enum for known appliance notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    APPLIANCE_STATUS_BOILING = 8
    APPLIANCE_STATUS_DRAINING = 14
    APPLIANCE_STATUS_DRYING = 18
    APPLIANCE_STATUS_RINSING = 12
    APPLIANCE_STATUS_SPINNING = 16
    APPLIANCE_STATUS_SUPPLYING_WATER = 6
    APPLIANCE_STATUS_WASHING = 10
    BOILING_FAILURE = 9
    COMPRESSOR_FAILURE = 21
    DRAINING_FAILURE = 15
    DRYING_FAILURE = 19
    FAN_FAILURE = 20
    MAINTENANCE_STATUS_REPLACE_MAIN_FILTER = 4
    PROGRAM_STATUS_PROGRAM_COMPLETED = 3
    PROGRAM_STATUS_PROGRAM_IN_PROGRESS = 2
    PROGRAM_STATUS_PROGRAM_STARTED = 1
    RINSING_FAILURE = 13
    SPINNING_FAILURE = 17
    TARGET_TEMPERATURE_FAILURE_STATUS_FAILURE_TO_SET_TARGET_TEMPERATURE = 5
    WASHING_FAILURE = 11
    WATER_SUPPLY_FAILURE = 7

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> ApplianceNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return ApplianceNotificationEvent.UNKNOWN


class ClockNotificationEvent(NotificationEvent):
    """Enum for known clock notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    TIME_REMAINING = 3
    TIMER_ENDED = 2
    WAKE_UP_ALERT = 1

    @classmethod
    def _missing_(cls: type, value: object) -> ClockNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return ClockNotificationEvent.UNKNOWN


class CoAlarmNotificationEvent(NotificationEvent):
    """Enum for known co alarm notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ALARM_STATUS_ALARM_SILENCED = 6
    MAINTENANCE_STATUS_REPLACEMENT_REQUIRED = 4
    MAINTENANCE_STATUS_REPLACEMENT_REQUIRED_END_OF_LIFE = 5
    PERIODIC_INSPECTION_STATUS_MAINTENANCE_REQUIRED_PLANNED_PERIODIC_INSPECTION = 7
    SENSOR_STATUS_CARBON_MONOXIDE_DETECTED = 2
    SENSOR_STATUS_CARBON_MONOXIDE_DETECTED_LOCATION_PROVIDED = 1
    TEST_STATUS_CARBON_MONOXIDE_TEST = 3

    @classmethod
    def _missing_(cls: type, value: object) -> CoAlarmNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return CoAlarmNotificationEvent.UNKNOWN


class TestStatusCarbonMonoxideTestNotificationEventValue(NotificationEventValue):
    """Enum for known test status carbon monoxide test notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    TEST_FAILED = 2
    TEST_OK = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> TestStatusCarbonMonoxideTestNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return TestStatusCarbonMonoxideTestNotificationEventValue.UNKNOWN


class Co2AlarmNotificationEvent(NotificationEvent):
    """Enum for known co2 alarm notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ALARM_STATUS_ALARM_SILENCED = 6
    MAINTENANCE_STATUS_REPLACEMENT_REQUIRED = 4
    MAINTENANCE_STATUS_REPLACEMENT_REQUIRED_END_OF_LIFE = 5
    PERIODIC_INSPECTION_STATUS_MAINTENANCE_REQUIRED_PLANNED_PERIODIC_INSPECTION = 7
    SENSOR_STATUS_CARBON_DIOXIDE_DETECTED = 2
    SENSOR_STATUS_CARBON_DIOXIDE_DETECTED_LOCATION_PROVIDED = 1
    TEST_STATUS_CARBON_DIOXIDE_TEST = 3

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> Co2AlarmNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return Co2AlarmNotificationEvent.UNKNOWN


class TestStatusCarbonDioxideTestNotificationEventValue(NotificationEventValue):
    """Enum for known test status carbon dioxide test notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    TEST_FAILED = 2
    TEST_OK = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> TestStatusCarbonDioxideTestNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return TestStatusCarbonDioxideTestNotificationEventValue.UNKNOWN


class EmergencyAlarmNotificationEvent(NotificationEvent):
    """Enum for known emergency alarm notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    CONTACT_FIRE_SERVICE = 2
    CONTACT_MEDICAL_SERVICE = 3
    CONTACT_POLICE = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> EmergencyAlarmNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return EmergencyAlarmNotificationEvent.UNKNOWN


class GasAlarmNotificationEvent(NotificationEvent):
    """Enum for known gas alarm notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ALARM_STATUS_GAS_ALARM_TEST = 5
    COMBUSTIBLE_GAS_STATUS_COMBUSTIBLE_GAS_DETECTED = 2
    COMBUSTIBLE_GAS_STATUS_COMBUSTIBLE_GAS_DETECTED_LOCATION_PROVIDED = 1
    MAINTENANCE_STATUS_REPLACEMENT_REQUIRED = 6
    TOXIC_GAS_STATUS_TOXIC_GAS_DETECTED = 4
    TOXIC_GAS_STATUS_TOXIC_GAS_DETECTED_LOCATION_PROVIDED = 3

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> GasAlarmNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return GasAlarmNotificationEvent.UNKNOWN


class HeatAlarmNotificationEvent(NotificationEvent):
    """Enum for known heat alarm notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ALARM_STATUS_ALARM_SILENCED = 9
    ALARM_STATUS_HEAT_ALARM_TEST = 7
    DUST_IN_DEVICE_STATUS_MAINTENANCE_REQUIRED_DUST_IN_DEVICE = 10
    HEAT_SENSOR_STATUS_OVERHEAT_DETECTED = 2
    HEAT_SENSOR_STATUS_OVERHEAT_DETECTED_LOCATION_PROVIDED = 1
    HEAT_SENSOR_STATUS_UNDERHEAT_DETECTED = 6
    HEAT_SENSOR_STATUS_UNDERHEAT_DETECTED_LOCATION_PROVIDED = 5
    MAINTENANCE_STATUS_REPLACEMENT_REQUIRED_END_OF_LIFE = 8
    PERIODIC_INSPECTION_STATUS_MAINTENANCE_REQUIRED_PLANNED_PERIODIC_INSPECTION = 11
    RAPID_TEMPERATURE_FALL = 13
    RAPID_TEMPERATURE_FALL_LOCATION_PROVIDED = 12
    RAPID_TEMPERATURE_RISE = 4
    RAPID_TEMPERATURE_RISE_LOCATION_PROVIDED = 3

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> HeatAlarmNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return HeatAlarmNotificationEvent.UNKNOWN


class HomeHealthNotificationEvent(NotificationEvent):
    """Enum for known home health notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    FALL_DETECTED = 12
    POSITION_STATUS_LEAVING_BED = 1
    POSITION_STATUS_LYING_ON_BED = 3
    POSITION_STATUS_SITTING_ON_BED = 2
    POSITION_STATUS_SITTING_ON_BED_EDGE = 5
    POSTURE_CHANGED = 4
    SLEEP_APNEA_STATUS_SLEEP_APNEA_DETECTED = 7
    SLEEP_STAGE_STATUS_SLEEP_STAGE_0_DETECTED_DREAMING_REM = 8
    SLEEP_STAGE_STATUS_SLEEP_STAGE_1_DETECTED_LIGHT_SLEEP_NON_REM_1 = 9
    SLEEP_STAGE_STATUS_SLEEP_STAGE_2_DETECTED_MEDIUM_SLEEP_NON_REM_2 = 10
    SLEEP_STAGE_STATUS_SLEEP_STAGE_3_DETECTED_DEEP_SLEEP_NON_REM_3 = 11
    VOC_LEVEL_STATUS_VOLATILE_ORGANIC_COMPOUND_LEVEL = 6

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> HomeHealthNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return HomeHealthNotificationEvent.UNKNOWN


class SleepApneaStatusSleepApneaDetectedNotificationEventValue(NotificationEventValue):
    """Enum for known sleep apnea status sleep apnea detected notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    LOW_BREATH = 1
    NO_BREATH_AT_ALL = 2

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> SleepApneaStatusSleepApneaDetectedNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return SleepApneaStatusSleepApneaDetectedNotificationEventValue.UNKNOWN


class VocLevelStatusVolatileOrganicCompoundLevelNotificationEventValue(
    NotificationEventValue
):
    """Enum for known voc level status volatile organic compound level notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    CLEAN = 1
    HIGHLY_POLLUTED = 4
    MODERATELY_POLLUTED = 3
    SLIGHTLY_POLLUTED = 2

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> (
        VocLevelStatusVolatileOrganicCompoundLevelNotificationEventValue
    ):  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return VocLevelStatusVolatileOrganicCompoundLevelNotificationEventValue.UNKNOWN


class HomeMonitoringNotificationEvent(NotificationEvent):
    """Enum for known home monitoring notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    HOME_OCCUPANCY_STATUS_HOME_OCCUPIED = 2
    HOME_OCCUPANCY_STATUS_HOME_OCCUPIED_LOCATION_PROVIDED = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> HomeMonitoringNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return HomeMonitoringNotificationEvent.UNKNOWN


class HomeSecurityNotificationEvent(NotificationEvent):
    """Enum for known home security notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    COVER_STATUS_TAMPERING_PRODUCT_COVER_REMOVED = 3
    GLASS_BREAKAGE = 6
    GLASS_BREAKAGE_LOCATION_PROVIDED = 5
    IMPACT_DETECTED = 10
    MAGNETIC_INTERFERENCE_STATUS_MAGNETIC_FIELD_INTERFERENCE_DETECTED = 11
    MOTION_SENSOR_STATUS_MOTION_DETECTION = 8
    MOTION_SENSOR_STATUS_MOTION_DETECTION_LOCATION_PROVIDED = 7
    RF_JAMMING_DETECTED = 12
    SENSOR_STATUS_INTRUSION = 2
    SENSOR_STATUS_INTRUSION_LOCATION_PROVIDED = 1
    TAMPERING_INVALID_CODE = 4
    TAMPERING_PRODUCT_MOVED = 9

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> HomeSecurityNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return HomeSecurityNotificationEvent.UNKNOWN


class IrrigationNotificationEvent(NotificationEvent):
    """Enum for known irrigation notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    DEVICE_CONFIGURATION_STATUS_DEVICE_IS_NOT_CONFIGURED = 5
    SCHEDULE_ID_STATUS_SCHEDULE_FINISHED = 2
    SCHEDULE_ID_STATUS_SCHEDULE_STARTED = 1
    VALVE_ID_RUN_STATUS_VALVE_TABLE_RUN_FINISHED = 4
    VALVE_ID_RUN_STATUS_VALVE_TABLE_RUN_STARTED = 3

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> IrrigationNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return IrrigationNotificationEvent.UNKNOWN


class LightSensorNotificationEvent(NotificationEvent):
    """Enum for known light sensor notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    LIGHT_COLOR_TRANSITION_DETECTED = 2
    LIGHT_DETECTION_STATUS_LIGHT_DETECTED = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> LightSensorNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return LightSensorNotificationEvent.UNKNOWN


class PestControlNotificationEvent(NotificationEvent):
    """Enum for known pest control notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    PEST_DETECTED = 6
    PEST_DETECTED_LOCATION_PROVIDED = 5
    PEST_EXTERMINATED = 8
    PEST_EXTERMINATED_LOCATION_PROVIDED = 7
    TRAP_STATUS_TRAP_ARMED = 2
    TRAP_STATUS_TRAP_ARMED_LOCATION_PROVIDED = 1
    TRAP_STATUS_TRAP_RE_ARM_REQUIRED = 4
    TRAP_STATUS_TRAP_RE_ARM_REQUIRED_LOCATION_PROVIDED = 3

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> PestControlNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return PestControlNotificationEvent.UNKNOWN


class PowerManagementNotificationEvent(NotificationEvent):
    """Enum for known power management notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    BACKUP_BATTERY_LEVEL_STATUS_BACK_UP_BATTERY_DISCONNECTED = 18
    BACKUP_BATTERY_LEVEL_STATUS_BACK_UP_BATTERY_IS_LOW = 16
    BATTERY_LEVEL_STATUS_BATTERY_IS_FULLY_CHARGED = 13
    BATTERY_LEVEL_STATUS_CHARGE_BATTERY_NOW = 15
    BATTERY_LEVEL_STATUS_CHARGE_BATTERY_SOON = 14
    BATTERY_LOAD_STATUS_BATTERY_IS_CHARGING = 12
    BATTERY_MAINTENANCE_STATUS_BATTERY_FLUID_IS_LOW = 17
    BATTERY_MAINTENANCE_STATUS_REPLACE_BATTERY_NOW = 11
    BATTERY_MAINTENANCE_STATUS_REPLACE_BATTERY_SOON = 10
    LOAD_ERROR = 9
    MAINS_STATUS_AC_MAINS_DISCONNECTED = 2
    MAINS_STATUS_AC_MAINS_RE_CONNECTED = 3
    OVER_CURRENT_STATUS_OVER_CURRENT_DETECTED = 6
    OVER_LOAD_STATUS_OVER_LOAD_DETECTED = 8
    OVER_VOLTAGE_STATUS_OVER_VOLTAGE_DETECTED = 7
    POWER_STATUS_POWER_HAS_BEEN_APPLIED = 1
    SURGE_DETECTED = 4
    VOLTAGE_DROP_DRIFT = 5

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> PowerManagementNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return PowerManagementNotificationEvent.UNKNOWN


class SirenNotificationEvent(NotificationEvent):
    """Enum for known siren notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    SIREN_STATUS_SIREN_ACTIVE = 1

    @classmethod
    def _missing_(cls: type, value: object) -> SirenNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return SirenNotificationEvent.UNKNOWN


class SmokeAlarmNotificationEvent(NotificationEvent):
    """Enum for known smoke alarm notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ALARM_STATUS_ALARM_SILENCED = 6
    ALARM_STATUS_SMOKE_ALARM_TEST = 3
    DUST_IN_DEVICE_STATUS_MAINTENANCE_REQUIRED_DUST_IN_DEVICE = 8
    MAINTENANCE_STATUS_REPLACEMENT_REQUIRED = 4
    MAINTENANCE_STATUS_REPLACEMENT_REQUIRED_END_OF_LIFE = 5
    PERIODIC_INSPECTION_STATUS_MAINTENANCE_REQUIRED_PLANNED_PERIODIC_INSPECTION = 7
    SENSOR_STATUS_SMOKE_DETECTED = 2
    SENSOR_STATUS_SMOKE_DETECTED_LOCATION_PROVIDED = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> SmokeAlarmNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return SmokeAlarmNotificationEvent.UNKNOWN


class SystemNotificationEvent(NotificationEvent):
    """Enum for known system notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    COVER_STATUS_TAMPERING_PRODUCT_COVER_REMOVED = 6
    EMERGENCY_SHUTOFF = 7
    HARDWARE_STATUS_SYSTEM_HARDWARE_FAILURE = 1
    HARDWARE_STATUS_SYSTEM_HARDWARE_FAILURE_WITH_FAILURE_CODE = 3
    HEARTBEAT = 5
    SOFTWARE_STATUS_SYSTEM_SOFTWARE_FAILURE = 2
    SOFTWARE_STATUS_SYSTEM_SOFTWARE_FAILURE_WITH_FAILURE_CODE = 4

    @classmethod
    def _missing_(cls: type, value: object) -> SystemNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return SystemNotificationEvent.UNKNOWN


class WaterAlarmNotificationEvent(NotificationEvent):
    """Enum for known water alarm notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    MAINTENANCE_STATUS_REPLACE_WATER_FILTER = 5
    PUMP_STATUS_SUMP_PUMP_ACTIVE = 10
    PUMP_STATUS_SUMP_PUMP_FAILURE = 11
    SENSOR_STATUS_WATER_LEAK_DETECTED = 2
    SENSOR_STATUS_WATER_LEAK_DETECTED_LOCATION_PROVIDED = 1
    WATER_FLOW_ALARM = 6
    WATER_LEVEL_ALARM = 9
    WATER_LEVEL_DROPPED = 4
    WATER_LEVEL_DROPPED_LOCATION_PROVIDED = 3
    WATER_PRESSURE_ALARM = 7
    WATER_TEMPERATURE_ALARM = 8

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> WaterAlarmNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return WaterAlarmNotificationEvent.UNKNOWN


class WaterFlowAlarmNotificationEventValue(NotificationEventValue):
    """Enum for known water flow alarm notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ABOVE_HIGH_THRESHOLD = 3
    BELOW_LOW_THRESHOLD = 2
    MAX = 4
    NO_DATA = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> WaterFlowAlarmNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return WaterFlowAlarmNotificationEventValue.UNKNOWN


class WaterLevelAlarmNotificationEventValue(NotificationEventValue):
    """Enum for known water level alarm notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ABOVE_HIGH_THRESHOLD = 3
    BELOW_LOW_THRESHOLD = 2
    NO_DATA = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> WaterLevelAlarmNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return WaterLevelAlarmNotificationEventValue.UNKNOWN


class WaterPressureAlarmNotificationEventValue(NotificationEventValue):
    """Enum for known water pressure alarm notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ABOVE_HIGH_THRESHOLD = 3
    BELOW_LOW_THRESHOLD = 2
    MAX = 4
    NO_DATA = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> WaterPressureAlarmNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return WaterPressureAlarmNotificationEventValue.UNKNOWN


class WaterTemperatureAlarmNotificationEventValue(NotificationEventValue):
    """Enum for known water temperature alarm notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ABOVE_HIGH_THRESHOLD = 3
    BELOW_LOW_THRESHOLD = 2
    NO_DATA = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> WaterTemperatureAlarmNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return WaterTemperatureAlarmNotificationEventValue.UNKNOWN


class WaterQualityMonitoringNotificationEvent(NotificationEvent):
    """Enum for known water quality monitoring notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ACIDITY_PH_SENSOR_STATUS_ACIDITY_PH_EMPTY = 5
    ACIDITY_PH_STATUS_ACIDITY_PH_ALARM = 2
    CHLORINE_ALARM = 1
    CHLORINE_SENSOR_STATUS_CHLORINE_EMPTY = 4
    COLLECTIVE_DISORDER = 17
    DISINFECTION_SYSTEM_STATUS_DISINFECTION_SYSTEM_ERROR_DETECTED = 8
    DRY_PROTECTION_STATUS_DRY_PROTECTION_OPERATION_ACTIVE = 13
    FILTER_CLEANING_STATUS_FILTER_CLEANING_ONGOING = 9
    FILTER_PUMP_STATUS_FILTER_PUMP_OPERATION_ONGOING = 11
    FRESHWATER_FLOW_STATUS_FRESHWATER_OPERATION_ONGOING = 12
    HEATING_STATUS_HEATING_OPERATION_ONGOING = 10
    WATER_OXIDATION_ALARM = 3
    WATER_TANK_STATUS_WATER_TANK_IS_EMPTY = 14
    WATER_TANK_STATUS_WATER_TANK_IS_FULL = 16
    WATER_TANK_STATUS_WATER_TANK_LEVEL_IS_UNKNOWN = 15
    WATERFLOW_CLEAR_WATER_SENSOR_WATERFLOW_CLEAR_WATER_SHORTAGE_DETECTED = 7
    WATERFLOW_MEASURING_STATION_SENSOR_WATERFLOW_MEASURING_STATION_SHORTAGE_DETECTED = 6

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> WaterQualityMonitoringNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return WaterQualityMonitoringNotificationEvent.UNKNOWN


class AcidityStatusAcidityAlarmNotificationEventValue(NotificationEventValue):
    """Enum for known acidity (ph) status acidity (ph) alarm notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ABOVE_HIGH_THRESHOLD = 2
    BELOW_LOW_THRESHOLD = 1
    DECREASING_PH = 3
    INCREASING_PH = 4

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> AcidityStatusAcidityAlarmNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return AcidityStatusAcidityAlarmNotificationEventValue.UNKNOWN


class ChlorineAlarmNotificationEventValue(NotificationEventValue):
    """Enum for known chlorine alarm notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ABOVE_HIGH_THRESHOLD = 2
    BELOW_LOW_THRESHOLD = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> ChlorineAlarmNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return ChlorineAlarmNotificationEventValue.UNKNOWN


class WaterOxidationAlarmNotificationEventValue(NotificationEventValue):
    """Enum for known water oxidation alarm notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ABOVE_HIGH_THRESHOLD = 2
    BELOW_LOW_THRESHOLD = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> WaterOxidationAlarmNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return WaterOxidationAlarmNotificationEventValue.UNKNOWN


class WaterValveNotificationEvent(NotificationEvent):
    """Enum for known water valve notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    MASTER_VALVE_CURRENT_ALARM = 6
    MASTER_VALVE_OPERATION = 2
    MASTER_VALVE_SHORT_CIRCUIT = 4
    VALVE_CURRENT_ALARM = 5
    VALVE_JAMMED = 7
    VALVE_OPERATION = 1
    VALVE_SHORT_CIRCUIT = 3

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> WaterValveNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return WaterValveNotificationEvent.UNKNOWN


class MasterValveCurrentAlarmNotificationEventValue(NotificationEventValue):
    """Enum for known master valve current alarm notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ABOVE_HIGH_THRESHOLD = 3
    BELOW_LOW_THRESHOLD = 2
    MAX = 4
    NO_DATA = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> MasterValveCurrentAlarmNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return MasterValveCurrentAlarmNotificationEventValue.UNKNOWN


class MasterValveOperationNotificationEventValue(NotificationEventValue):
    """Enum for known master valve operation notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    OFF_CLOSED = 0
    ON_OPEN = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> MasterValveOperationNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return MasterValveOperationNotificationEventValue.UNKNOWN


class ValveCurrentAlarmNotificationEventValue(NotificationEventValue):
    """Enum for known valve current alarm notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    ABOVE_HIGH_THRESHOLD = 3
    BELOW_LOW_THRESHOLD = 2
    MAX = 4
    NO_DATA = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> ValveCurrentAlarmNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return ValveCurrentAlarmNotificationEventValue.UNKNOWN


class ValveOperationNotificationEventValue(NotificationEventValue):
    """Enum for known valve operation notification event value."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    OFF_CLOSED = 0
    ON_OPEN = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> ValveOperationNotificationEventValue:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return ValveOperationNotificationEventValue.UNKNOWN


class WeatherAlarmNotificationEvent(NotificationEvent):
    """Enum for known weather alarm notification event."""

    # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/registries/Notifications.ts
    UNKNOWN = -1
    FREEZE_ALARM = 3
    MOISTURE_ALARM = 2
    RAIN_ALARM = 1

    @classmethod
    def _missing_(
        cls: type, value: object
    ) -> WeatherAlarmNotificationEvent:  # noqa: ARG003
        """Set default enum member if an unknown value is provided."""
        return WeatherAlarmNotificationEvent.UNKNOWN


NOTIFICATION_TYPE_TO_EVENT_MAP: dict[NotificationType, type[NotificationEvent]] = {
    NotificationType.ACCESS_CONTROL: AccessControlNotificationEvent,
    NotificationType.APPLIANCE: ApplianceNotificationEvent,
    NotificationType.CLOCK: ClockNotificationEvent,
    NotificationType.CO_ALARM: CoAlarmNotificationEvent,
    NotificationType.CO2_ALARM: Co2AlarmNotificationEvent,
    NotificationType.EMERGENCY_ALARM: EmergencyAlarmNotificationEvent,
    NotificationType.GAS_ALARM: GasAlarmNotificationEvent,
    NotificationType.HEAT_ALARM: HeatAlarmNotificationEvent,
    NotificationType.HOME_HEALTH: HomeHealthNotificationEvent,
    NotificationType.HOME_MONITORING: HomeMonitoringNotificationEvent,
    NotificationType.HOME_SECURITY: HomeSecurityNotificationEvent,
    NotificationType.IRRIGATION: IrrigationNotificationEvent,
    NotificationType.LIGHT_SENSOR: LightSensorNotificationEvent,
    NotificationType.PEST_CONTROL: PestControlNotificationEvent,
    NotificationType.POWER_MANAGEMENT: PowerManagementNotificationEvent,
    NotificationType.SIREN: SirenNotificationEvent,
    NotificationType.SMOKE_ALARM: SmokeAlarmNotificationEvent,
    NotificationType.SYSTEM: SystemNotificationEvent,
    NotificationType.WATER_ALARM: WaterAlarmNotificationEvent,
    NotificationType.WATER_QUALITY_MONITORING: WaterQualityMonitoringNotificationEvent,
    NotificationType.WATER_VALVE: WaterValveNotificationEvent,
    NotificationType.WEATHER_ALARM: WeatherAlarmNotificationEvent,
}

NOTIFICATION_EVENT_TO_EVENT_VALUE_MAP: dict[
    NotificationEvent, type[NotificationEventValue]
] = {
    AccessControlNotificationEvent.BARRIER_PERFORMING_INITIALIZATION_PROCESS: BarrierPerformingInitializationProcessNotificationEventValue,
    AccessControlNotificationEvent.BARRIER_SAFETY_BEAM_OBSTACLE: BarrierSafetyBeamObstacleNotificationEventValue,
    AccessControlNotificationEvent.BARRIER_VACATION_MODE: BarrierVacationModeNotificationEventValue,
    AccessControlNotificationEvent.DOOR_STATE_WINDOW_DOOR_IS_OPEN: DoorStateWindowDoorIsOpenNotificationEventValue,
    Co2AlarmNotificationEvent.TEST_STATUS_CARBON_DIOXIDE_TEST: TestStatusCarbonDioxideTestNotificationEventValue,
    CoAlarmNotificationEvent.TEST_STATUS_CARBON_MONOXIDE_TEST: TestStatusCarbonMonoxideTestNotificationEventValue,
    HomeHealthNotificationEvent.SLEEP_APNEA_STATUS_SLEEP_APNEA_DETECTED: SleepApneaStatusSleepApneaDetectedNotificationEventValue,
    HomeHealthNotificationEvent.VOC_LEVEL_STATUS_VOLATILE_ORGANIC_COMPOUND_LEVEL: VocLevelStatusVolatileOrganicCompoundLevelNotificationEventValue,
    WaterAlarmNotificationEvent.WATER_FLOW_ALARM: WaterFlowAlarmNotificationEventValue,
    WaterAlarmNotificationEvent.WATER_LEVEL_ALARM: WaterLevelAlarmNotificationEventValue,
    WaterAlarmNotificationEvent.WATER_PRESSURE_ALARM: WaterPressureAlarmNotificationEventValue,
    WaterAlarmNotificationEvent.WATER_TEMPERATURE_ALARM: WaterTemperatureAlarmNotificationEventValue,
    WaterQualityMonitoringNotificationEvent.ACIDITY_PH_STATUS_ACIDITY_PH_ALARM: AcidityStatusAcidityAlarmNotificationEventValue,
    WaterQualityMonitoringNotificationEvent.CHLORINE_ALARM: ChlorineAlarmNotificationEventValue,
    WaterQualityMonitoringNotificationEvent.WATER_OXIDATION_ALARM: WaterOxidationAlarmNotificationEventValue,
    WaterValveNotificationEvent.MASTER_VALVE_CURRENT_ALARM: MasterValveCurrentAlarmNotificationEventValue,
    WaterValveNotificationEvent.MASTER_VALVE_OPERATION: MasterValveOperationNotificationEventValue,
    WaterValveNotificationEvent.VALVE_CURRENT_ALARM: ValveCurrentAlarmNotificationEventValue,
    WaterValveNotificationEvent.VALVE_OPERATION: ValveOperationNotificationEventValue,
}


# ----------------------------------------------------------------------------------- #
# **END OF AUTOGENERATED CONTENT** (DO NOT EDIT/REMOVE THIS COMMENT BLOCK AND DO NOT  #
# EDIT ANYTHING ABOVE IT. IF A NEW IMPORT IS NEEDED, ADD IT TO THE IMPORTS IN THE     #
# CORRESPONDING GENERATION SCRIPT THEN RE-RUN THE SCRIPT. LINES WRITTEN BELOW THIS    #
# BLOCK WILL BE PRESERVED AS LONG AS THIS BLOCK REMAINS)                              #
# ----------------------------------------------------------------------------------- #