@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,205 +1,205 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { type CCEncodingContext, type CCParsingContext } from "@zwave-js/cc";
|
|
2
|
+
import { CommandClasses, type EndpointId, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, type SupervisionResult, 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 { IndicatorCommand, type IndicatorTimeout } from "../lib/_Types.js";
|
|
7
7
|
export declare const IndicatorCCValues: Readonly<{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly writeable: true;
|
|
13
|
-
};
|
|
14
|
-
readonly id: {
|
|
15
|
-
commandClass: CommandClasses.Indicator;
|
|
16
|
-
property: number;
|
|
8
|
+
supportedIndicatorIds: {
|
|
9
|
+
id: {
|
|
10
|
+
readonly commandClass: CommandClasses.Indicator;
|
|
11
|
+
readonly property: "supportedIndicatorIds";
|
|
17
12
|
};
|
|
18
|
-
|
|
13
|
+
endpoint: (endpoint?: number) => {
|
|
19
14
|
readonly commandClass: CommandClasses.Indicator;
|
|
20
15
|
readonly endpoint: number;
|
|
21
|
-
readonly property:
|
|
16
|
+
readonly property: "supportedIndicatorIds";
|
|
22
17
|
};
|
|
23
|
-
}) & {
|
|
24
18
|
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
19
|
+
readonly meta: Readonly<{
|
|
20
|
+
readonly type: "any";
|
|
21
|
+
readonly readable: true;
|
|
22
|
+
readonly writeable: true;
|
|
23
|
+
}>;
|
|
24
|
+
options: {
|
|
25
|
+
readonly internal: true;
|
|
26
|
+
readonly minVersion: 1;
|
|
27
27
|
readonly secret: false;
|
|
28
|
+
readonly stateful: true;
|
|
28
29
|
readonly supportsEndpoints: true;
|
|
29
30
|
readonly autoCreate: true;
|
|
30
|
-
readonly internal: true;
|
|
31
|
-
readonly minVersion: 4;
|
|
32
31
|
};
|
|
33
32
|
};
|
|
34
|
-
|
|
33
|
+
valueV1: {
|
|
34
|
+
id: {
|
|
35
|
+
readonly commandClass: CommandClasses.Indicator;
|
|
36
|
+
readonly property: "value";
|
|
37
|
+
};
|
|
38
|
+
endpoint: (endpoint?: number) => {
|
|
39
|
+
readonly commandClass: CommandClasses.Indicator;
|
|
40
|
+
readonly endpoint: number;
|
|
41
|
+
readonly property: "value";
|
|
42
|
+
};
|
|
43
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
35
44
|
readonly meta: {
|
|
45
|
+
readonly label: "Indicator value";
|
|
36
46
|
readonly ccSpecific: {
|
|
37
|
-
indicatorId:
|
|
38
|
-
propertyId: number;
|
|
47
|
+
readonly indicatorId: 0;
|
|
39
48
|
};
|
|
40
|
-
readonly
|
|
49
|
+
readonly min: 0;
|
|
50
|
+
readonly max: 255;
|
|
51
|
+
readonly type: "number";
|
|
41
52
|
readonly readable: true;
|
|
42
53
|
readonly writeable: true;
|
|
43
54
|
};
|
|
44
|
-
|
|
45
|
-
commandClass: CommandClasses.Indicator;
|
|
46
|
-
property: number;
|
|
47
|
-
propertyKey: number;
|
|
48
|
-
};
|
|
49
|
-
readonly endpoint: (endpoint?: number | undefined) => {
|
|
50
|
-
readonly commandClass: CommandClasses.Indicator;
|
|
51
|
-
readonly endpoint: number;
|
|
52
|
-
readonly property: number;
|
|
53
|
-
readonly propertyKey: number;
|
|
54
|
-
};
|
|
55
|
-
}) & {
|
|
56
|
-
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
57
|
-
readonly options: {
|
|
58
|
-
readonly stateful: true;
|
|
59
|
-
readonly secret: false;
|
|
55
|
+
options: {
|
|
60
56
|
readonly internal: false;
|
|
57
|
+
readonly minVersion: 1;
|
|
58
|
+
readonly secret: false;
|
|
59
|
+
readonly stateful: true;
|
|
61
60
|
readonly supportsEndpoints: true;
|
|
62
61
|
readonly autoCreate: true;
|
|
63
|
-
readonly minVersion: 2;
|
|
64
62
|
};
|
|
65
63
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly writeable: true;
|
|
71
|
-
};
|
|
72
|
-
readonly id: {
|
|
73
|
-
commandClass: CommandClasses.Indicator;
|
|
74
|
-
property: "supportedPropertyIDs";
|
|
75
|
-
propertyKey: number;
|
|
64
|
+
identify: {
|
|
65
|
+
id: {
|
|
66
|
+
readonly commandClass: CommandClasses.Indicator;
|
|
67
|
+
readonly property: "identify";
|
|
76
68
|
};
|
|
77
|
-
|
|
69
|
+
endpoint: (endpoint?: number) => {
|
|
78
70
|
readonly commandClass: CommandClasses.Indicator;
|
|
79
71
|
readonly endpoint: number;
|
|
80
|
-
readonly property: "
|
|
81
|
-
readonly propertyKey: number;
|
|
72
|
+
readonly property: "identify";
|
|
82
73
|
};
|
|
83
|
-
}) & {
|
|
84
74
|
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
75
|
+
readonly meta: {
|
|
76
|
+
readonly label: "Identify";
|
|
77
|
+
readonly states: {
|
|
78
|
+
readonly true: "Identify";
|
|
79
|
+
};
|
|
80
|
+
readonly readable: false;
|
|
81
|
+
readonly type: "boolean";
|
|
82
|
+
readonly writeable: true;
|
|
83
|
+
};
|
|
84
|
+
options: {
|
|
85
|
+
readonly internal: false;
|
|
86
|
+
readonly minVersion: 3;
|
|
87
87
|
readonly secret: false;
|
|
88
|
-
readonly
|
|
88
|
+
readonly stateful: true;
|
|
89
89
|
readonly supportsEndpoints: true;
|
|
90
90
|
readonly autoCreate: true;
|
|
91
|
-
readonly internal: true;
|
|
92
91
|
};
|
|
93
92
|
};
|
|
94
93
|
timeout: {
|
|
95
|
-
|
|
96
|
-
commandClass: CommandClasses.Indicator;
|
|
97
|
-
property: "timeout";
|
|
94
|
+
id: {
|
|
95
|
+
readonly commandClass: CommandClasses.Indicator;
|
|
96
|
+
readonly property: "timeout";
|
|
98
97
|
};
|
|
99
|
-
|
|
98
|
+
endpoint: (endpoint?: number) => {
|
|
100
99
|
readonly commandClass: CommandClasses.Indicator;
|
|
101
100
|
readonly endpoint: number;
|
|
102
101
|
readonly property: "timeout";
|
|
103
102
|
};
|
|
104
|
-
|
|
103
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
105
104
|
readonly meta: {
|
|
106
105
|
readonly label: "Timeout";
|
|
107
106
|
readonly type: "string";
|
|
108
107
|
readonly readable: true;
|
|
109
108
|
readonly writeable: true;
|
|
110
109
|
};
|
|
111
|
-
|
|
112
|
-
readonly stateful: true;
|
|
113
|
-
readonly secret: false;
|
|
110
|
+
options: {
|
|
114
111
|
readonly internal: false;
|
|
112
|
+
readonly minVersion: 3;
|
|
113
|
+
readonly secret: false;
|
|
114
|
+
readonly stateful: true;
|
|
115
115
|
readonly supportsEndpoints: true;
|
|
116
116
|
readonly autoCreate: true;
|
|
117
|
-
readonly minVersion: 3;
|
|
118
117
|
};
|
|
119
118
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
commandClass: CommandClasses.Indicator;
|
|
123
|
-
property: "
|
|
119
|
+
supportedPropertyIDs: ((indicatorId: number) => {
|
|
120
|
+
id: {
|
|
121
|
+
readonly commandClass: CommandClasses.Indicator;
|
|
122
|
+
readonly property: "supportedPropertyIDs";
|
|
123
|
+
readonly propertyKey: number;
|
|
124
124
|
};
|
|
125
|
-
|
|
125
|
+
endpoint: (endpoint?: number) => {
|
|
126
126
|
readonly commandClass: CommandClasses.Indicator;
|
|
127
127
|
readonly endpoint: number;
|
|
128
|
-
readonly property: "
|
|
128
|
+
readonly property: "supportedPropertyIDs";
|
|
129
|
+
readonly propertyKey: number;
|
|
129
130
|
};
|
|
130
|
-
readonly
|
|
131
|
-
|
|
132
|
-
readonly
|
|
133
|
-
readonly states: {
|
|
134
|
-
readonly true: "Identify";
|
|
135
|
-
};
|
|
136
|
-
readonly readable: false;
|
|
137
|
-
readonly type: "boolean";
|
|
131
|
+
readonly meta: Readonly<{
|
|
132
|
+
readonly type: "any";
|
|
133
|
+
readonly readable: true;
|
|
138
134
|
readonly writeable: true;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
135
|
+
}>;
|
|
136
|
+
}) & {
|
|
137
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
138
|
+
options: {
|
|
139
|
+
readonly internal: true;
|
|
140
|
+
readonly minVersion: 1;
|
|
142
141
|
readonly secret: false;
|
|
143
|
-
readonly
|
|
142
|
+
readonly stateful: true;
|
|
144
143
|
readonly supportsEndpoints: true;
|
|
145
144
|
readonly autoCreate: true;
|
|
146
|
-
readonly minVersion: 3;
|
|
147
145
|
};
|
|
148
146
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
commandClass: CommandClasses.Indicator;
|
|
152
|
-
property:
|
|
147
|
+
valueV2: ((indicatorId: number, propertyId: number) => {
|
|
148
|
+
id: {
|
|
149
|
+
readonly commandClass: CommandClasses.Indicator;
|
|
150
|
+
readonly property: number;
|
|
151
|
+
readonly propertyKey: number;
|
|
153
152
|
};
|
|
154
|
-
|
|
153
|
+
endpoint: (endpoint?: number) => {
|
|
155
154
|
readonly commandClass: CommandClasses.Indicator;
|
|
156
155
|
readonly endpoint: number;
|
|
157
|
-
readonly property:
|
|
156
|
+
readonly property: number;
|
|
157
|
+
readonly propertyKey: number;
|
|
158
158
|
};
|
|
159
|
-
readonly is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
160
159
|
readonly meta: {
|
|
161
|
-
readonly label: "Indicator value";
|
|
162
160
|
readonly ccSpecific: {
|
|
163
|
-
readonly indicatorId:
|
|
161
|
+
readonly indicatorId: number;
|
|
162
|
+
readonly propertyId: number;
|
|
164
163
|
};
|
|
165
|
-
readonly
|
|
166
|
-
readonly max: 255;
|
|
167
|
-
readonly type: "number";
|
|
164
|
+
readonly type: "any";
|
|
168
165
|
readonly readable: true;
|
|
169
166
|
readonly writeable: true;
|
|
170
167
|
};
|
|
171
|
-
|
|
168
|
+
}) & {
|
|
169
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
170
|
+
options: {
|
|
172
171
|
readonly internal: false;
|
|
173
|
-
readonly minVersion:
|
|
172
|
+
readonly minVersion: 2;
|
|
174
173
|
readonly secret: false;
|
|
175
174
|
readonly stateful: true;
|
|
176
175
|
readonly supportsEndpoints: true;
|
|
177
176
|
readonly autoCreate: true;
|
|
178
177
|
};
|
|
179
178
|
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
commandClass: CommandClasses.Indicator;
|
|
183
|
-
property:
|
|
179
|
+
indicatorDescription: ((indicatorId: number) => {
|
|
180
|
+
id: {
|
|
181
|
+
readonly commandClass: CommandClasses.Indicator;
|
|
182
|
+
readonly property: number;
|
|
184
183
|
};
|
|
185
|
-
|
|
184
|
+
endpoint: (endpoint?: number) => {
|
|
186
185
|
readonly commandClass: CommandClasses.Indicator;
|
|
187
186
|
readonly endpoint: number;
|
|
188
|
-
readonly property:
|
|
187
|
+
readonly property: number;
|
|
189
188
|
};
|
|
190
|
-
readonly
|
|
191
|
-
readonly meta: {
|
|
189
|
+
readonly meta: Readonly<{
|
|
192
190
|
readonly type: "any";
|
|
193
191
|
readonly readable: true;
|
|
194
192
|
readonly writeable: true;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
193
|
+
}>;
|
|
194
|
+
}) & {
|
|
195
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
196
|
+
options: {
|
|
197
|
+
readonly internal: true;
|
|
198
|
+
readonly minVersion: 4;
|
|
198
199
|
readonly secret: false;
|
|
199
|
-
readonly
|
|
200
|
+
readonly stateful: true;
|
|
200
201
|
readonly supportsEndpoints: true;
|
|
201
202
|
readonly autoCreate: true;
|
|
202
|
-
readonly internal: true;
|
|
203
203
|
};
|
|
204
204
|
};
|
|
205
205
|
}>;
|
|
@@ -259,7 +259,7 @@ export declare class IndicatorCCSet extends IndicatorCC {
|
|
|
259
259
|
static from(raw: CCRaw, ctx: CCParsingContext): IndicatorCCSet;
|
|
260
260
|
indicator0Value: number | undefined;
|
|
261
261
|
values: IndicatorObject[] | undefined;
|
|
262
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
262
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
263
263
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
264
264
|
}
|
|
265
265
|
export type IndicatorCCReportOptions = {
|
|
@@ -274,7 +274,7 @@ export declare class IndicatorCCReport extends IndicatorCC {
|
|
|
274
274
|
readonly indicator0Value: number | undefined;
|
|
275
275
|
readonly values: IndicatorObject[] | undefined;
|
|
276
276
|
private setIndicatorValue;
|
|
277
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
277
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
278
278
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
279
279
|
}
|
|
280
280
|
export interface IndicatorCCGetOptions {
|
|
@@ -284,7 +284,7 @@ export declare class IndicatorCCGet extends IndicatorCC {
|
|
|
284
284
|
constructor(options: WithAddress<IndicatorCCGetOptions>);
|
|
285
285
|
static from(raw: CCRaw, ctx: CCParsingContext): IndicatorCCGet;
|
|
286
286
|
indicatorId: number | undefined;
|
|
287
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
287
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
288
288
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
289
289
|
}
|
|
290
290
|
export interface IndicatorCCSupportedReportOptions {
|
|
@@ -299,7 +299,7 @@ export declare class IndicatorCCSupportedReport extends IndicatorCC {
|
|
|
299
299
|
readonly indicatorId: number;
|
|
300
300
|
readonly nextIndicatorId: number;
|
|
301
301
|
readonly supportedProperties: readonly number[];
|
|
302
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
302
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
303
303
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
304
304
|
}
|
|
305
305
|
export interface IndicatorCCSupportedGetOptions {
|
|
@@ -309,7 +309,7 @@ export declare class IndicatorCCSupportedGet extends IndicatorCC {
|
|
|
309
309
|
constructor(options: WithAddress<IndicatorCCSupportedGetOptions>);
|
|
310
310
|
static from(raw: CCRaw, ctx: CCParsingContext): IndicatorCCSupportedGet;
|
|
311
311
|
indicatorId: number;
|
|
312
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
312
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
313
313
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
314
314
|
}
|
|
315
315
|
export interface IndicatorCCDescriptionReportOptions {
|
|
@@ -322,7 +322,7 @@ export declare class IndicatorCCDescriptionReport extends IndicatorCC {
|
|
|
322
322
|
indicatorId: number;
|
|
323
323
|
description: string;
|
|
324
324
|
persistValues(ctx: PersistValuesContext): boolean;
|
|
325
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
325
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
326
326
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
327
327
|
}
|
|
328
328
|
export interface IndicatorCCDescriptionGetOptions {
|
|
@@ -332,7 +332,7 @@ export declare class IndicatorCCDescriptionGet extends IndicatorCC {
|
|
|
332
332
|
constructor(options: WithAddress<IndicatorCCDescriptionGetOptions>);
|
|
333
333
|
static from(raw: CCRaw, ctx: CCParsingContext): IndicatorCCDescriptionGet;
|
|
334
334
|
indicatorId: number;
|
|
335
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
335
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
336
336
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
337
337
|
}
|
|
338
338
|
//# sourceMappingURL=IndicatorCC.d.ts.map
|
|
@@ -38,7 +38,7 @@ __export(IndicatorCC_exports, {
|
|
|
38
38
|
IndicatorCCSet: () => IndicatorCCSet,
|
|
39
39
|
IndicatorCCSupportedGet: () => IndicatorCCSupportedGet,
|
|
40
40
|
IndicatorCCSupportedReport: () => IndicatorCCSupportedReport,
|
|
41
|
-
IndicatorCCValues: () => IndicatorCCValues
|
|
41
|
+
IndicatorCCValues: () => import_CCValues_generated.IndicatorCCValues
|
|
42
42
|
});
|
|
43
43
|
module.exports = __toCommonJS(IndicatorCC_exports);
|
|
44
44
|
var __validateArgs = __toESM(require("./IndicatorCC._validateArgs.js"), 1);
|
|
@@ -52,6 +52,7 @@ var import_CommandClass = require("../lib/CommandClass.js");
|
|
|
52
52
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
53
53
|
var import_Values = require("../lib/Values.js");
|
|
54
54
|
var import_Types = require("../lib/_Types.js");
|
|
55
|
+
var import_CCValues_generated = require("./_CCValues.generated.js");
|
|
55
56
|
var __runInitializers = function(thisArg, initializers, value) {
|
|
56
57
|
var useValue = arguments.length > 2;
|
|
57
58
|
for (var i = 0; i < initializers.length; i++) {
|
|
@@ -134,57 +135,10 @@ function indicatorObjectsToTimeout(values) {
|
|
|
134
135
|
};
|
|
135
136
|
}
|
|
136
137
|
__name(indicatorObjectsToTimeout, "indicatorObjectsToTimeout");
|
|
137
|
-
const IndicatorCCValues = Object.freeze({
|
|
138
|
-
...import_Values.V.defineStaticCCValues(import_safe.CommandClasses.Indicator, {
|
|
139
|
-
...import_Values.V.staticProperty("supportedIndicatorIds", void 0, {
|
|
140
|
-
internal: true
|
|
141
|
-
}),
|
|
142
|
-
...import_Values.V.staticPropertyWithName("valueV1", "value", {
|
|
143
|
-
...import_safe.ValueMetadata.UInt8,
|
|
144
|
-
label: "Indicator value",
|
|
145
|
-
ccSpecific: {
|
|
146
|
-
indicatorId: 0
|
|
147
|
-
}
|
|
148
|
-
}),
|
|
149
|
-
// Convenience values for indicators that are split across multiple properties
|
|
150
|
-
...import_Values.V.staticProperty("identify", {
|
|
151
|
-
...import_safe.ValueMetadata.WriteOnlyBoolean,
|
|
152
|
-
label: "Identify",
|
|
153
|
-
states: {
|
|
154
|
-
true: "Identify"
|
|
155
|
-
}
|
|
156
|
-
}, { minVersion: 3 }),
|
|
157
|
-
...import_Values.V.staticProperty("timeout", {
|
|
158
|
-
...import_safe.ValueMetadata.String,
|
|
159
|
-
label: "Timeout"
|
|
160
|
-
}, { minVersion: 3 })
|
|
161
|
-
}),
|
|
162
|
-
...import_Values.V.defineDynamicCCValues(import_safe.CommandClasses.Indicator, {
|
|
163
|
-
...import_Values.V.dynamicPropertyAndKeyWithName("supportedPropertyIDs", "supportedPropertyIDs", (indicatorId) => indicatorId, ({ property, propertyKey }) => property === "supportedPropertyIDs" && typeof propertyKey === "number", void 0, { internal: true }),
|
|
164
|
-
...import_Values.V.dynamicPropertyAndKeyWithName(
|
|
165
|
-
"valueV2",
|
|
166
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
167
|
-
(indicatorId, propertyId) => indicatorId,
|
|
168
|
-
(indicatorId, propertyId) => propertyId,
|
|
169
|
-
({ property, propertyKey }) => typeof property === "number" && typeof propertyKey === "number",
|
|
170
|
-
// The metadata is highly dependent on the indicator and property
|
|
171
|
-
// so this is just a baseline
|
|
172
|
-
(indicatorId, propertyId) => ({
|
|
173
|
-
...import_safe.ValueMetadata.Any,
|
|
174
|
-
ccSpecific: {
|
|
175
|
-
indicatorId,
|
|
176
|
-
propertyId
|
|
177
|
-
}
|
|
178
|
-
}),
|
|
179
|
-
{ minVersion: 2 }
|
|
180
|
-
),
|
|
181
|
-
...import_Values.V.dynamicPropertyWithName("indicatorDescription", (indicatorId) => indicatorId, ({ property }) => typeof property === "number", void 0, { internal: true, minVersion: 4 })
|
|
182
|
-
})
|
|
183
|
-
});
|
|
184
138
|
function getIndicatorMetadata(indicatorId, propertyId, overrideIndicatorLabel) {
|
|
185
139
|
const label = overrideIndicatorLabel || getIndicatorName(indicatorId);
|
|
186
140
|
const prop = (0, import_safe.getIndicatorProperty)(propertyId);
|
|
187
|
-
const baseMetadata = IndicatorCCValues.valueV2(indicatorId, propertyId).meta;
|
|
141
|
+
const baseMetadata = import_CCValues_generated.IndicatorCCValues.valueV2(indicatorId, propertyId).meta;
|
|
188
142
|
if (!label && !prop) {
|
|
189
143
|
return {
|
|
190
144
|
...baseMetadata,
|
|
@@ -541,7 +495,7 @@ let IndicatorCCAPI = (() => {
|
|
|
541
495
|
return IndicatorCCAPI2 = _classThis;
|
|
542
496
|
})();
|
|
543
497
|
let IndicatorCC = (() => {
|
|
544
|
-
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Indicator), (0, import_CommandClassDecorators.implementedVersion)(4), (0, import_CommandClassDecorators.ccValues)(IndicatorCCValues)];
|
|
498
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Indicator), (0, import_CommandClassDecorators.implementedVersion)(4), (0, import_CommandClassDecorators.ccValues)(import_CCValues_generated.IndicatorCCValues)];
|
|
545
499
|
let _classDescriptor;
|
|
546
500
|
let _classExtraInitializers = [];
|
|
547
501
|
let _classThis;
|
|
@@ -592,7 +546,7 @@ let IndicatorCC = (() => {
|
|
|
592
546
|
supportedIndicatorIds.push(supportedResponse.indicatorId ?? curId);
|
|
593
547
|
curId = supportedResponse.nextIndicatorId;
|
|
594
548
|
} while (curId !== 0);
|
|
595
|
-
this.setValue(ctx, IndicatorCCValues.supportedIndicatorIds, supportedIndicatorIds);
|
|
549
|
+
this.setValue(ctx, import_CCValues_generated.IndicatorCCValues.supportedIndicatorIds, supportedIndicatorIds);
|
|
596
550
|
const logMessage = `supported indicator IDs: ${supportedIndicatorIds.join(", ")}`;
|
|
597
551
|
ctx.logNode(node.id, {
|
|
598
552
|
endpoint: this.endpointIndex,
|
|
@@ -630,7 +584,7 @@ let IndicatorCC = (() => {
|
|
|
630
584
|
});
|
|
631
585
|
await api.get();
|
|
632
586
|
} else {
|
|
633
|
-
const supportedIndicatorIds = this.getValue(ctx, IndicatorCCValues.supportedIndicatorIds) ?? [];
|
|
587
|
+
const supportedIndicatorIds = this.getValue(ctx, import_CCValues_generated.IndicatorCCValues.supportedIndicatorIds) ?? [];
|
|
634
588
|
for (const indicatorId of supportedIndicatorIds) {
|
|
635
589
|
ctx.logNode(node.id, {
|
|
636
590
|
endpoint: this.endpointIndex,
|
|
@@ -659,13 +613,13 @@ let IndicatorCC = (() => {
|
|
|
659
613
|
return super.translateProperty(ctx, property, propertyKey);
|
|
660
614
|
}
|
|
661
615
|
supportsV2Indicators(ctx) {
|
|
662
|
-
const supportedIndicatorIds = this.getValue(ctx, IndicatorCCValues.supportedIndicatorIds);
|
|
616
|
+
const supportedIndicatorIds = this.getValue(ctx, import_CCValues_generated.IndicatorCCValues.supportedIndicatorIds);
|
|
663
617
|
if (!supportedIndicatorIds?.length)
|
|
664
618
|
return false;
|
|
665
|
-
return supportedIndicatorIds.some((indicatorId) => !!this.getValue(ctx, IndicatorCCValues.supportedPropertyIDs(indicatorId))?.length);
|
|
619
|
+
return supportedIndicatorIds.some((indicatorId) => !!this.getValue(ctx, import_CCValues_generated.IndicatorCCValues.supportedPropertyIDs(indicatorId))?.length);
|
|
666
620
|
}
|
|
667
621
|
static getSupportedPropertyIDsCached(ctx, endpoint, indicatorId) {
|
|
668
|
-
return ctx.getValueDB(endpoint.nodeId).getValue(IndicatorCCValues.supportedPropertyIDs(indicatorId).endpoint(endpoint.index));
|
|
622
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(import_CCValues_generated.IndicatorCCValues.supportedPropertyIDs(indicatorId).endpoint(endpoint.index));
|
|
669
623
|
}
|
|
670
624
|
};
|
|
671
625
|
return IndicatorCC2 = _classThis;
|
|
@@ -824,7 +778,7 @@ let IndicatorCCReport = (() => {
|
|
|
824
778
|
return false;
|
|
825
779
|
if (this.indicator0Value != void 0) {
|
|
826
780
|
if (!this.supportsV2Indicators(ctx)) {
|
|
827
|
-
const valueV1 = IndicatorCCValues.valueV1;
|
|
781
|
+
const valueV1 = import_CCValues_generated.IndicatorCCValues.valueV1;
|
|
828
782
|
this.setMetadata(ctx, valueV1);
|
|
829
783
|
this.setValue(ctx, valueV1, this.indicator0Value);
|
|
830
784
|
} else {
|
|
@@ -849,7 +803,7 @@ let IndicatorCCReport = (() => {
|
|
|
849
803
|
timeoutString += `${timeout.minutes}m`;
|
|
850
804
|
if (timeout?.seconds)
|
|
851
805
|
timeoutString += `${timeout.seconds}s`;
|
|
852
|
-
this.setValue(ctx, IndicatorCCValues.timeout, timeoutString);
|
|
806
|
+
this.setValue(ctx, import_CCValues_generated.IndicatorCCValues.timeout, timeoutString);
|
|
853
807
|
}
|
|
854
808
|
}
|
|
855
809
|
return true;
|
|
@@ -857,12 +811,12 @@ let IndicatorCCReport = (() => {
|
|
|
857
811
|
indicator0Value;
|
|
858
812
|
values;
|
|
859
813
|
setIndicatorValue(ctx, value) {
|
|
860
|
-
const overrideIndicatorLabel = isManufacturerDefinedIndicator(value.indicatorId) ? this.getValue(ctx, IndicatorCCValues.indicatorDescription(value.indicatorId)) : void 0;
|
|
814
|
+
const overrideIndicatorLabel = isManufacturerDefinedIndicator(value.indicatorId) ? this.getValue(ctx, import_CCValues_generated.IndicatorCCValues.indicatorDescription(value.indicatorId)) : void 0;
|
|
861
815
|
const metadata = getIndicatorMetadata(value.indicatorId, value.propertyId, overrideIndicatorLabel);
|
|
862
816
|
if (metadata.type === "boolean") {
|
|
863
817
|
value.value = !!value.value;
|
|
864
818
|
}
|
|
865
|
-
const valueV2 = IndicatorCCValues.valueV2(value.indicatorId, value.propertyId);
|
|
819
|
+
const valueV2 = import_CCValues_generated.IndicatorCCValues.valueV2(value.indicatorId, value.propertyId);
|
|
866
820
|
this.setMetadata(ctx, valueV2, metadata);
|
|
867
821
|
this.setValue(ctx, valueV2, value.value);
|
|
868
822
|
}
|
|
@@ -1003,7 +957,7 @@ let IndicatorCCSupportedReport = (() => {
|
|
|
1003
957
|
if (!super.persistValues(ctx))
|
|
1004
958
|
return false;
|
|
1005
959
|
if (this.indicatorId !== 0) {
|
|
1006
|
-
this.setValue(ctx, IndicatorCCValues.supportedPropertyIDs(this.indicatorId), this.supportedProperties);
|
|
960
|
+
this.setValue(ctx, import_CCValues_generated.IndicatorCCValues.supportedPropertyIDs(this.indicatorId), this.supportedProperties);
|
|
1007
961
|
}
|
|
1008
962
|
return true;
|
|
1009
963
|
}
|
|
@@ -1130,7 +1084,7 @@ let IndicatorCCDescriptionReport = (() => {
|
|
|
1130
1084
|
if (!super.persistValues(ctx))
|
|
1131
1085
|
return false;
|
|
1132
1086
|
if (this.description) {
|
|
1133
|
-
this.setValue(ctx, IndicatorCCValues.indicatorDescription(this.indicatorId), this.description);
|
|
1087
|
+
this.setValue(ctx, import_CCValues_generated.IndicatorCCValues.indicatorDescription(this.indicatorId), this.description);
|
|
1134
1088
|
}
|
|
1135
1089
|
return true;
|
|
1136
1090
|
}
|