@zwave-js/cc 14.3.10 → 15.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/cc/AlarmSensorCC.d.ts +68 -68
- package/build/cjs/cc/AlarmSensorCC.js +12 -50
- package/build/cjs/cc/AlarmSensorCC.js.map +2 -2
- package/build/cjs/cc/AssociationCC.d.ts +72 -73
- package/build/cjs/cc/AssociationCC.js +9 -26
- package/build/cjs/cc/AssociationCC.js.map +2 -2
- package/build/cjs/cc/AssociationGroupInfoCC.d.ts +71 -71
- package/build/cjs/cc/AssociationGroupInfoCC.js +11 -22
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +2 -2
- package/build/cjs/cc/BarrierOperatorCC.d.ts +66 -72
- package/build/cjs/cc/BarrierOperatorCC.js +12 -44
- package/build/cjs/cc/BarrierOperatorCC.js.map +2 -2
- package/build/cjs/cc/BasicCC.d.ts +64 -65
- package/build/cjs/cc/BasicCC.js +15 -46
- package/build/cjs/cc/BasicCC.js.map +2 -2
- package/build/cjs/cc/BatteryCC.d.ts +162 -165
- package/build/cjs/cc/BatteryCC.js +7 -84
- package/build/cjs/cc/BatteryCC.js.map +2 -2
- package/build/cjs/cc/BinarySensorCC.d.ts +36 -36
- package/build/cjs/cc/BinarySensorCC.js +9 -29
- package/build/cjs/cc/BinarySensorCC.js.map +2 -2
- package/build/cjs/cc/BinarySwitchCC.d.ts +34 -34
- package/build/cjs/cc/BinarySwitchCC.js +6 -22
- package/build/cjs/cc/BinarySwitchCC.js.map +2 -2
- package/build/cjs/cc/CRC16CC.d.ts +4 -8
- package/build/cjs/cc/CRC16CC.js +4 -27
- package/build/cjs/cc/CRC16CC.js.map +2 -2
- package/build/cjs/cc/CentralSceneCC.d.ts +74 -74
- package/build/cjs/cc/CentralSceneCC.js +7 -30
- package/build/cjs/cc/CentralSceneCC.js.map +2 -2
- package/build/cjs/cc/ClimateControlScheduleCC.d.ts +38 -40
- package/build/cjs/cc/ClimateControlScheduleCC.js +5 -24
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +2 -2
- package/build/cjs/cc/ClockCC.d.ts +3 -3
- package/build/cjs/cc/ClockCC.js.map +2 -2
- package/build/cjs/cc/ColorSwitchCC.d.ts +117 -117
- package/build/cjs/cc/ColorSwitchCC.js +23 -75
- package/build/cjs/cc/ColorSwitchCC.js.map +2 -2
- package/build/cjs/cc/ConfigurationCC._validateArgs.js +1 -1
- package/build/cjs/cc/ConfigurationCC._validateArgs.js.map +1 -1
- package/build/cjs/cc/ConfigurationCC.d.ts +48 -52
- package/build/cjs/cc/ConfigurationCC.js +11 -39
- package/build/cjs/cc/ConfigurationCC.js.map +2 -2
- package/build/cjs/cc/DeviceResetLocallyCC.d.ts +1 -1
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +2 -2
- package/build/cjs/cc/DoorLockCC._validateArgs.js +1 -1
- package/build/cjs/cc/DoorLockCC._validateArgs.js.map +1 -1
- package/build/cjs/cc/DoorLockCC.d.ts +362 -361
- package/build/cjs/cc/DoorLockCC.js +51 -156
- package/build/cjs/cc/DoorLockCC.js.map +2 -2
- package/build/cjs/cc/DoorLockLoggingCC.d.ts +14 -14
- package/build/cjs/cc/DoorLockLoggingCC.js +4 -8
- package/build/cjs/cc/DoorLockLoggingCC.js.map +2 -2
- package/build/cjs/cc/EnergyProductionCC.d.ts +16 -16
- package/build/cjs/cc/EnergyProductionCC.js +5 -17
- package/build/cjs/cc/EnergyProductionCC.js.map +2 -2
- package/build/cjs/cc/EntryControlCC.d.ts +71 -71
- package/build/cjs/cc/EntryControlCC.js +9 -36
- package/build/cjs/cc/EntryControlCC.js.map +2 -2
- package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts +2 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.js +26 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.js.map +1 -1
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +101 -88
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +159 -34
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlModeCC.d.ts +31 -33
- package/build/cjs/cc/HumidityControlModeCC.js +6 -15
- package/build/cjs/cc/HumidityControlModeCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +9 -11
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +4 -12
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlSetpointCC.d.ts +50 -50
- package/build/cjs/cc/HumidityControlSetpointCC.js +10 -28
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +2 -2
- package/build/cjs/cc/InclusionControllerCC.d.ts +4 -4
- package/build/cjs/cc/InclusionControllerCC.js.map +2 -2
- package/build/cjs/cc/IndicatorCC.d.ts +119 -119
- package/build/cjs/cc/IndicatorCC.js +15 -61
- package/build/cjs/cc/IndicatorCC.js.map +2 -2
- package/build/cjs/cc/IrrigationCC.d.ts +581 -585
- package/build/cjs/cc/IrrigationCC.js +29 -233
- package/build/cjs/cc/IrrigationCC.js.map +2 -2
- package/build/cjs/cc/LanguageCC.d.ts +21 -21
- package/build/cjs/cc/LanguageCC.js +4 -15
- package/build/cjs/cc/LanguageCC.js.map +2 -2
- package/build/cjs/cc/LockCC.d.ts +9 -9
- package/build/cjs/cc/LockCC.js +4 -12
- package/build/cjs/cc/LockCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +2 -2
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerSpecificCC.d.ts +67 -67
- package/build/cjs/cc/ManufacturerSpecificCC.js +5 -26
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +2 -2
- package/build/cjs/cc/MeterCC.d.ts +120 -119
- package/build/cjs/cc/MeterCC.js +25 -69
- package/build/cjs/cc/MeterCC.js.map +2 -2
- package/build/cjs/cc/MultiChannelAssociationCC.d.ts +71 -73
- package/build/cjs/cc/MultiChannelAssociationCC.js +10 -28
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +2 -2
- package/build/cjs/cc/MultiChannelCC.d.ts +136 -146
- package/build/cjs/cc/MultiChannelCC.js +26 -118
- package/build/cjs/cc/MultiChannelCC.js.map +2 -2
- package/build/cjs/cc/MultiCommandCC.d.ts +4 -8
- package/build/cjs/cc/MultiCommandCC.js +4 -37
- package/build/cjs/cc/MultiCommandCC.js.map +2 -2
- package/build/cjs/cc/MultilevelSensorCC.d.ts +50 -49
- package/build/cjs/cc/MultilevelSensorCC.js +12 -33
- package/build/cjs/cc/MultilevelSensorCC.js.map +2 -2
- package/build/cjs/cc/MultilevelSwitchCC.d.ts +146 -146
- package/build/cjs/cc/MultilevelSwitchCC.js +13 -107
- package/build/cjs/cc/MultilevelSwitchCC.js.map +2 -2
- package/build/cjs/cc/NodeNamingCC.d.ts +30 -30
- package/build/cjs/cc/NodeNamingCC.js +5 -16
- package/build/cjs/cc/NodeNamingCC.js.map +2 -2
- package/build/cjs/cc/NotificationCC.d.ts +210 -208
- package/build/cjs/cc/NotificationCC.js +41 -113
- package/build/cjs/cc/NotificationCC.js.map +2 -2
- package/build/cjs/cc/PowerlevelCC.d.ts +6 -6
- package/build/cjs/cc/PowerlevelCC.js.map +2 -2
- package/build/cjs/cc/ProtectionCC.d.ts +117 -121
- package/build/cjs/cc/ProtectionCC.js +15 -50
- package/build/cjs/cc/ProtectionCC.js.map +2 -2
- package/build/cjs/cc/SceneActivationCC.d.ts +29 -29
- package/build/cjs/cc/SceneActivationCC.js +4 -17
- package/build/cjs/cc/SceneActivationCC.js.map +2 -2
- package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +35 -35
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +9 -21
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +2 -2
- package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +36 -35
- package/build/cjs/cc/SceneControllerConfigurationCC.js +10 -22
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +2 -2
- package/build/cjs/cc/ScheduleEntryLockCC.d.ts +109 -109
- package/build/cjs/cc/ScheduleEntryLockCC.js +13 -30
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +2 -2
- package/build/cjs/cc/Security2CC.d.ts +15 -21
- package/build/cjs/cc/Security2CC.js +32 -347
- package/build/cjs/cc/Security2CC.js.map +3 -3
- package/build/cjs/cc/SecurityCC.d.ts +12 -19
- package/build/cjs/cc/SecurityCC.js +12 -106
- package/build/cjs/cc/SecurityCC.js.map +2 -2
- package/build/cjs/cc/SoundSwitchCC.d.ts +58 -58
- package/build/cjs/cc/SoundSwitchCC.js +11 -43
- package/build/cjs/cc/SoundSwitchCC.js.map +2 -2
- package/build/cjs/cc/SupervisionCC.d.ts +21 -25
- package/build/cjs/cc/SupervisionCC.js +8 -38
- package/build/cjs/cc/SupervisionCC.js.map +2 -2
- package/build/cjs/cc/ThermostatFanModeCC.d.ts +37 -39
- package/build/cjs/cc/ThermostatFanModeCC.js +8 -21
- package/build/cjs/cc/ThermostatFanModeCC.js.map +2 -2
- package/build/cjs/cc/ThermostatFanStateCC.d.ts +9 -11
- package/build/cjs/cc/ThermostatFanStateCC.js +4 -12
- package/build/cjs/cc/ThermostatFanStateCC.js.map +2 -2
- package/build/cjs/cc/ThermostatModeCC.d.ts +39 -41
- package/build/cjs/cc/ThermostatModeCC.js +8 -21
- package/build/cjs/cc/ThermostatModeCC.js.map +2 -2
- package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +9 -11
- package/build/cjs/cc/ThermostatOperatingStateCC.js +4 -12
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +2 -2
- package/build/cjs/cc/ThermostatSetbackCC.d.ts +4 -4
- package/build/cjs/cc/ThermostatSetbackCC.js.map +2 -2
- package/build/cjs/cc/ThermostatSetpointCC.d.ts +51 -51
- package/build/cjs/cc/ThermostatSetpointCC.js +10 -25
- package/build/cjs/cc/ThermostatSetpointCC.js.map +2 -2
- package/build/cjs/cc/TimeCC.d.ts +6 -6
- package/build/cjs/cc/TimeCC.js.map +2 -2
- package/build/cjs/cc/TimeParametersCC.d.ts +9 -9
- package/build/cjs/cc/TimeParametersCC.js +4 -11
- package/build/cjs/cc/TimeParametersCC.js.map +2 -2
- package/build/cjs/cc/TransportServiceCC.d.ts +7 -12
- package/build/cjs/cc/TransportServiceCC.js +3 -20
- package/build/cjs/cc/TransportServiceCC.js.map +2 -2
- package/build/cjs/cc/UserCodeCC._validateArgs.js +1 -1
- package/build/cjs/cc/UserCodeCC._validateArgs.js.map +1 -1
- package/build/cjs/cc/UserCodeCC.d.ts +236 -236
- package/build/cjs/cc/UserCodeCC.js +33 -98
- package/build/cjs/cc/UserCodeCC.js.map +2 -2
- package/build/cjs/cc/VersionCC.d.ts +210 -212
- package/build/cjs/cc/VersionCC.js +7 -98
- package/build/cjs/cc/VersionCC.js.map +2 -2
- package/build/cjs/cc/WakeUpCC.d.ts +44 -44
- package/build/cjs/cc/WakeUpCC.js +6 -26
- package/build/cjs/cc/WakeUpCC.js.map +2 -2
- package/build/cjs/cc/WindowCoveringCC.d.ts +118 -122
- package/build/cjs/cc/WindowCoveringCC.js +16 -128
- package/build/cjs/cc/WindowCoveringCC.js.map +2 -2
- package/build/cjs/cc/ZWavePlusCC.d.ts +74 -74
- package/build/cjs/cc/ZWavePlusCC.js +4 -25
- package/build/cjs/cc/ZWavePlusCC.js.map +2 -2
- package/build/cjs/cc/ZWaveProtocolCC.d.ts +28 -28
- package/build/cjs/cc/ZWaveProtocolCC.js.map +2 -2
- package/build/cjs/cc/_CCValues.generated.d.ts +15814 -0
- package/build/cjs/cc/_CCValues.generated.js +8723 -0
- package/build/cjs/cc/_CCValues.generated.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +4 -4
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +2 -2
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index_browser.d.ts +9 -0
- package/build/cjs/index_browser.js +41 -1
- package/build/cjs/index_browser.js.map +2 -2
- package/build/cjs/lib/API.d.ts +7 -5
- package/build/cjs/lib/API.js +1 -1
- package/build/cjs/lib/API.js.map +2 -2
- package/build/cjs/lib/CCValueUtils.d.ts +14 -0
- package/build/cjs/lib/CCValueUtils.js +93 -0
- package/build/cjs/lib/CCValueUtils.js.map +7 -0
- package/build/cjs/lib/CommandClass.d.ts +10 -21
- package/build/cjs/lib/CommandClass.js +51 -106
- package/build/cjs/lib/CommandClass.js.map +3 -3
- package/build/cjs/lib/CommandClassDecorators.d.ts +1 -1
- package/build/cjs/lib/CommandClassDecorators.js +3 -3
- package/build/cjs/lib/CommandClassDecorators.js.map +2 -2
- package/build/cjs/lib/Values.d.ts +7 -106
- package/build/cjs/lib/Values.js +13 -107
- package/build/cjs/lib/Values.js.map +3 -3
- package/build/cjs/lib/traits.d.ts +94 -0
- package/build/cjs/lib/traits.js +17 -0
- package/build/cjs/lib/traits.js.map +7 -0
- package/build/cjs/lib/utils.d.ts +2 -2
- package/build/cjs/lib/utils.js.map +2 -2
- package/build/esm/cc/AlarmSensorCC.d.ts +68 -68
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
- package/build/esm/cc/AlarmSensorCC.js +2 -40
- package/build/esm/cc/AlarmSensorCC.js.map +1 -1
- package/build/esm/cc/AssociationCC.d.ts +72 -73
- package/build/esm/cc/AssociationCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationCC.js +2 -27
- package/build/esm/cc/AssociationCC.js.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.d.ts +71 -71
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.js +2 -19
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.d.ts +66 -72
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.js +2 -37
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
- package/build/esm/cc/BasicCC.d.ts +64 -65
- package/build/esm/cc/BasicCC.d.ts.map +1 -1
- package/build/esm/cc/BasicCC.js +2 -34
- package/build/esm/cc/BasicCC.js.map +1 -1
- package/build/esm/cc/BatteryCC.d.ts +162 -165
- package/build/esm/cc/BatteryCC.d.ts.map +1 -1
- package/build/esm/cc/BatteryCC.js +3 -80
- package/build/esm/cc/BatteryCC.js.map +1 -1
- package/build/esm/cc/BinarySensorCC.d.ts +36 -36
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySensorCC.js +2 -19
- package/build/esm/cc/BinarySensorCC.js.map +1 -1
- package/build/esm/cc/BinarySwitchCC.d.ts +34 -34
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySwitchCC.js +2 -19
- package/build/esm/cc/BinarySwitchCC.js.map +1 -1
- package/build/esm/cc/CRC16CC.d.ts +4 -8
- package/build/esm/cc/CRC16CC.d.ts.map +1 -1
- package/build/esm/cc/CRC16CC.js +4 -34
- package/build/esm/cc/CRC16CC.js.map +1 -1
- package/build/esm/cc/CentralSceneCC.d.ts +74 -74
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
- package/build/esm/cc/CentralSceneCC.js +2 -27
- package/build/esm/cc/CentralSceneCC.js.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.d.ts +38 -40
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.js +2 -26
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/esm/cc/ClockCC.d.ts +3 -3
- package/build/esm/cc/ClockCC.d.ts.map +1 -1
- package/build/esm/cc/ClockCC.js +0 -1
- package/build/esm/cc/ClockCC.js.map +1 -1
- package/build/esm/cc/ColorSwitchCC.d.ts +117 -117
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/ColorSwitchCC.js +2 -58
- package/build/esm/cc/ColorSwitchCC.js.map +1 -1
- package/build/esm/cc/ConfigurationCC._validateArgs.js +1 -1
- package/build/esm/cc/ConfigurationCC._validateArgs.js.map +1 -1
- package/build/esm/cc/ConfigurationCC.d.ts +48 -52
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/ConfigurationCC.js +2 -40
- package/build/esm/cc/ConfigurationCC.js.map +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.d.ts +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/esm/cc/DoorLockCC._validateArgs.js +1 -1
- package/build/esm/cc/DoorLockCC._validateArgs.js.map +1 -1
- package/build/esm/cc/DoorLockCC.d.ts +362 -361
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockCC.js +9 -129
- package/build/esm/cc/DoorLockCC.js.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.d.ts +14 -14
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.js +2 -6
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/esm/cc/EnergyProductionCC.d.ts +16 -16
- package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/esm/cc/EnergyProductionCC.js +2 -15
- package/build/esm/cc/EnergyProductionCC.js.map +1 -1
- package/build/esm/cc/EntryControlCC.d.ts +71 -71
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
- package/build/esm/cc/EntryControlCC.js +2 -29
- package/build/esm/cc/EntryControlCC.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts +2 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.js +20 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +101 -88
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +160 -53
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.d.ts +31 -33
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.js +2 -11
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +9 -11
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.js +2 -9
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.d.ts +50 -50
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.js +2 -23
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/esm/cc/InclusionControllerCC.d.ts +4 -4
- package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -1
- package/build/esm/cc/InclusionControllerCC.js +0 -2
- package/build/esm/cc/InclusionControllerCC.js.map +1 -1
- package/build/esm/cc/IndicatorCC.d.ts +119 -119
- package/build/esm/cc/IndicatorCC.d.ts.map +1 -1
- package/build/esm/cc/IndicatorCC.js +2 -50
- package/build/esm/cc/IndicatorCC.js.map +1 -1
- package/build/esm/cc/IrrigationCC.d.ts +581 -585
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
- package/build/esm/cc/IrrigationCC.js +3 -231
- package/build/esm/cc/IrrigationCC.js.map +1 -1
- package/build/esm/cc/LanguageCC.d.ts +21 -21
- package/build/esm/cc/LanguageCC.d.ts.map +1 -1
- package/build/esm/cc/LanguageCC.js +2 -13
- package/build/esm/cc/LanguageCC.js.map +1 -1
- package/build/esm/cc/LockCC.d.ts +9 -9
- package/build/esm/cc/LockCC.d.ts.map +1 -1
- package/build/esm/cc/LockCC.js +2 -10
- package/build/esm/cc/LockCC.js.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts +2 -2
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.js +0 -2
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.d.ts +67 -67
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.js +2 -26
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/esm/cc/MeterCC.d.ts +120 -119
- package/build/esm/cc/MeterCC.d.ts.map +1 -1
- package/build/esm/cc/MeterCC.js +3 -53
- package/build/esm/cc/MeterCC.js.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.d.ts +71 -73
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.js +2 -30
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/esm/cc/MultiChannelCC.d.ts +136 -146
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelCC.js +10 -131
- package/build/esm/cc/MultiChannelCC.js.map +1 -1
- package/build/esm/cc/MultiCommandCC.d.ts +4 -8
- package/build/esm/cc/MultiCommandCC.d.ts.map +1 -1
- package/build/esm/cc/MultiCommandCC.js +4 -38
- package/build/esm/cc/MultiCommandCC.js.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.d.ts +50 -49
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.js +2 -27
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.d.ts +146 -146
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.js +5 -105
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/esm/cc/NodeNamingCC.d.ts +30 -30
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/esm/cc/NodeNamingCC.js +2 -14
- package/build/esm/cc/NodeNamingCC.js.map +1 -1
- package/build/esm/cc/NotificationCC.d.ts +210 -208
- package/build/esm/cc/NotificationCC.d.ts.map +1 -1
- package/build/esm/cc/NotificationCC.js +21 -97
- package/build/esm/cc/NotificationCC.js.map +1 -1
- package/build/esm/cc/PowerlevelCC.d.ts +6 -6
- package/build/esm/cc/PowerlevelCC.d.ts.map +1 -1
- package/build/esm/cc/PowerlevelCC.js +0 -4
- package/build/esm/cc/PowerlevelCC.js.map +1 -1
- package/build/esm/cc/ProtectionCC.d.ts +117 -121
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
- package/build/esm/cc/ProtectionCC.js +2 -39
- package/build/esm/cc/ProtectionCC.js.map +1 -1
- package/build/esm/cc/SceneActivationCC.d.ts +29 -29
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActivationCC.js +2 -15
- package/build/esm/cc/SceneActivationCC.js.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +35 -35
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.js +2 -16
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts +36 -35
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.js +2 -16
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.d.ts +109 -109
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.js +2 -31
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/esm/cc/Security2CC.d.ts +15 -21
- package/build/esm/cc/Security2CC.d.ts.map +1 -1
- package/build/esm/cc/Security2CC.js +27 -475
- package/build/esm/cc/Security2CC.js.map +1 -1
- package/build/esm/cc/SecurityCC.d.ts +12 -19
- package/build/esm/cc/SecurityCC.d.ts.map +1 -1
- package/build/esm/cc/SecurityCC.js +13 -138
- package/build/esm/cc/SecurityCC.js.map +1 -1
- package/build/esm/cc/SoundSwitchCC.d.ts +58 -58
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/SoundSwitchCC.js +2 -40
- package/build/esm/cc/SoundSwitchCC.js.map +1 -1
- package/build/esm/cc/SupervisionCC.d.ts +21 -25
- package/build/esm/cc/SupervisionCC.d.ts.map +1 -1
- package/build/esm/cc/SupervisionCC.js +6 -41
- package/build/esm/cc/SupervisionCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.d.ts +37 -39
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.js +2 -15
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.d.ts +9 -11
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.js +2 -9
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatModeCC.d.ts +39 -41
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatModeCC.js +2 -17
- package/build/esm/cc/ThermostatModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts +9 -11
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.js +2 -9
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetbackCC.d.ts +4 -4
- package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetbackCC.js +0 -2
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.d.ts +51 -51
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.js +2 -22
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/esm/cc/TimeCC.d.ts +6 -6
- package/build/esm/cc/TimeCC.d.ts.map +1 -1
- package/build/esm/cc/TimeCC.js +0 -4
- package/build/esm/cc/TimeCC.js.map +1 -1
- package/build/esm/cc/TimeParametersCC.d.ts +9 -9
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
- package/build/esm/cc/TimeParametersCC.js +2 -9
- package/build/esm/cc/TimeParametersCC.js.map +1 -1
- package/build/esm/cc/TransportServiceCC.d.ts +7 -12
- package/build/esm/cc/TransportServiceCC.d.ts.map +1 -1
- package/build/esm/cc/TransportServiceCC.js +5 -38
- package/build/esm/cc/TransportServiceCC.js.map +1 -1
- package/build/esm/cc/UserCodeCC._validateArgs.js +1 -1
- package/build/esm/cc/UserCodeCC._validateArgs.js.map +1 -1
- package/build/esm/cc/UserCodeCC.d.ts +236 -236
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
- package/build/esm/cc/UserCodeCC.js +2 -72
- package/build/esm/cc/UserCodeCC.js.map +1 -1
- package/build/esm/cc/VersionCC.d.ts +210 -212
- package/build/esm/cc/VersionCC.d.ts.map +1 -1
- package/build/esm/cc/VersionCC.js +2 -96
- package/build/esm/cc/VersionCC.js.map +1 -1
- package/build/esm/cc/WakeUpCC.d.ts +44 -44
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
- package/build/esm/cc/WakeUpCC.js +2 -22
- package/build/esm/cc/WakeUpCC.js.map +1 -1
- package/build/esm/cc/WindowCoveringCC.d.ts +118 -122
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
- package/build/esm/cc/WindowCoveringCC.js +3 -108
- package/build/esm/cc/WindowCoveringCC.js.map +1 -1
- package/build/esm/cc/ZWavePlusCC.d.ts +74 -74
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
- package/build/esm/cc/ZWavePlusCC.js +2 -26
- package/build/esm/cc/ZWavePlusCC.js.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.d.ts +28 -28
- package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.js +0 -27
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/esm/cc/_CCValues.generated.d.ts +15814 -0
- package/build/esm/cc/_CCValues.generated.d.ts.map +1 -0
- package/build/esm/cc/_CCValues.generated.js +9187 -0
- package/build/esm/cc/_CCValues.generated.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +4 -4
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -1
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +0 -3
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/esm/index.d.ts +1 -0
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index_browser.d.ts +9 -0
- package/build/esm/index_browser.d.ts.map +1 -1
- package/build/esm/index_browser.js +8 -1
- package/build/esm/index_browser.js.map +1 -1
- package/build/esm/lib/API.d.ts +7 -5
- package/build/esm/lib/API.d.ts.map +1 -1
- package/build/esm/lib/API.js +1 -1
- package/build/esm/lib/API.js.map +1 -1
- package/build/esm/lib/CCValueUtils.d.ts +14 -0
- package/build/esm/lib/CCValueUtils.d.ts.map +1 -0
- package/build/esm/lib/CCValueUtils.js +62 -0
- package/build/esm/lib/CCValueUtils.js.map +1 -0
- package/build/esm/lib/CommandClass.d.ts +10 -21
- package/build/esm/lib/CommandClass.d.ts.map +1 -1
- package/build/esm/lib/CommandClass.js +8 -101
- package/build/esm/lib/CommandClass.js.map +1 -1
- package/build/esm/lib/CommandClassDecorators.d.ts +1 -1
- package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -1
- package/build/esm/lib/CommandClassDecorators.js +1 -1
- package/build/esm/lib/CommandClassDecorators.js.map +1 -1
- package/build/esm/lib/Values.d.ts +7 -106
- package/build/esm/lib/Values.d.ts.map +1 -1
- package/build/esm/lib/Values.js +7 -104
- package/build/esm/lib/Values.js.map +1 -1
- package/build/esm/lib/traits.d.ts +94 -0
- package/build/esm/lib/traits.d.ts.map +1 -0
- package/build/esm/lib/traits.js +2 -0
- package/build/esm/lib/traits.js.map +1 -0
- package/build/esm/lib/utils.d.ts +2 -2
- package/build/esm/lib/utils.d.ts.map +1 -1
- package/build/esm/lib/utils.js.map +1 -1
- package/package.json +16 -14
|
@@ -38,10 +38,11 @@ __export(NotificationCC_exports, {
|
|
|
38
38
|
NotificationCCSet: () => NotificationCCSet,
|
|
39
39
|
NotificationCCSupportedGet: () => NotificationCCSupportedGet,
|
|
40
40
|
NotificationCCSupportedReport: () => NotificationCCSupportedReport,
|
|
41
|
-
NotificationCCValues: () => NotificationCCValues,
|
|
41
|
+
NotificationCCValues: () => import_CCValues_generated.NotificationCCValues,
|
|
42
42
|
getNotificationEnumBehavior: () => getNotificationEnumBehavior,
|
|
43
43
|
getNotificationStateValueWithEnum: () => getNotificationStateValueWithEnum,
|
|
44
|
-
getNotificationValueMetadata: () => getNotificationValueMetadata
|
|
44
|
+
getNotificationValueMetadata: () => getNotificationValueMetadata,
|
|
45
|
+
shouldAutoCreateSimpleDoorSensorValue: () => shouldAutoCreateSimpleDoorSensorValue
|
|
45
46
|
});
|
|
46
47
|
module.exports = __toCommonJS(NotificationCC_exports);
|
|
47
48
|
var __validateArgs = __toESM(require("./NotificationCC._validateArgs.js"), 1);
|
|
@@ -58,6 +59,7 @@ var import_Values = require("../lib/Values.js");
|
|
|
58
59
|
var import_Types = require("../lib/_Types.js");
|
|
59
60
|
var ccUtils = __toESM(require("../lib/utils.js"), 1);
|
|
60
61
|
var import_AssociationGroupInfoCC = require("./AssociationGroupInfoCC.js");
|
|
62
|
+
var import_CCValues_generated = require("./_CCValues.generated.js");
|
|
61
63
|
var __runInitializers = function(thisArg, initializers, value) {
|
|
62
64
|
var useValue = arguments.length > 2;
|
|
63
65
|
for (var i = 0; i < initializers.length; i++) {
|
|
@@ -99,97 +101,11 @@ var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializ
|
|
|
99
101
|
done = true;
|
|
100
102
|
};
|
|
101
103
|
const { validateArgs_NotificationCCAPI_sendReport, validateArgs_NotificationCCAPI_get, validateArgs_NotificationCCAPI_set, validateArgs_NotificationCCAPI_getSupportedEvents } = __validateArgs;
|
|
102
|
-
const NotificationCCValues = Object.freeze({
|
|
103
|
-
...import_Values.V.defineStaticCCValues(import_safe.CommandClasses.Notification, {
|
|
104
|
-
...import_Values.V.staticProperty("supportsV1Alarm", void 0, {
|
|
105
|
-
internal: true,
|
|
106
|
-
supportsEndpoints: false
|
|
107
|
-
}),
|
|
108
|
-
...import_Values.V.staticProperty("supportedNotificationTypes", void 0, {
|
|
109
|
-
internal: true,
|
|
110
|
-
supportsEndpoints: false
|
|
111
|
-
}),
|
|
112
|
-
...import_Values.V.staticProperty("notificationMode", void 0, {
|
|
113
|
-
internal: true,
|
|
114
|
-
supportsEndpoints: false
|
|
115
|
-
}),
|
|
116
|
-
...import_Values.V.staticProperty("lastRefresh", void 0, {
|
|
117
|
-
internal: true
|
|
118
|
-
}),
|
|
119
|
-
// V1 Alarm values
|
|
120
|
-
...import_Values.V.staticProperty("alarmType", {
|
|
121
|
-
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
122
|
-
label: "Alarm Type"
|
|
123
|
-
}),
|
|
124
|
-
...import_Values.V.staticProperty("alarmLevel", {
|
|
125
|
-
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
126
|
-
label: "Alarm Level"
|
|
127
|
-
}),
|
|
128
|
-
// Simplification for the Door state variable, where we cannot know
|
|
129
|
-
// if any of the enum values are supported
|
|
130
|
-
...import_Values.V.staticPropertyAndKeyWithName("doorStateSimple", "Access Control", "Door state (simple)", {
|
|
131
|
-
// Must be a number for compatibility reasons
|
|
132
|
-
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
133
|
-
label: "Door state (simple)",
|
|
134
|
-
states: {
|
|
135
|
-
[22]: "Window/door is open",
|
|
136
|
-
[23]: "Window/door is closed"
|
|
137
|
-
},
|
|
138
|
-
ccSpecific: {
|
|
139
|
-
notificationType: 6
|
|
140
|
-
}
|
|
141
|
-
}, {
|
|
142
|
-
autoCreate: shouldAutoCreateSimpleDoorSensorValue
|
|
143
|
-
}),
|
|
144
|
-
// Binary tilt value extracted from the Door state variable.
|
|
145
|
-
...import_Values.V.staticPropertyAndKeyWithName("doorTiltState", "Access Control", "Door tilt state", {
|
|
146
|
-
// Must be a number for compatibility reasons
|
|
147
|
-
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
148
|
-
label: "Door tilt state",
|
|
149
|
-
states: {
|
|
150
|
-
[0]: "Window/door is not tilted",
|
|
151
|
-
[1]: "Window/door is tilted"
|
|
152
|
-
},
|
|
153
|
-
ccSpecific: {
|
|
154
|
-
notificationType: 6
|
|
155
|
-
}
|
|
156
|
-
}, {
|
|
157
|
-
// This is created when the tilt state is first received.
|
|
158
|
-
autoCreate: false
|
|
159
|
-
})
|
|
160
|
-
}),
|
|
161
|
-
...import_Values.V.defineDynamicCCValues(import_safe.CommandClasses.Notification, {
|
|
162
|
-
...import_Values.V.dynamicPropertyAndKeyWithName("supportedNotificationEvents", "supportedNotificationEvents", (notificationType) => notificationType, ({ property, propertyKey }) => property === "supportedNotificationEvents" && typeof propertyKey === "number", void 0, { internal: true, supportsEndpoints: false }),
|
|
163
|
-
// Different variants of the V2 notification values:
|
|
164
|
-
// Unknown type
|
|
165
|
-
...import_Values.V.dynamicPropertyWithName("unknownNotificationType", (notificationType) => `UNKNOWN_${(0, import_safe3.num2hex)(notificationType)}`, ({ property }) => typeof property === "string" && property.startsWith("UNKNOWN_0x"), (notificationType) => ({
|
|
166
|
-
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
167
|
-
label: `Unknown notification (${(0, import_safe3.num2hex)(notificationType)})`,
|
|
168
|
-
ccSpecific: { notificationType }
|
|
169
|
-
})),
|
|
170
|
-
// Known type, unknown variable
|
|
171
|
-
...import_Values.V.dynamicPropertyAndKeyWithName("unknownNotificationVariable", (notificationType, notificationName) => notificationName, "unknown", ({ property, propertyKey }) => typeof property === "string" && propertyKey === "unknown", (notificationType, notificationName) => ({
|
|
172
|
-
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
173
|
-
label: `${notificationName}: Unknown value`,
|
|
174
|
-
ccSpecific: { notificationType }
|
|
175
|
-
})),
|
|
176
|
-
// (Stateful) notification variable
|
|
177
|
-
...import_Values.V.dynamicPropertyAndKeyWithName(
|
|
178
|
-
"notificationVariable",
|
|
179
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
180
|
-
(notificationName, variableName) => notificationName,
|
|
181
|
-
(notificationName, variableName) => variableName,
|
|
182
|
-
({ property, propertyKey }) => typeof property === "string" && typeof propertyKey === "string",
|
|
183
|
-
// Notification metadata is so dynamic, it does not make sense to define it here
|
|
184
|
-
void 0
|
|
185
|
-
)
|
|
186
|
-
})
|
|
187
|
-
});
|
|
188
104
|
function shouldAutoCreateSimpleDoorSensorValue(ctx, endpoint) {
|
|
189
105
|
const valueDB = ctx.tryGetValueDB(endpoint.nodeId);
|
|
190
106
|
if (!valueDB)
|
|
191
107
|
return false;
|
|
192
|
-
const supportedACEvents = valueDB.getValue(NotificationCCValues.supportedNotificationEvents(
|
|
108
|
+
const supportedACEvents = valueDB.getValue(import_CCValues_generated.NotificationCCValues.supportedNotificationEvents(
|
|
193
109
|
// Access Control
|
|
194
110
|
6
|
|
195
111
|
).endpoint(endpoint.index));
|
|
@@ -259,7 +175,7 @@ let NotificationCCAPI = (() => {
|
|
|
259
175
|
property,
|
|
260
176
|
propertyKey
|
|
261
177
|
};
|
|
262
|
-
if (NotificationCCValues.notificationVariable.is(valueId)) {
|
|
178
|
+
if (import_CCValues_generated.NotificationCCValues.notificationVariable.is(valueId)) {
|
|
263
179
|
const notificationType = this.tryGetValueDB()?.getMetadata(valueId)?.ccSpecific?.notificationType;
|
|
264
180
|
if (notificationType != void 0) {
|
|
265
181
|
return this.getInternal({ notificationType });
|
|
@@ -387,7 +303,7 @@ function getNotificationValueMetadata(previous, notification, valueConfig) {
|
|
|
387
303
|
}
|
|
388
304
|
__name(getNotificationValueMetadata, "getNotificationValueMetadata");
|
|
389
305
|
let NotificationCC = (() => {
|
|
390
|
-
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Notification), (0, import_CommandClassDecorators.implementedVersion)(8), (0, import_CommandClassDecorators.ccValues)(NotificationCCValues)];
|
|
306
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Notification), (0, import_CommandClassDecorators.implementedVersion)(8), (0, import_CommandClassDecorators.ccValues)(import_CCValues_generated.NotificationCCValues)];
|
|
391
307
|
let _classDescriptor;
|
|
392
308
|
let _classExtraInitializers = [];
|
|
393
309
|
let _classThis;
|
|
@@ -454,7 +370,7 @@ let NotificationCC = (() => {
|
|
|
454
370
|
}
|
|
455
371
|
/** Whether the node implements push or pull notifications */
|
|
456
372
|
static getNotificationMode(ctx, node) {
|
|
457
|
-
return ctx.getValueDB(node.id).getValue(NotificationCCValues.notificationMode.id);
|
|
373
|
+
return ctx.getValueDB(node.id).getValue(import_CCValues_generated.NotificationCCValues.notificationMode.id);
|
|
458
374
|
}
|
|
459
375
|
async interview(ctx) {
|
|
460
376
|
const node = this.getNode(ctx);
|
|
@@ -523,10 +439,10 @@ let NotificationCC = (() => {
|
|
|
523
439
|
}
|
|
524
440
|
}
|
|
525
441
|
}
|
|
526
|
-
let notificationMode = this.getValue(ctx, NotificationCCValues.notificationMode);
|
|
442
|
+
let notificationMode = this.getValue(ctx, import_CCValues_generated.NotificationCCValues.notificationMode);
|
|
527
443
|
if (notificationMode !== "push" && notificationMode !== "pull") {
|
|
528
444
|
notificationMode = await this.determineNotificationMode(ctx, api, supportedNotificationEvents);
|
|
529
|
-
this.setValue(ctx, NotificationCCValues.notificationMode, notificationMode);
|
|
445
|
+
this.setValue(ctx, import_CCValues_generated.NotificationCCValues.notificationMode, notificationMode);
|
|
530
446
|
}
|
|
531
447
|
if (notificationMode === "pull") {
|
|
532
448
|
await this.refreshValues(ctx);
|
|
@@ -546,7 +462,7 @@ let NotificationCC = (() => {
|
|
|
546
462
|
if (events) {
|
|
547
463
|
for (const variable of notification.variables.filter((v) => !!v.idle)) {
|
|
548
464
|
if ([...variable.states.keys()].some((key) => events.includes(key))) {
|
|
549
|
-
const value = NotificationCCValues.notificationVariable(notification.name, variable.name);
|
|
465
|
+
const value = import_CCValues_generated.NotificationCCValues.notificationVariable(notification.name, variable.name);
|
|
550
466
|
if (this.getValue(ctx, value) == void 0) {
|
|
551
467
|
this.setValue(ctx, value, 0);
|
|
552
468
|
}
|
|
@@ -558,8 +474,8 @@ let NotificationCC = (() => {
|
|
|
558
474
|
}
|
|
559
475
|
}
|
|
560
476
|
if (api.version === 1 || supportsV1Alarm) {
|
|
561
|
-
this.ensureMetadata(ctx, NotificationCCValues.alarmType);
|
|
562
|
-
this.ensureMetadata(ctx, NotificationCCValues.alarmLevel);
|
|
477
|
+
this.ensureMetadata(ctx, import_CCValues_generated.NotificationCCValues.alarmType);
|
|
478
|
+
this.ensureMetadata(ctx, import_CCValues_generated.NotificationCCValues.alarmLevel);
|
|
563
479
|
}
|
|
564
480
|
const mappings = ctx.getDeviceConfig?.(this.nodeId)?.compat?.alarmMapping;
|
|
565
481
|
if (mappings) {
|
|
@@ -576,7 +492,7 @@ let NotificationCC = (() => {
|
|
|
576
492
|
supportedNotificationTypesSet.add(to.notificationEvent);
|
|
577
493
|
if (valueConfig?.type !== "state")
|
|
578
494
|
continue;
|
|
579
|
-
const notificationValue = NotificationCCValues.notificationVariable(notification.name, valueConfig.variableName);
|
|
495
|
+
const notificationValue = import_CCValues_generated.NotificationCCValues.notificationVariable(notification.name, valueConfig.variableName);
|
|
580
496
|
const metadata = getNotificationValueMetadata(this.getMetadata(ctx, notificationValue), notification, valueConfig);
|
|
581
497
|
this.setMetadata(ctx, notificationValue, metadata);
|
|
582
498
|
if (valueConfig.idle) {
|
|
@@ -585,9 +501,9 @@ let NotificationCC = (() => {
|
|
|
585
501
|
}
|
|
586
502
|
}
|
|
587
503
|
}
|
|
588
|
-
this.setValue(ctx, NotificationCCValues.supportedNotificationTypes, [...supportedNotifications.keys()]);
|
|
504
|
+
this.setValue(ctx, import_CCValues_generated.NotificationCCValues.supportedNotificationTypes, [...supportedNotifications.keys()]);
|
|
589
505
|
for (const [type, events] of supportedNotifications) {
|
|
590
|
-
this.setValue(ctx, NotificationCCValues.supportedNotificationEvents(type), [...events]);
|
|
506
|
+
this.setValue(ctx, import_CCValues_generated.NotificationCCValues.supportedNotificationEvents(type), [...events]);
|
|
591
507
|
}
|
|
592
508
|
}
|
|
593
509
|
this.setInterviewComplete(ctx, true);
|
|
@@ -599,7 +515,7 @@ let NotificationCC = (() => {
|
|
|
599
515
|
const api = import_API.CCAPI.create(import_safe.CommandClasses.Notification, ctx, endpoint).withOptions({
|
|
600
516
|
priority: import_safe.MessagePriority.NodeQuery
|
|
601
517
|
});
|
|
602
|
-
const supportedNotificationTypes = this.getValue(ctx, NotificationCCValues.supportedNotificationTypes) ?? [];
|
|
518
|
+
const supportedNotificationTypes = this.getValue(ctx, import_CCValues_generated.NotificationCCValues.supportedNotificationTypes) ?? [];
|
|
603
519
|
const supportedNotificationNames = supportedNotificationTypes.map(import_core.getNotificationName);
|
|
604
520
|
for (let i = 0; i < supportedNotificationTypes.length; i++) {
|
|
605
521
|
const type = supportedNotificationTypes[i];
|
|
@@ -615,14 +531,14 @@ let NotificationCC = (() => {
|
|
|
615
531
|
if (response)
|
|
616
532
|
await node.handleCommand(response);
|
|
617
533
|
}
|
|
618
|
-
this.setValue(ctx, NotificationCCValues.lastRefresh, Date.now());
|
|
534
|
+
this.setValue(ctx, import_CCValues_generated.NotificationCCValues.lastRefresh, Date.now());
|
|
619
535
|
}
|
|
620
536
|
}
|
|
621
537
|
shouldRefreshValues(ctx) {
|
|
622
538
|
const isPullMode = NotificationCC2.getNotificationMode(ctx, this.getNode(ctx)) === "pull";
|
|
623
539
|
if (!isPullMode)
|
|
624
540
|
return false;
|
|
625
|
-
const lastUpdated = this.getValue(ctx, NotificationCCValues.lastRefresh);
|
|
541
|
+
const lastUpdated = this.getValue(ctx, import_CCValues_generated.NotificationCCValues.lastRefresh);
|
|
626
542
|
return lastUpdated == void 0 || Date.now() - lastUpdated > import_core.timespan.hours(6);
|
|
627
543
|
}
|
|
628
544
|
};
|
|
@@ -761,9 +677,9 @@ let NotificationCCReport = (() => {
|
|
|
761
677
|
const ccVersion = (0, import_CommandClass.getEffectiveCCVersion)(ctx, this);
|
|
762
678
|
if (this.alarmType != void 0 && this.alarmLevel != void 0 && this.alarmType !== 0) {
|
|
763
679
|
if (ccVersion >= 2) {
|
|
764
|
-
const supportedNotificationTypes = this.getValue(ctx, NotificationCCValues.supportedNotificationTypes);
|
|
680
|
+
const supportedNotificationTypes = this.getValue(ctx, import_CCValues_generated.NotificationCCValues.supportedNotificationTypes);
|
|
765
681
|
if ((0, import_typeguards.isArray)(supportedNotificationTypes) && supportedNotificationTypes.includes(this.alarmType)) {
|
|
766
|
-
const supportedNotificationEvents = this.getValue(ctx, NotificationCCValues.supportedNotificationEvents(this.alarmType));
|
|
682
|
+
const supportedNotificationEvents = this.getValue(ctx, import_CCValues_generated.NotificationCCValues.supportedNotificationEvents(this.alarmType));
|
|
767
683
|
if ((0, import_typeguards.isArray)(supportedNotificationEvents) && supportedNotificationEvents.includes(this.alarmLevel)) {
|
|
768
684
|
ctx.logNode(this.nodeId, `treating V1 Alarm frame as Notification Report`);
|
|
769
685
|
this.notificationType = this.alarmType;
|
|
@@ -794,12 +710,12 @@ let NotificationCCReport = (() => {
|
|
|
794
710
|
}
|
|
795
711
|
this.parseEventParameters(ctx);
|
|
796
712
|
if (this.alarmType != void 0) {
|
|
797
|
-
const alarmTypeValue = NotificationCCValues.alarmType;
|
|
713
|
+
const alarmTypeValue = import_CCValues_generated.NotificationCCValues.alarmType;
|
|
798
714
|
this.ensureMetadata(ctx, alarmTypeValue);
|
|
799
715
|
this.setValue(ctx, alarmTypeValue, this.alarmType);
|
|
800
716
|
}
|
|
801
717
|
if (this.alarmLevel != void 0) {
|
|
802
|
-
const alarmLevelValue = NotificationCCValues.alarmLevel;
|
|
718
|
+
const alarmLevelValue = import_CCValues_generated.NotificationCCValues.alarmLevel;
|
|
803
719
|
this.ensureMetadata(ctx, alarmLevelValue);
|
|
804
720
|
this.setValue(ctx, alarmLevelValue, this.alarmLevel);
|
|
805
721
|
}
|
|
@@ -909,7 +825,15 @@ let NotificationCCReport = (() => {
|
|
|
909
825
|
};
|
|
910
826
|
} else {
|
|
911
827
|
try {
|
|
912
|
-
const
|
|
828
|
+
const raw = import_CommandClass.CCRaw.parse(this.eventParameters);
|
|
829
|
+
if (raw.ccCommand == void 0) {
|
|
830
|
+
import_safe.validatePayload.fail("event parameters contain an invalid CC");
|
|
831
|
+
}
|
|
832
|
+
const CommandConstructor = (0, import_CommandClassDecorators.getCCCommandConstructor)(raw.ccId, raw.ccCommand);
|
|
833
|
+
if (!CommandConstructor) {
|
|
834
|
+
import_safe.validatePayload.fail("event parameters contain an invalid CC");
|
|
835
|
+
}
|
|
836
|
+
const cc = CommandConstructor.from(raw, {
|
|
913
837
|
...ctx,
|
|
914
838
|
frameType: "singlecast",
|
|
915
839
|
sourceNodeId: this.nodeId,
|
|
@@ -923,6 +847,9 @@ let NotificationCCReport = (() => {
|
|
|
923
847
|
securityManager2: void 0,
|
|
924
848
|
securityManagerLR: void 0
|
|
925
849
|
});
|
|
850
|
+
if (cc instanceof Promise) {
|
|
851
|
+
import_safe.validatePayload.fail("Cannot asynchronously parse CC from event parameters");
|
|
852
|
+
}
|
|
926
853
|
(0, import_safe.validatePayload)(!(cc instanceof import_CommandClass.InvalidCC));
|
|
927
854
|
cc.encapsulatingCC = this;
|
|
928
855
|
if ((0, import_NotificationEventPayload.isNotificationEventPayload)(cc)) {
|
|
@@ -1087,7 +1014,7 @@ let NotificationCCGet = (() => {
|
|
|
1087
1014
|
return NotificationCCGet2 = _classThis;
|
|
1088
1015
|
})();
|
|
1089
1016
|
let NotificationCCSupportedReport = (() => {
|
|
1090
|
-
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.NotificationCommand.SupportedReport), (0, import_CommandClassDecorators.ccValueProperty)("supportsV1Alarm", NotificationCCValues.supportsV1Alarm), (0, import_CommandClassDecorators.ccValueProperty)("supportedNotificationTypes", NotificationCCValues.supportedNotificationTypes)];
|
|
1017
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.NotificationCommand.SupportedReport), (0, import_CommandClassDecorators.ccValueProperty)("supportsV1Alarm", import_CCValues_generated.NotificationCCValues.supportsV1Alarm), (0, import_CommandClassDecorators.ccValueProperty)("supportedNotificationTypes", import_CCValues_generated.NotificationCCValues.supportedNotificationTypes)];
|
|
1091
1018
|
let _classDescriptor;
|
|
1092
1019
|
let _classExtraInitializers = [];
|
|
1093
1020
|
let _classThis;
|
|
@@ -1228,16 +1155,16 @@ let NotificationCCEventSupportedReport = (() => {
|
|
|
1228
1155
|
persistValues(ctx) {
|
|
1229
1156
|
if (!super.persistValues(ctx))
|
|
1230
1157
|
return false;
|
|
1231
|
-
this.setValue(ctx, NotificationCCValues.supportedNotificationEvents(this.notificationType), this.supportedEvents);
|
|
1158
|
+
this.setValue(ctx, import_CCValues_generated.NotificationCCValues.supportedNotificationEvents(this.notificationType), this.supportedEvents);
|
|
1232
1159
|
const notification = (0, import_core.getNotification)(this.notificationType);
|
|
1233
1160
|
if (!notification) {
|
|
1234
|
-
this.setMetadata(ctx, NotificationCCValues.unknownNotificationType(this.notificationType));
|
|
1161
|
+
this.setMetadata(ctx, import_CCValues_generated.NotificationCCValues.unknownNotificationType(this.notificationType));
|
|
1235
1162
|
} else {
|
|
1236
1163
|
let isFirst = true;
|
|
1237
1164
|
for (const value of this.supportedEvents) {
|
|
1238
1165
|
const valueConfig = (0, import_core.getNotificationValue)(notification, value);
|
|
1239
1166
|
if (valueConfig?.type === "state") {
|
|
1240
|
-
const notificationValue = NotificationCCValues.notificationVariable(notification.name, valueConfig.variableName);
|
|
1167
|
+
const notificationValue = import_CCValues_generated.NotificationCCValues.notificationVariable(notification.name, valueConfig.variableName);
|
|
1241
1168
|
const metadata = getNotificationValueMetadata(isFirst ? void 0 : this.getMetadata(ctx, notificationValue), notification, valueConfig);
|
|
1242
1169
|
this.setMetadata(ctx, notificationValue, metadata);
|
|
1243
1170
|
isFirst = false;
|
|
@@ -1332,6 +1259,7 @@ let NotificationCCEventSupportedGet = (() => {
|
|
|
1332
1259
|
NotificationCCValues,
|
|
1333
1260
|
getNotificationEnumBehavior,
|
|
1334
1261
|
getNotificationStateValueWithEnum,
|
|
1335
|
-
getNotificationValueMetadata
|
|
1262
|
+
getNotificationValueMetadata,
|
|
1263
|
+
shouldAutoCreateSimpleDoorSensorValue
|
|
1336
1264
|
});
|
|
1337
1265
|
//# sourceMappingURL=NotificationCC.js.map
|