@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
|
@@ -1,189 +1,188 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type
|
|
1
|
+
import { type CCEncodingContext, type CCParsingContext } from "@zwave-js/cc";
|
|
2
|
+
import { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, type SupervisionResult, Timeout, type WithAddress } from "@zwave-js/core/safe";
|
|
3
3
|
import { Bytes } from "@zwave-js/shared/safe";
|
|
4
4
|
import { CCAPI, POLL_VALUE, type PollValueImplementation, SET_VALUE, type SetValueImplementation } from "../lib/API.js";
|
|
5
5
|
import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext } from "../lib/CommandClass.js";
|
|
6
6
|
import { LocalProtectionState, ProtectionCommand, RFProtectionState } from "../lib/_Types.js";
|
|
7
7
|
export declare const ProtectionCCValues: Readonly<{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
commandClass: CommandClasses.Protection;
|
|
11
|
-
property: "
|
|
8
|
+
exclusiveControlNodeId: {
|
|
9
|
+
id: {
|
|
10
|
+
readonly commandClass: CommandClasses.Protection;
|
|
11
|
+
readonly property: "exclusiveControlNodeId";
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
endpoint: (endpoint?: number) => {
|
|
14
14
|
readonly commandClass: CommandClasses.Protection;
|
|
15
15
|
readonly endpoint: number;
|
|
16
|
-
readonly property: "
|
|
16
|
+
readonly property: "exclusiveControlNodeId";
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
19
19
|
readonly meta: {
|
|
20
|
-
readonly
|
|
20
|
+
readonly min: 1;
|
|
21
|
+
readonly max: 232;
|
|
22
|
+
readonly label: "Node ID with exclusive control";
|
|
23
|
+
readonly type: "number";
|
|
21
24
|
readonly readable: true;
|
|
22
25
|
readonly writeable: true;
|
|
23
26
|
};
|
|
24
|
-
|
|
25
|
-
readonly
|
|
27
|
+
options: {
|
|
28
|
+
readonly internal: false;
|
|
29
|
+
readonly minVersion: 2;
|
|
26
30
|
readonly secret: false;
|
|
27
|
-
readonly
|
|
31
|
+
readonly stateful: true;
|
|
28
32
|
readonly supportsEndpoints: true;
|
|
29
33
|
readonly autoCreate: true;
|
|
30
|
-
readonly internal: true;
|
|
31
34
|
};
|
|
32
35
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
commandClass: CommandClasses.Protection;
|
|
36
|
-
property: "
|
|
36
|
+
localProtectionState: {
|
|
37
|
+
id: {
|
|
38
|
+
readonly commandClass: CommandClasses.Protection;
|
|
39
|
+
readonly property: "local";
|
|
37
40
|
};
|
|
38
|
-
|
|
41
|
+
endpoint: (endpoint?: number) => {
|
|
39
42
|
readonly commandClass: CommandClasses.Protection;
|
|
40
43
|
readonly endpoint: number;
|
|
41
|
-
readonly property: "
|
|
44
|
+
readonly property: "local";
|
|
42
45
|
};
|
|
43
|
-
|
|
46
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
44
47
|
readonly meta: {
|
|
45
|
-
readonly
|
|
48
|
+
readonly label: "Local protection state";
|
|
49
|
+
readonly states: Record<number, string>;
|
|
50
|
+
readonly type: "number";
|
|
46
51
|
readonly readable: true;
|
|
47
52
|
readonly writeable: true;
|
|
48
53
|
};
|
|
49
|
-
|
|
50
|
-
readonly
|
|
51
|
-
readonly secret: false;
|
|
54
|
+
options: {
|
|
55
|
+
readonly internal: false;
|
|
52
56
|
readonly minVersion: 1;
|
|
57
|
+
readonly secret: false;
|
|
58
|
+
readonly stateful: true;
|
|
53
59
|
readonly supportsEndpoints: true;
|
|
54
60
|
readonly autoCreate: true;
|
|
55
|
-
readonly internal: true;
|
|
56
61
|
};
|
|
57
62
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
commandClass: CommandClasses.Protection;
|
|
61
|
-
property: "
|
|
63
|
+
rfProtectionState: {
|
|
64
|
+
id: {
|
|
65
|
+
readonly commandClass: CommandClasses.Protection;
|
|
66
|
+
readonly property: "rf";
|
|
62
67
|
};
|
|
63
|
-
|
|
68
|
+
endpoint: (endpoint?: number) => {
|
|
64
69
|
readonly commandClass: CommandClasses.Protection;
|
|
65
70
|
readonly endpoint: number;
|
|
66
|
-
readonly property: "
|
|
71
|
+
readonly property: "rf";
|
|
67
72
|
};
|
|
68
|
-
|
|
73
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
69
74
|
readonly meta: {
|
|
70
|
-
readonly
|
|
75
|
+
readonly label: "RF protection state";
|
|
76
|
+
readonly states: Record<number, string>;
|
|
77
|
+
readonly type: "number";
|
|
71
78
|
readonly readable: true;
|
|
72
79
|
readonly writeable: true;
|
|
73
80
|
};
|
|
74
|
-
|
|
75
|
-
readonly
|
|
81
|
+
options: {
|
|
82
|
+
readonly internal: false;
|
|
83
|
+
readonly minVersion: 2;
|
|
76
84
|
readonly secret: false;
|
|
77
|
-
readonly
|
|
85
|
+
readonly stateful: true;
|
|
78
86
|
readonly supportsEndpoints: true;
|
|
79
87
|
readonly autoCreate: true;
|
|
80
|
-
readonly internal: true;
|
|
81
88
|
};
|
|
82
89
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
commandClass: CommandClasses.Protection;
|
|
86
|
-
property: "
|
|
90
|
+
timeout: {
|
|
91
|
+
id: {
|
|
92
|
+
readonly commandClass: CommandClasses.Protection;
|
|
93
|
+
readonly property: "timeout";
|
|
87
94
|
};
|
|
88
|
-
|
|
95
|
+
endpoint: (endpoint?: number) => {
|
|
89
96
|
readonly commandClass: CommandClasses.Protection;
|
|
90
97
|
readonly endpoint: number;
|
|
91
|
-
readonly property: "
|
|
98
|
+
readonly property: "timeout";
|
|
92
99
|
};
|
|
93
|
-
|
|
100
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
94
101
|
readonly meta: {
|
|
95
|
-
readonly
|
|
102
|
+
readonly label: "RF protection timeout";
|
|
103
|
+
readonly min: 0;
|
|
104
|
+
readonly max: 255;
|
|
105
|
+
readonly type: "number";
|
|
96
106
|
readonly readable: true;
|
|
97
107
|
readonly writeable: true;
|
|
98
108
|
};
|
|
99
|
-
|
|
100
|
-
readonly
|
|
109
|
+
options: {
|
|
110
|
+
readonly internal: false;
|
|
111
|
+
readonly minVersion: 2;
|
|
101
112
|
readonly secret: false;
|
|
102
|
-
readonly
|
|
113
|
+
readonly stateful: true;
|
|
103
114
|
readonly supportsEndpoints: true;
|
|
104
115
|
readonly autoCreate: true;
|
|
105
|
-
readonly internal: true;
|
|
106
116
|
};
|
|
107
117
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
commandClass: CommandClasses.Protection;
|
|
111
|
-
property: "
|
|
118
|
+
supportsExclusiveControl: {
|
|
119
|
+
id: {
|
|
120
|
+
readonly commandClass: CommandClasses.Protection;
|
|
121
|
+
readonly property: "supportsExclusiveControl";
|
|
112
122
|
};
|
|
113
|
-
|
|
123
|
+
endpoint: (endpoint?: number) => {
|
|
114
124
|
readonly commandClass: CommandClasses.Protection;
|
|
115
125
|
readonly endpoint: number;
|
|
116
|
-
readonly property: "
|
|
126
|
+
readonly property: "supportsExclusiveControl";
|
|
117
127
|
};
|
|
118
|
-
|
|
119
|
-
readonly meta: {
|
|
120
|
-
readonly
|
|
121
|
-
readonly min: 0;
|
|
122
|
-
readonly max: 255;
|
|
123
|
-
readonly type: "number";
|
|
128
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
129
|
+
readonly meta: Readonly<{
|
|
130
|
+
readonly type: "any";
|
|
124
131
|
readonly readable: true;
|
|
125
132
|
readonly writeable: true;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
readonly
|
|
133
|
+
}>;
|
|
134
|
+
options: {
|
|
135
|
+
readonly internal: true;
|
|
136
|
+
readonly minVersion: 1;
|
|
129
137
|
readonly secret: false;
|
|
130
|
-
readonly
|
|
138
|
+
readonly stateful: true;
|
|
131
139
|
readonly supportsEndpoints: true;
|
|
132
140
|
readonly autoCreate: true;
|
|
133
|
-
readonly minVersion: 2;
|
|
134
141
|
};
|
|
135
142
|
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
commandClass: CommandClasses.Protection;
|
|
139
|
-
property: "
|
|
143
|
+
supportsTimeout: {
|
|
144
|
+
id: {
|
|
145
|
+
readonly commandClass: CommandClasses.Protection;
|
|
146
|
+
readonly property: "supportsTimeout";
|
|
140
147
|
};
|
|
141
|
-
|
|
148
|
+
endpoint: (endpoint?: number) => {
|
|
142
149
|
readonly commandClass: CommandClasses.Protection;
|
|
143
150
|
readonly endpoint: number;
|
|
144
|
-
readonly property: "
|
|
151
|
+
readonly property: "supportsTimeout";
|
|
145
152
|
};
|
|
146
|
-
|
|
147
|
-
readonly meta: {
|
|
148
|
-
readonly
|
|
149
|
-
readonly states: {
|
|
150
|
-
[x: number]: string;
|
|
151
|
-
};
|
|
152
|
-
readonly type: "number";
|
|
153
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
154
|
+
readonly meta: Readonly<{
|
|
155
|
+
readonly type: "any";
|
|
153
156
|
readonly readable: true;
|
|
154
157
|
readonly writeable: true;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
readonly
|
|
158
|
+
}>;
|
|
159
|
+
options: {
|
|
160
|
+
readonly internal: true;
|
|
161
|
+
readonly minVersion: 1;
|
|
158
162
|
readonly secret: false;
|
|
159
|
-
readonly
|
|
163
|
+
readonly stateful: true;
|
|
160
164
|
readonly supportsEndpoints: true;
|
|
161
165
|
readonly autoCreate: true;
|
|
162
|
-
readonly minVersion: 2;
|
|
163
166
|
};
|
|
164
167
|
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
commandClass: CommandClasses.Protection;
|
|
168
|
-
property: "
|
|
168
|
+
supportedLocalStates: {
|
|
169
|
+
id: {
|
|
170
|
+
readonly commandClass: CommandClasses.Protection;
|
|
171
|
+
readonly property: "supportedLocalStates";
|
|
169
172
|
};
|
|
170
|
-
|
|
173
|
+
endpoint: (endpoint?: number) => {
|
|
171
174
|
readonly commandClass: CommandClasses.Protection;
|
|
172
175
|
readonly endpoint: number;
|
|
173
|
-
readonly property: "
|
|
176
|
+
readonly property: "supportedLocalStates";
|
|
174
177
|
};
|
|
175
|
-
|
|
176
|
-
readonly meta: {
|
|
177
|
-
readonly
|
|
178
|
-
readonly states: {
|
|
179
|
-
[x: number]: string;
|
|
180
|
-
};
|
|
181
|
-
readonly type: "number";
|
|
178
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
179
|
+
readonly meta: Readonly<{
|
|
180
|
+
readonly type: "any";
|
|
182
181
|
readonly readable: true;
|
|
183
182
|
readonly writeable: true;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
readonly internal:
|
|
183
|
+
}>;
|
|
184
|
+
options: {
|
|
185
|
+
readonly internal: true;
|
|
187
186
|
readonly minVersion: 1;
|
|
188
187
|
readonly secret: false;
|
|
189
188
|
readonly stateful: true;
|
|
@@ -191,32 +190,29 @@ export declare const ProtectionCCValues: Readonly<{
|
|
|
191
190
|
readonly autoCreate: true;
|
|
192
191
|
};
|
|
193
192
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
commandClass: CommandClasses.Protection;
|
|
197
|
-
property: "
|
|
193
|
+
supportedRFStates: {
|
|
194
|
+
id: {
|
|
195
|
+
readonly commandClass: CommandClasses.Protection;
|
|
196
|
+
readonly property: "supportedRFStates";
|
|
198
197
|
};
|
|
199
|
-
|
|
198
|
+
endpoint: (endpoint?: number) => {
|
|
200
199
|
readonly commandClass: CommandClasses.Protection;
|
|
201
200
|
readonly endpoint: number;
|
|
202
|
-
readonly property: "
|
|
201
|
+
readonly property: "supportedRFStates";
|
|
203
202
|
};
|
|
204
|
-
|
|
205
|
-
readonly meta: {
|
|
206
|
-
readonly
|
|
207
|
-
readonly max: 232;
|
|
208
|
-
readonly label: "Node ID with exclusive control";
|
|
209
|
-
readonly type: "number";
|
|
203
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
204
|
+
readonly meta: Readonly<{
|
|
205
|
+
readonly type: "any";
|
|
210
206
|
readonly readable: true;
|
|
211
207
|
readonly writeable: true;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
readonly
|
|
208
|
+
}>;
|
|
209
|
+
options: {
|
|
210
|
+
readonly internal: true;
|
|
211
|
+
readonly minVersion: 1;
|
|
215
212
|
readonly secret: false;
|
|
216
|
-
readonly
|
|
213
|
+
readonly stateful: true;
|
|
217
214
|
readonly supportsEndpoints: true;
|
|
218
215
|
readonly autoCreate: true;
|
|
219
|
-
readonly minVersion: 2;
|
|
220
216
|
};
|
|
221
217
|
};
|
|
222
218
|
}>;
|
|
@@ -246,7 +242,7 @@ export declare class ProtectionCCSet extends ProtectionCC {
|
|
|
246
242
|
static from(_raw: CCRaw, _ctx: CCParsingContext): ProtectionCCSet;
|
|
247
243
|
local: LocalProtectionState;
|
|
248
244
|
rf?: RFProtectionState;
|
|
249
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
245
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
250
246
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
251
247
|
}
|
|
252
248
|
export interface ProtectionCCReportOptions {
|
|
@@ -298,7 +294,7 @@ export declare class ProtectionCCExclusiveControlSet extends ProtectionCC {
|
|
|
298
294
|
constructor(options: WithAddress<ProtectionCCExclusiveControlSetOptions>);
|
|
299
295
|
static from(_raw: CCRaw, _ctx: CCParsingContext): ProtectionCCExclusiveControlSet;
|
|
300
296
|
exclusiveControlNodeId: number;
|
|
301
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
297
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
302
298
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
303
299
|
}
|
|
304
300
|
export interface ProtectionCCTimeoutReportOptions {
|
|
@@ -319,7 +315,7 @@ export declare class ProtectionCCTimeoutSet extends ProtectionCC {
|
|
|
319
315
|
constructor(options: WithAddress<ProtectionCCTimeoutSetOptions>);
|
|
320
316
|
static from(_raw: CCRaw, _ctx: CCParsingContext): ProtectionCCTimeoutSet;
|
|
321
317
|
timeout: Timeout;
|
|
322
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
318
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
323
319
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
324
320
|
}
|
|
325
321
|
//# sourceMappingURL=ProtectionCC.d.ts.map
|
|
@@ -42,7 +42,7 @@ __export(ProtectionCC_exports, {
|
|
|
42
42
|
ProtectionCCTimeoutGet: () => ProtectionCCTimeoutGet,
|
|
43
43
|
ProtectionCCTimeoutReport: () => ProtectionCCTimeoutReport,
|
|
44
44
|
ProtectionCCTimeoutSet: () => ProtectionCCTimeoutSet,
|
|
45
|
-
ProtectionCCValues: () => ProtectionCCValues
|
|
45
|
+
ProtectionCCValues: () => import_CCValues_generated.ProtectionCCValues
|
|
46
46
|
});
|
|
47
47
|
module.exports = __toCommonJS(ProtectionCC_exports);
|
|
48
48
|
var __validateArgs = __toESM(require("./ProtectionCC._validateArgs.js"), 1);
|
|
@@ -54,6 +54,7 @@ var import_CommandClass = require("../lib/CommandClass.js");
|
|
|
54
54
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
55
55
|
var import_Values = require("../lib/Values.js");
|
|
56
56
|
var import_Types = require("../lib/_Types.js");
|
|
57
|
+
var import_CCValues_generated = require("./_CCValues.generated.js");
|
|
57
58
|
var __runInitializers = function(thisArg, initializers, value) {
|
|
58
59
|
var useValue = arguments.length > 2;
|
|
59
60
|
for (var i = 0; i < initializers.length; i++) {
|
|
@@ -95,42 +96,6 @@ var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializ
|
|
|
95
96
|
done = true;
|
|
96
97
|
};
|
|
97
98
|
const { validateArgs_ProtectionCCAPI_set, validateArgs_ProtectionCCAPI_setExclusiveControl, validateArgs_ProtectionCCAPI_setTimeout } = __validateArgs;
|
|
98
|
-
const ProtectionCCValues = Object.freeze({
|
|
99
|
-
...import_Values.V.defineStaticCCValues(import_safe.CommandClasses.Protection, {
|
|
100
|
-
...import_Values.V.staticProperty("exclusiveControlNodeId", {
|
|
101
|
-
...import_safe.ValueMetadata.UInt8,
|
|
102
|
-
min: 1,
|
|
103
|
-
max: import_safe.MAX_NODES,
|
|
104
|
-
label: "Node ID with exclusive control"
|
|
105
|
-
}, { minVersion: 2 }),
|
|
106
|
-
...import_Values.V.staticPropertyWithName("localProtectionState", "local", {
|
|
107
|
-
...import_safe.ValueMetadata.Number,
|
|
108
|
-
label: "Local protection state",
|
|
109
|
-
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.LocalProtectionState)
|
|
110
|
-
}),
|
|
111
|
-
...import_Values.V.staticPropertyWithName("rfProtectionState", "rf", {
|
|
112
|
-
...import_safe.ValueMetadata.Number,
|
|
113
|
-
label: "RF protection state",
|
|
114
|
-
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.RFProtectionState)
|
|
115
|
-
}, { minVersion: 2 }),
|
|
116
|
-
...import_Values.V.staticProperty("timeout", {
|
|
117
|
-
...import_safe.ValueMetadata.UInt8,
|
|
118
|
-
label: "RF protection timeout"
|
|
119
|
-
}, { minVersion: 2 }),
|
|
120
|
-
...import_Values.V.staticProperty("supportsExclusiveControl", void 0, {
|
|
121
|
-
internal: true
|
|
122
|
-
}),
|
|
123
|
-
...import_Values.V.staticProperty("supportsTimeout", void 0, {
|
|
124
|
-
internal: true
|
|
125
|
-
}),
|
|
126
|
-
...import_Values.V.staticProperty("supportedLocalStates", void 0, {
|
|
127
|
-
internal: true
|
|
128
|
-
}),
|
|
129
|
-
...import_Values.V.staticProperty("supportedRFStates", void 0, {
|
|
130
|
-
internal: true
|
|
131
|
-
})
|
|
132
|
-
})
|
|
133
|
-
});
|
|
134
99
|
let ProtectionCCAPI = (() => {
|
|
135
100
|
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses.Protection)];
|
|
136
101
|
let _classDescriptor;
|
|
@@ -172,11 +137,11 @@ let ProtectionCCAPI = (() => {
|
|
|
172
137
|
return this.version >= 2 && this.isSinglecast();
|
|
173
138
|
case import_Types.ProtectionCommand.TimeoutGet:
|
|
174
139
|
case import_Types.ProtectionCommand.TimeoutSet: {
|
|
175
|
-
return this.isSinglecast() && this.tryGetValueDB()?.getValue(ProtectionCCValues.supportsTimeout.endpoint(this.endpoint.index));
|
|
140
|
+
return this.isSinglecast() && this.tryGetValueDB()?.getValue(import_CCValues_generated.ProtectionCCValues.supportsTimeout.endpoint(this.endpoint.index));
|
|
176
141
|
}
|
|
177
142
|
case import_Types.ProtectionCommand.ExclusiveControlGet:
|
|
178
143
|
case import_Types.ProtectionCommand.ExclusiveControlSet: {
|
|
179
|
-
return this.isSinglecast() && this.tryGetValueDB()?.getValue(ProtectionCCValues.supportsExclusiveControl.endpoint(this.endpoint.index));
|
|
144
|
+
return this.isSinglecast() && this.tryGetValueDB()?.getValue(import_CCValues_generated.ProtectionCCValues.supportsExclusiveControl.endpoint(this.endpoint.index));
|
|
180
145
|
}
|
|
181
146
|
}
|
|
182
147
|
return super.supportsCommand(cmd);
|
|
@@ -188,13 +153,13 @@ let ProtectionCCAPI = (() => {
|
|
|
188
153
|
if (typeof value !== "number") {
|
|
189
154
|
(0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
190
155
|
}
|
|
191
|
-
const rf = valueDB?.getValue(ProtectionCCValues.rfProtectionState.endpoint(this.endpoint.index));
|
|
156
|
+
const rf = valueDB?.getValue(import_CCValues_generated.ProtectionCCValues.rfProtectionState.endpoint(this.endpoint.index));
|
|
192
157
|
return this.set(value, rf);
|
|
193
158
|
} else if (property === "rf") {
|
|
194
159
|
if (typeof value !== "number") {
|
|
195
160
|
(0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
196
161
|
}
|
|
197
|
-
const local = valueDB?.getValue(ProtectionCCValues.localProtectionState.endpoint(this.endpoint.index));
|
|
162
|
+
const local = valueDB?.getValue(import_CCValues_generated.ProtectionCCValues.localProtectionState.endpoint(this.endpoint.index));
|
|
198
163
|
return this.set(local ?? import_Types.LocalProtectionState.Unprotected, value);
|
|
199
164
|
} else if (property === "exclusiveControlNodeId") {
|
|
200
165
|
if (typeof value !== "number") {
|
|
@@ -302,7 +267,7 @@ let ProtectionCCAPI = (() => {
|
|
|
302
267
|
return ProtectionCCAPI2 = _classThis;
|
|
303
268
|
})();
|
|
304
269
|
let ProtectionCC = (() => {
|
|
305
|
-
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Protection), (0, import_CommandClassDecorators.implementedVersion)(2), (0, import_CommandClassDecorators.ccValues)(ProtectionCCValues)];
|
|
270
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Protection), (0, import_CommandClassDecorators.implementedVersion)(2), (0, import_CommandClassDecorators.ccValues)(import_CCValues_generated.ProtectionCCValues)];
|
|
306
271
|
let _classDescriptor;
|
|
307
272
|
let _classExtraInitializers = [];
|
|
308
273
|
let _classThis;
|
|
@@ -365,8 +330,8 @@ RF protection states: ${resp.supportedRFStates.map((local) => (0, import_safe
|
|
|
365
330
|
const api = import_API.CCAPI.create(import_safe.CommandClasses.Protection, ctx, endpoint).withOptions({
|
|
366
331
|
priority: import_safe.MessagePriority.NodeQuery
|
|
367
332
|
});
|
|
368
|
-
const supportsExclusiveControl = !!this.getValue(ctx, ProtectionCCValues.supportsExclusiveControl);
|
|
369
|
-
const supportsTimeout = !!this.getValue(ctx, ProtectionCCValues.supportsTimeout);
|
|
333
|
+
const supportsExclusiveControl = !!this.getValue(ctx, import_CCValues_generated.ProtectionCCValues.supportsExclusiveControl);
|
|
334
|
+
const supportsTimeout = !!this.getValue(ctx, import_CCValues_generated.ProtectionCCValues.supportsTimeout);
|
|
370
335
|
ctx.logNode(node.id, {
|
|
371
336
|
message: "querying protection status...",
|
|
372
337
|
direction: "outbound"
|
|
@@ -471,7 +436,7 @@ let ProtectionCCSet = (() => {
|
|
|
471
436
|
return ProtectionCCSet2 = _classThis;
|
|
472
437
|
})();
|
|
473
438
|
let ProtectionCCReport = (() => {
|
|
474
|
-
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ProtectionCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("local", ProtectionCCValues.localProtectionState), (0, import_CommandClassDecorators.ccValueProperty)("rf", ProtectionCCValues.rfProtectionState)];
|
|
439
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ProtectionCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("local", import_CCValues_generated.ProtectionCCValues.localProtectionState), (0, import_CommandClassDecorators.ccValueProperty)("rf", import_CCValues_generated.ProtectionCCValues.rfProtectionState)];
|
|
475
440
|
let _classDescriptor;
|
|
476
441
|
let _classExtraInitializers = [];
|
|
477
442
|
let _classThis;
|
|
@@ -549,7 +514,7 @@ let ProtectionCCGet = (() => {
|
|
|
549
514
|
return ProtectionCCGet2 = _classThis;
|
|
550
515
|
})();
|
|
551
516
|
let ProtectionCCSupportedReport = (() => {
|
|
552
|
-
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ProtectionCommand.SupportedReport), (0, import_CommandClassDecorators.ccValueProperty)("supportsExclusiveControl", ProtectionCCValues.supportsExclusiveControl), (0, import_CommandClassDecorators.ccValueProperty)("supportsTimeout", ProtectionCCValues.supportsTimeout), (0, import_CommandClassDecorators.ccValueProperty)("supportedLocalStates", ProtectionCCValues.supportedLocalStates), (0, import_CommandClassDecorators.ccValueProperty)("supportedRFStates", ProtectionCCValues.supportedRFStates)];
|
|
517
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ProtectionCommand.SupportedReport), (0, import_CommandClassDecorators.ccValueProperty)("supportsExclusiveControl", import_CCValues_generated.ProtectionCCValues.supportsExclusiveControl), (0, import_CommandClassDecorators.ccValueProperty)("supportsTimeout", import_CCValues_generated.ProtectionCCValues.supportsTimeout), (0, import_CommandClassDecorators.ccValueProperty)("supportedLocalStates", import_CCValues_generated.ProtectionCCValues.supportedLocalStates), (0, import_CommandClassDecorators.ccValueProperty)("supportedRFStates", import_CCValues_generated.ProtectionCCValues.supportedRFStates)];
|
|
553
518
|
let _classDescriptor;
|
|
554
519
|
let _classExtraInitializers = [];
|
|
555
520
|
let _classThis;
|
|
@@ -592,12 +557,12 @@ let ProtectionCCSupportedReport = (() => {
|
|
|
592
557
|
persistValues(ctx) {
|
|
593
558
|
if (!super.persistValues(ctx))
|
|
594
559
|
return false;
|
|
595
|
-
const localStateValue = ProtectionCCValues.localProtectionState;
|
|
560
|
+
const localStateValue = import_CCValues_generated.ProtectionCCValues.localProtectionState;
|
|
596
561
|
this.setMetadata(ctx, localStateValue, {
|
|
597
562
|
...localStateValue.meta,
|
|
598
563
|
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.LocalProtectionState, this.supportedLocalStates)
|
|
599
564
|
});
|
|
600
|
-
const rfStateValue = ProtectionCCValues.rfProtectionState;
|
|
565
|
+
const rfStateValue = import_CCValues_generated.ProtectionCCValues.rfProtectionState;
|
|
601
566
|
this.setMetadata(ctx, rfStateValue, {
|
|
602
567
|
...rfStateValue.meta,
|
|
603
568
|
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.RFProtectionState, this.supportedRFStates)
|
|
@@ -648,7 +613,7 @@ let ProtectionCCSupportedGet = (() => {
|
|
|
648
613
|
return ProtectionCCSupportedGet2 = _classThis;
|
|
649
614
|
})();
|
|
650
615
|
let ProtectionCCExclusiveControlReport = (() => {
|
|
651
|
-
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ProtectionCommand.ExclusiveControlReport), (0, import_CommandClassDecorators.ccValueProperty)("exclusiveControlNodeId", ProtectionCCValues.exclusiveControlNodeId)];
|
|
616
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ProtectionCommand.ExclusiveControlReport), (0, import_CommandClassDecorators.ccValueProperty)("exclusiveControlNodeId", import_CCValues_generated.ProtectionCCValues.exclusiveControlNodeId)];
|
|
652
617
|
let _classDescriptor;
|
|
653
618
|
let _classExtraInitializers = [];
|
|
654
619
|
let _classThis;
|
|
@@ -758,7 +723,7 @@ let ProtectionCCExclusiveControlSet = (() => {
|
|
|
758
723
|
return ProtectionCCExclusiveControlSet2 = _classThis;
|
|
759
724
|
})();
|
|
760
725
|
let ProtectionCCTimeoutReport = (() => {
|
|
761
|
-
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ProtectionCommand.TimeoutReport), (0, import_CommandClassDecorators.ccValueProperty)("timeout", ProtectionCCValues.timeout)];
|
|
726
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ProtectionCommand.TimeoutReport), (0, import_CommandClassDecorators.ccValueProperty)("timeout", import_CCValues_generated.ProtectionCCValues.timeout)];
|
|
762
727
|
let _classDescriptor;
|
|
763
728
|
let _classExtraInitializers = [];
|
|
764
729
|
let _classThis;
|