@zwave-js/cc 15.0.0-beta.0 → 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 +79 -161
- package/build/cjs/cc/AlarmSensorCC.js +12 -50
- package/build/cjs/cc/AlarmSensorCC.js.map +2 -2
- package/build/cjs/cc/AssociationCC.d.ts +63 -199
- package/build/cjs/cc/AssociationCC.js +9 -22
- package/build/cjs/cc/AssociationCC.js.map +2 -2
- package/build/cjs/cc/AssociationGroupInfoCC.d.ts +66 -166
- package/build/cjs/cc/AssociationGroupInfoCC.js +11 -22
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +2 -2
- package/build/cjs/cc/BarrierOperatorCC.d.ts +86 -294
- package/build/cjs/cc/BarrierOperatorCC.js +12 -44
- package/build/cjs/cc/BarrierOperatorCC.js.map +2 -2
- package/build/cjs/cc/BasicCC.d.ts +85 -331
- package/build/cjs/cc/BasicCC.js +15 -46
- package/build/cjs/cc/BasicCC.js.map +2 -2
- package/build/cjs/cc/BatteryCC.d.ts +237 -835
- package/build/cjs/cc/BatteryCC.js +7 -84
- package/build/cjs/cc/BatteryCC.js.map +2 -2
- package/build/cjs/cc/BinarySensorCC.d.ts +34 -99
- package/build/cjs/cc/BinarySensorCC.js +9 -29
- package/build/cjs/cc/BinarySensorCC.js.map +2 -2
- package/build/cjs/cc/BinarySwitchCC.d.ts +45 -197
- package/build/cjs/cc/BinarySwitchCC.js +6 -22
- package/build/cjs/cc/BinarySwitchCC.js.map +2 -2
- package/build/cjs/cc/CentralSceneCC.d.ts +77 -296
- package/build/cjs/cc/CentralSceneCC.js +7 -30
- package/build/cjs/cc/CentralSceneCC.js.map +2 -2
- package/build/cjs/cc/ClimateControlScheduleCC.d.ts +45 -160
- package/build/cjs/cc/ClimateControlScheduleCC.js +5 -24
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +2 -2
- package/build/cjs/cc/ColorSwitchCC.d.ts +130 -457
- package/build/cjs/cc/ColorSwitchCC.js +23 -75
- package/build/cjs/cc/ColorSwitchCC.js.map +2 -2
- package/build/cjs/cc/ConfigurationCC.d.ts +32 -100
- package/build/cjs/cc/ConfigurationCC.js +11 -31
- package/build/cjs/cc/ConfigurationCC.js.map +2 -2
- package/build/cjs/cc/DoorLockCC.d.ts +512 -1823
- package/build/cjs/cc/DoorLockCC.js +51 -156
- package/build/cjs/cc/DoorLockCC.js.map +2 -2
- package/build/cjs/cc/DoorLockLoggingCC.d.ts +11 -63
- package/build/cjs/cc/DoorLockLoggingCC.js +4 -8
- package/build/cjs/cc/DoorLockLoggingCC.js.map +2 -2
- package/build/cjs/cc/EnergyProductionCC.d.ts +14 -29
- package/build/cjs/cc/EnergyProductionCC.js +5 -17
- package/build/cjs/cc/EnergyProductionCC.js.map +2 -2
- package/build/cjs/cc/EntryControlCC.d.ts +73 -324
- package/build/cjs/cc/EntryControlCC.js +9 -36
- package/build/cjs/cc/EntryControlCC.js.map +2 -2
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +78 -390
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +5 -26
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlModeCC.d.ts +31 -131
- package/build/cjs/cc/HumidityControlModeCC.js +6 -15
- package/build/cjs/cc/HumidityControlModeCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +17 -65
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +4 -12
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlSetpointCC.d.ts +51 -128
- package/build/cjs/cc/HumidityControlSetpointCC.js +10 -28
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +2 -2
- package/build/cjs/cc/IndicatorCC.d.ts +123 -365
- package/build/cjs/cc/IndicatorCC.js +15 -61
- package/build/cjs/cc/IndicatorCC.js.map +2 -2
- package/build/cjs/cc/IrrigationCC.d.ts +826 -2317
- package/build/cjs/cc/IrrigationCC.js +29 -233
- package/build/cjs/cc/IrrigationCC.js.map +2 -2
- package/build/cjs/cc/LanguageCC.d.ts +31 -133
- package/build/cjs/cc/LanguageCC.js +4 -15
- package/build/cjs/cc/LanguageCC.js.map +2 -2
- package/build/cjs/cc/LockCC.d.ts +14 -64
- package/build/cjs/cc/LockCC.js +4 -12
- package/build/cjs/cc/LockCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerSpecificCC.d.ts +77 -239
- package/build/cjs/cc/ManufacturerSpecificCC.js +5 -26
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +2 -2
- package/build/cjs/cc/MeterCC.d.ts +119 -393
- package/build/cjs/cc/MeterCC.js +25 -69
- package/build/cjs/cc/MeterCC.js.map +2 -2
- package/build/cjs/cc/MultiChannelAssociationCC.d.ts +66 -166
- package/build/cjs/cc/MultiChannelAssociationCC.js +10 -23
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +2 -2
- package/build/cjs/cc/MultiChannelCC.d.ts +119 -499
- package/build/cjs/cc/MultiChannelCC.js +18 -46
- package/build/cjs/cc/MultiChannelCC.js.map +2 -2
- package/build/cjs/cc/MultilevelSensorCC.d.ts +46 -130
- package/build/cjs/cc/MultilevelSensorCC.js +12 -33
- package/build/cjs/cc/MultilevelSensorCC.js.map +2 -2
- package/build/cjs/cc/MultilevelSwitchCC.d.ts +160 -525
- package/build/cjs/cc/MultilevelSwitchCC.js +13 -107
- package/build/cjs/cc/MultilevelSwitchCC.js.map +2 -2
- package/build/cjs/cc/NodeNamingCC.d.ts +33 -135
- package/build/cjs/cc/NodeNamingCC.js +5 -16
- package/build/cjs/cc/NodeNamingCC.js.map +2 -2
- package/build/cjs/cc/NotificationCC.d.ts +262 -702
- package/build/cjs/cc/NotificationCC.js +29 -112
- package/build/cjs/cc/NotificationCC.js.map +2 -2
- package/build/cjs/cc/ProtectionCC.d.ts +118 -524
- package/build/cjs/cc/ProtectionCC.js +15 -50
- package/build/cjs/cc/ProtectionCC.js.map +2 -2
- package/build/cjs/cc/SceneActivationCC.d.ts +33 -132
- package/build/cjs/cc/SceneActivationCC.js +4 -17
- package/build/cjs/cc/SceneActivationCC.js.map +2 -2
- package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +34 -61
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +9 -21
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +2 -2
- package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +34 -61
- package/build/cjs/cc/SceneControllerConfigurationCC.js +10 -22
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +2 -2
- package/build/cjs/cc/ScheduleEntryLockCC.d.ts +95 -299
- package/build/cjs/cc/ScheduleEntryLockCC.js +13 -30
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +2 -2
- package/build/cjs/cc/SoundSwitchCC.d.ts +72 -261
- package/build/cjs/cc/SoundSwitchCC.js +11 -43
- package/build/cjs/cc/SoundSwitchCC.js.map +2 -2
- package/build/cjs/cc/SupervisionCC.d.ts +17 -33
- package/build/cjs/cc/SupervisionCC.js +4 -9
- package/build/cjs/cc/SupervisionCC.js.map +2 -2
- package/build/cjs/cc/ThermostatFanModeCC.d.ts +44 -195
- package/build/cjs/cc/ThermostatFanModeCC.js +8 -21
- package/build/cjs/cc/ThermostatFanModeCC.js.map +2 -2
- package/build/cjs/cc/ThermostatFanStateCC.d.ts +17 -65
- package/build/cjs/cc/ThermostatFanStateCC.js +4 -12
- package/build/cjs/cc/ThermostatFanStateCC.js.map +2 -2
- package/build/cjs/cc/ThermostatModeCC.d.ts +44 -195
- package/build/cjs/cc/ThermostatModeCC.js +8 -21
- package/build/cjs/cc/ThermostatModeCC.js.map +2 -2
- package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +17 -65
- package/build/cjs/cc/ThermostatOperatingStateCC.js +4 -12
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +2 -2
- package/build/cjs/cc/ThermostatSetpointCC.d.ts +49 -129
- package/build/cjs/cc/ThermostatSetpointCC.js +10 -25
- package/build/cjs/cc/ThermostatSetpointCC.js.map +2 -2
- package/build/cjs/cc/TimeParametersCC.d.ts +12 -63
- package/build/cjs/cc/TimeParametersCC.js +4 -11
- package/build/cjs/cc/TimeParametersCC.js.map +2 -2
- package/build/cjs/cc/UserCodeCC.d.ts +311 -1066
- package/build/cjs/cc/UserCodeCC.js +33 -98
- package/build/cjs/cc/UserCodeCC.js.map +2 -2
- package/build/cjs/cc/VersionCC.d.ts +289 -1003
- package/build/cjs/cc/VersionCC.js +7 -98
- package/build/cjs/cc/VersionCC.js.map +2 -2
- package/build/cjs/cc/WakeUpCC.d.ts +49 -201
- package/build/cjs/cc/WakeUpCC.js +6 -26
- package/build/cjs/cc/WakeUpCC.js.map +2 -2
- package/build/cjs/cc/WindowCoveringCC.d.ts +126 -220
- package/build/cjs/cc/WindowCoveringCC.js +16 -128
- package/build/cjs/cc/WindowCoveringCC.js.map +2 -2
- package/build/cjs/cc/ZWavePlusCC.d.ts +69 -329
- package/build/cjs/cc/ZWavePlusCC.js +4 -25
- package/build/cjs/cc/ZWavePlusCC.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/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/Values.d.ts +6 -105
- package/build/cjs/lib/Values.js +13 -107
- package/build/cjs/lib/Values.js.map +3 -3
- package/build/esm/cc/AlarmSensorCC.d.ts +79 -161
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
- package/build/esm/cc/AlarmSensorCC.js +2 -39
- package/build/esm/cc/AlarmSensorCC.js.map +1 -1
- package/build/esm/cc/AssociationCC.d.ts +63 -199
- package/build/esm/cc/AssociationCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationCC.js +2 -14
- package/build/esm/cc/AssociationCC.js.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.d.ts +66 -166
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.js +2 -13
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.d.ts +86 -294
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.js +2 -34
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
- package/build/esm/cc/BasicCC.d.ts +85 -331
- package/build/esm/cc/BasicCC.d.ts.map +1 -1
- package/build/esm/cc/BasicCC.js +2 -32
- package/build/esm/cc/BasicCC.js.map +1 -1
- package/build/esm/cc/BatteryCC.d.ts +237 -835
- package/build/esm/cc/BatteryCC.d.ts.map +1 -1
- package/build/esm/cc/BatteryCC.js +2 -78
- package/build/esm/cc/BatteryCC.js.map +1 -1
- package/build/esm/cc/BinarySensorCC.d.ts +34 -99
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySensorCC.js +2 -16
- package/build/esm/cc/BinarySensorCC.js.map +1 -1
- package/build/esm/cc/BinarySwitchCC.d.ts +45 -197
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySwitchCC.js +2 -17
- package/build/esm/cc/BinarySwitchCC.js.map +1 -1
- package/build/esm/cc/CentralSceneCC.d.ts +77 -296
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
- package/build/esm/cc/CentralSceneCC.js +2 -26
- package/build/esm/cc/CentralSceneCC.js.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.d.ts +45 -160
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.js +2 -23
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/esm/cc/ColorSwitchCC.d.ts +130 -457
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/ColorSwitchCC.js +2 -52
- package/build/esm/cc/ColorSwitchCC.js.map +1 -1
- package/build/esm/cc/ConfigurationCC.d.ts +32 -100
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/ConfigurationCC.js +2 -15
- package/build/esm/cc/ConfigurationCC.js.map +1 -1
- package/build/esm/cc/DoorLockCC.d.ts +512 -1823
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockCC.js +9 -127
- package/build/esm/cc/DoorLockCC.js.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.d.ts +11 -63
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.js +2 -5
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/esm/cc/EnergyProductionCC.d.ts +14 -29
- package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/esm/cc/EnergyProductionCC.js +2 -13
- package/build/esm/cc/EnergyProductionCC.js.map +1 -1
- package/build/esm/cc/EntryControlCC.d.ts +73 -324
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
- package/build/esm/cc/EntryControlCC.js +2 -28
- package/build/esm/cc/EntryControlCC.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +78 -390
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +2 -23
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.d.ts +31 -131
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.js +2 -10
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +17 -65
- 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 +51 -128
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.js +2 -19
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/esm/cc/IndicatorCC.d.ts +123 -365
- package/build/esm/cc/IndicatorCC.d.ts.map +1 -1
- package/build/esm/cc/IndicatorCC.js +2 -43
- package/build/esm/cc/IndicatorCC.js.map +1 -1
- package/build/esm/cc/IrrigationCC.d.ts +826 -2317
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
- package/build/esm/cc/IrrigationCC.js +3 -222
- package/build/esm/cc/IrrigationCC.js.map +1 -1
- package/build/esm/cc/LanguageCC.d.ts +31 -133
- package/build/esm/cc/LanguageCC.d.ts.map +1 -1
- package/build/esm/cc/LanguageCC.js +2 -12
- package/build/esm/cc/LanguageCC.js.map +1 -1
- package/build/esm/cc/LockCC.d.ts +14 -64
- package/build/esm/cc/LockCC.d.ts.map +1 -1
- package/build/esm/cc/LockCC.js +2 -9
- package/build/esm/cc/LockCC.js.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.js +0 -1
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.d.ts +77 -239
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.js +2 -24
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/esm/cc/MeterCC.d.ts +119 -393
- package/build/esm/cc/MeterCC.d.ts.map +1 -1
- package/build/esm/cc/MeterCC.js +3 -49
- package/build/esm/cc/MeterCC.js.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.d.ts +66 -166
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.js +2 -14
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/esm/cc/MultiChannelCC.d.ts +119 -499
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelCC.js +2 -30
- package/build/esm/cc/MultiChannelCC.js.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.d.ts +46 -130
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.js +2 -22
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.d.ts +160 -525
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.js +5 -101
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/esm/cc/NodeNamingCC.d.ts +33 -135
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/esm/cc/NodeNamingCC.js +2 -12
- package/build/esm/cc/NodeNamingCC.js.map +1 -1
- package/build/esm/cc/NotificationCC.d.ts +262 -702
- package/build/esm/cc/NotificationCC.d.ts.map +1 -1
- package/build/esm/cc/NotificationCC.js +3 -85
- package/build/esm/cc/NotificationCC.js.map +1 -1
- package/build/esm/cc/ProtectionCC.d.ts +118 -524
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
- package/build/esm/cc/ProtectionCC.js +2 -36
- package/build/esm/cc/ProtectionCC.js.map +1 -1
- package/build/esm/cc/SceneActivationCC.d.ts +33 -132
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActivationCC.js +2 -14
- package/build/esm/cc/SceneActivationCC.js.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +34 -61
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.js +2 -14
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts +34 -61
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.js +2 -14
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.d.ts +95 -299
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.js +2 -17
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/esm/cc/SoundSwitchCC.d.ts +72 -261
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/SoundSwitchCC.js +2 -33
- package/build/esm/cc/SoundSwitchCC.js.map +1 -1
- package/build/esm/cc/SupervisionCC.d.ts +17 -33
- package/build/esm/cc/SupervisionCC.d.ts.map +1 -1
- package/build/esm/cc/SupervisionCC.js +2 -7
- package/build/esm/cc/SupervisionCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.d.ts +44 -195
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.js +2 -14
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.d.ts +17 -65
- 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 +44 -195
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatModeCC.js +2 -14
- package/build/esm/cc/ThermostatModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts +17 -65
- 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/ThermostatSetpointCC.d.ts +49 -129
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.js +2 -16
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/esm/cc/TimeParametersCC.d.ts +12 -63
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
- package/build/esm/cc/TimeParametersCC.js +2 -8
- package/build/esm/cc/TimeParametersCC.js.map +1 -1
- package/build/esm/cc/UserCodeCC.d.ts +311 -1066
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
- package/build/esm/cc/UserCodeCC.js +2 -60
- package/build/esm/cc/UserCodeCC.js.map +1 -1
- package/build/esm/cc/VersionCC.d.ts +289 -1003
- package/build/esm/cc/VersionCC.d.ts.map +1 -1
- package/build/esm/cc/VersionCC.js +2 -92
- package/build/esm/cc/VersionCC.js.map +1 -1
- package/build/esm/cc/WakeUpCC.d.ts +49 -201
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
- package/build/esm/cc/WakeUpCC.js +2 -21
- package/build/esm/cc/WakeUpCC.js.map +1 -1
- package/build/esm/cc/WindowCoveringCC.d.ts +126 -220
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
- package/build/esm/cc/WindowCoveringCC.js +3 -103
- package/build/esm/cc/WindowCoveringCC.js.map +1 -1
- package/build/esm/cc/ZWavePlusCC.d.ts +69 -329
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
- package/build/esm/cc/ZWavePlusCC.js +2 -25
- package/build/esm/cc/ZWavePlusCC.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/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/Values.d.ts +6 -105
- 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/package.json +9 -7
|
@@ -1,395 +1,149 @@
|
|
|
1
1
|
import { type CCEncodingContext, type CCParsingContext } from "@zwave-js/cc";
|
|
2
2
|
import { type GetDeviceConfig } from "@zwave-js/config";
|
|
3
|
-
import { CommandClasses, type ControlsCC, Duration, type EndpointId, type GetEndpoint, type GetNode, type GetSupportedCCVersion, type GetValueDB, type MaybeNotKnown, type MaybeUnknown, type MessageOrCCLogEntry, type NodeId, type SupervisionResult, type SupportsCC, type ValueID,
|
|
3
|
+
import { CommandClasses, type ControlsCC, Duration, type EndpointId, type GetEndpoint, type GetNode, type GetSupportedCCVersion, type GetValueDB, type MaybeNotKnown, type MaybeUnknown, type MessageOrCCLogEntry, type NodeId, type SupervisionResult, type SupportsCC, type ValueID, type WithAddress } from "@zwave-js/core/safe";
|
|
4
4
|
import { Bytes } from "@zwave-js/shared/safe";
|
|
5
5
|
import { CCAPI, POLL_VALUE, type PollValueImplementation, SET_VALUE, SET_VALUE_HOOKS, type SetValueImplementation, type SetValueImplementationHooksFactory } from "../lib/API.js";
|
|
6
6
|
import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext } from "../lib/CommandClass.js";
|
|
7
7
|
import { BasicCommand } from "../lib/_Types.js";
|
|
8
8
|
export declare const BasicCCValues: Readonly<{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
currentValue: {
|
|
10
|
+
id: {
|
|
11
|
+
readonly commandClass: CommandClasses.Basic;
|
|
12
|
+
readonly property: "currentValue";
|
|
13
|
+
};
|
|
14
|
+
endpoint: (endpoint?: number) => {
|
|
12
15
|
readonly commandClass: CommandClasses.Basic;
|
|
13
16
|
readonly endpoint: number;
|
|
14
|
-
readonly property: "
|
|
17
|
+
readonly property: "currentValue";
|
|
15
18
|
};
|
|
16
|
-
|
|
17
|
-
readonly meta:
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
|
|
22
|
-
readonly type: "
|
|
23
|
-
readonly readable: true;
|
|
24
|
-
readonly writeable: true;
|
|
25
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>) extends infer T ? { [K in keyof T as [undefined] extends [(ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
26
|
-
readonly type: "any";
|
|
27
|
-
readonly readable: true;
|
|
28
|
-
readonly writeable: true;
|
|
29
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
30
|
-
readonly type: "any";
|
|
31
|
-
readonly readable: true;
|
|
32
|
-
readonly writeable: true;
|
|
33
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>)[K]] ? never : K]: (ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
34
|
-
readonly type: "any";
|
|
19
|
+
is: (valueId: ValueID) => boolean;
|
|
20
|
+
readonly meta: {
|
|
21
|
+
readonly label: "Current value";
|
|
22
|
+
readonly writeable: false;
|
|
23
|
+
readonly max: 99;
|
|
24
|
+
readonly min: 0;
|
|
25
|
+
readonly type: "number";
|
|
35
26
|
readonly readable: true;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
readonly type: "any";
|
|
39
|
-
readonly readable: true;
|
|
40
|
-
readonly writeable: true;
|
|
41
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>)[K]; } : never>;
|
|
42
|
-
readonly options: Readonly<(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
43
|
-
readonly internal: false;
|
|
44
|
-
readonly minVersion: 1;
|
|
45
|
-
readonly secret: false;
|
|
46
|
-
readonly stateful: true;
|
|
47
|
-
readonly supportsEndpoints: true;
|
|
48
|
-
readonly autoCreate: true;
|
|
49
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
50
|
-
readonly internal: false;
|
|
51
|
-
readonly minVersion: 1;
|
|
52
|
-
readonly secret: false;
|
|
53
|
-
readonly stateful: true;
|
|
54
|
-
readonly supportsEndpoints: true;
|
|
55
|
-
readonly autoCreate: true;
|
|
56
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
57
|
-
readonly internal: false;
|
|
58
|
-
readonly minVersion: 1;
|
|
59
|
-
readonly secret: false;
|
|
60
|
-
readonly stateful: true;
|
|
61
|
-
readonly supportsEndpoints: true;
|
|
62
|
-
readonly autoCreate: true;
|
|
63
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
64
|
-
readonly internal: false;
|
|
65
|
-
readonly minVersion: 1;
|
|
66
|
-
readonly secret: false;
|
|
67
|
-
readonly stateful: true;
|
|
68
|
-
readonly supportsEndpoints: true;
|
|
69
|
-
readonly autoCreate: true;
|
|
70
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]] ? never : K]: (import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
71
|
-
readonly internal: false;
|
|
72
|
-
readonly minVersion: 1;
|
|
73
|
-
readonly secret: false;
|
|
74
|
-
readonly stateful: true;
|
|
75
|
-
readonly supportsEndpoints: true;
|
|
76
|
-
readonly autoCreate: true;
|
|
77
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
27
|
+
};
|
|
28
|
+
options: {
|
|
78
29
|
readonly internal: false;
|
|
79
30
|
readonly minVersion: 1;
|
|
80
31
|
readonly secret: false;
|
|
81
32
|
readonly stateful: true;
|
|
82
33
|
readonly supportsEndpoints: true;
|
|
83
34
|
readonly autoCreate: true;
|
|
84
|
-
}
|
|
35
|
+
};
|
|
85
36
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
37
|
+
targetValue: {
|
|
38
|
+
id: {
|
|
39
|
+
readonly commandClass: CommandClasses.Basic;
|
|
40
|
+
readonly property: "targetValue";
|
|
41
|
+
};
|
|
42
|
+
endpoint: (endpoint?: number) => {
|
|
89
43
|
readonly commandClass: CommandClasses.Basic;
|
|
90
44
|
readonly endpoint: number;
|
|
91
|
-
readonly property: "
|
|
45
|
+
readonly property: "targetValue";
|
|
92
46
|
};
|
|
93
|
-
|
|
94
|
-
readonly meta:
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
|
|
99
|
-
readonly type: "any";
|
|
100
|
-
readonly readable: true;
|
|
101
|
-
readonly writeable: true;
|
|
102
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>) extends infer T ? { [K in keyof T as [undefined] extends [(ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
103
|
-
readonly type: "any";
|
|
104
|
-
readonly readable: true;
|
|
105
|
-
readonly writeable: true;
|
|
106
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
107
|
-
readonly type: "any";
|
|
108
|
-
readonly readable: true;
|
|
109
|
-
readonly writeable: true;
|
|
110
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>)[K]] ? never : K]: (ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
111
|
-
readonly type: "any";
|
|
112
|
-
readonly readable: true;
|
|
113
|
-
readonly writeable: true;
|
|
114
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
115
|
-
readonly type: "any";
|
|
47
|
+
is: (valueId: ValueID) => boolean;
|
|
48
|
+
readonly meta: {
|
|
49
|
+
readonly label: "Target value";
|
|
50
|
+
readonly min: 0;
|
|
51
|
+
readonly max: 255;
|
|
52
|
+
readonly type: "number";
|
|
116
53
|
readonly readable: true;
|
|
117
54
|
readonly writeable: true;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
readonly internal: false;
|
|
121
|
-
readonly minVersion: 1;
|
|
122
|
-
readonly secret: false;
|
|
123
|
-
readonly stateful: true;
|
|
124
|
-
readonly supportsEndpoints: true;
|
|
125
|
-
readonly autoCreate: true;
|
|
126
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
127
|
-
readonly internal: false;
|
|
128
|
-
readonly minVersion: 1;
|
|
129
|
-
readonly secret: false;
|
|
130
|
-
readonly stateful: true;
|
|
131
|
-
readonly supportsEndpoints: true;
|
|
132
|
-
readonly autoCreate: true;
|
|
133
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
134
|
-
readonly internal: false;
|
|
135
|
-
readonly minVersion: 1;
|
|
136
|
-
readonly secret: false;
|
|
137
|
-
readonly stateful: true;
|
|
138
|
-
readonly supportsEndpoints: true;
|
|
139
|
-
readonly autoCreate: true;
|
|
140
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
141
|
-
readonly internal: false;
|
|
142
|
-
readonly minVersion: 1;
|
|
143
|
-
readonly secret: false;
|
|
144
|
-
readonly stateful: true;
|
|
145
|
-
readonly supportsEndpoints: true;
|
|
146
|
-
readonly autoCreate: true;
|
|
147
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]] ? never : K]: (import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
148
|
-
readonly internal: false;
|
|
149
|
-
readonly minVersion: 1;
|
|
150
|
-
readonly secret: false;
|
|
151
|
-
readonly stateful: true;
|
|
152
|
-
readonly supportsEndpoints: true;
|
|
153
|
-
readonly autoCreate: true;
|
|
154
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
55
|
+
};
|
|
56
|
+
options: {
|
|
155
57
|
readonly internal: false;
|
|
156
58
|
readonly minVersion: 1;
|
|
157
59
|
readonly secret: false;
|
|
158
60
|
readonly stateful: true;
|
|
159
61
|
readonly supportsEndpoints: true;
|
|
160
62
|
readonly autoCreate: true;
|
|
161
|
-
}
|
|
63
|
+
};
|
|
162
64
|
};
|
|
163
65
|
duration: {
|
|
164
|
-
|
|
165
|
-
|
|
66
|
+
id: {
|
|
67
|
+
readonly commandClass: CommandClasses.Basic;
|
|
68
|
+
readonly property: "duration";
|
|
69
|
+
};
|
|
70
|
+
endpoint: (endpoint?: number) => {
|
|
166
71
|
readonly commandClass: CommandClasses.Basic;
|
|
167
72
|
readonly endpoint: number;
|
|
168
73
|
readonly property: "duration";
|
|
169
74
|
};
|
|
170
|
-
|
|
171
|
-
readonly meta:
|
|
172
|
-
readonly
|
|
173
|
-
readonly
|
|
174
|
-
readonly
|
|
175
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
176
|
-
readonly type: "any";
|
|
177
|
-
readonly readable: true;
|
|
178
|
-
readonly writeable: true;
|
|
179
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>) extends infer T ? { [K in keyof T as [undefined] extends [(ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
180
|
-
readonly type: "any";
|
|
181
|
-
readonly readable: true;
|
|
182
|
-
readonly writeable: true;
|
|
183
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
184
|
-
readonly type: "any";
|
|
75
|
+
is: (valueId: ValueID) => boolean;
|
|
76
|
+
readonly meta: {
|
|
77
|
+
readonly label: "Remaining duration";
|
|
78
|
+
readonly writeable: false;
|
|
79
|
+
readonly type: "duration";
|
|
185
80
|
readonly readable: true;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
readonly type: "any";
|
|
189
|
-
readonly readable: true;
|
|
190
|
-
readonly writeable: true;
|
|
191
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
192
|
-
readonly type: "any";
|
|
193
|
-
readonly readable: true;
|
|
194
|
-
readonly writeable: true;
|
|
195
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>)[K]; } : never>;
|
|
196
|
-
readonly options: Readonly<(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
197
|
-
readonly internal: false;
|
|
198
|
-
readonly minVersion: 1;
|
|
199
|
-
readonly secret: false;
|
|
200
|
-
readonly stateful: true;
|
|
201
|
-
readonly supportsEndpoints: true;
|
|
202
|
-
readonly autoCreate: true;
|
|
203
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
204
|
-
readonly internal: false;
|
|
205
|
-
readonly minVersion: 1;
|
|
206
|
-
readonly secret: false;
|
|
207
|
-
readonly stateful: true;
|
|
208
|
-
readonly supportsEndpoints: true;
|
|
209
|
-
readonly autoCreate: true;
|
|
210
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
211
|
-
readonly internal: false;
|
|
212
|
-
readonly minVersion: 1;
|
|
213
|
-
readonly secret: false;
|
|
214
|
-
readonly stateful: true;
|
|
215
|
-
readonly supportsEndpoints: true;
|
|
216
|
-
readonly autoCreate: true;
|
|
217
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
218
|
-
readonly internal: false;
|
|
219
|
-
readonly minVersion: 1;
|
|
220
|
-
readonly secret: false;
|
|
221
|
-
readonly stateful: true;
|
|
222
|
-
readonly supportsEndpoints: true;
|
|
223
|
-
readonly autoCreate: true;
|
|
224
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]] ? never : K]: (import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
225
|
-
readonly internal: false;
|
|
226
|
-
readonly minVersion: 1;
|
|
227
|
-
readonly secret: false;
|
|
228
|
-
readonly stateful: true;
|
|
229
|
-
readonly supportsEndpoints: true;
|
|
230
|
-
readonly autoCreate: true;
|
|
231
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
81
|
+
};
|
|
82
|
+
options: {
|
|
232
83
|
readonly internal: false;
|
|
233
|
-
readonly minVersion:
|
|
84
|
+
readonly minVersion: 2;
|
|
234
85
|
readonly secret: false;
|
|
235
86
|
readonly stateful: true;
|
|
236
87
|
readonly supportsEndpoints: true;
|
|
237
88
|
readonly autoCreate: true;
|
|
238
|
-
}
|
|
89
|
+
};
|
|
239
90
|
};
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
91
|
+
restorePrevious: {
|
|
92
|
+
id: {
|
|
93
|
+
readonly commandClass: CommandClasses.Basic;
|
|
94
|
+
readonly property: "restorePrevious";
|
|
95
|
+
};
|
|
96
|
+
endpoint: (endpoint?: number) => {
|
|
243
97
|
readonly commandClass: CommandClasses.Basic;
|
|
244
98
|
readonly endpoint: number;
|
|
245
|
-
readonly property: "
|
|
99
|
+
readonly property: "restorePrevious";
|
|
246
100
|
};
|
|
247
|
-
|
|
248
|
-
readonly meta:
|
|
249
|
-
readonly
|
|
250
|
-
readonly
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
readonly
|
|
254
|
-
readonly
|
|
255
|
-
readonly writeable: true;
|
|
256
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>) extends infer T ? { [K in keyof T as [undefined] extends [(ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
257
|
-
readonly type: "any";
|
|
258
|
-
readonly readable: true;
|
|
259
|
-
readonly writeable: true;
|
|
260
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
261
|
-
readonly type: "any";
|
|
262
|
-
readonly readable: true;
|
|
263
|
-
readonly writeable: true;
|
|
264
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>)[K]] ? never : K]: (ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
265
|
-
readonly type: "any";
|
|
266
|
-
readonly readable: true;
|
|
267
|
-
readonly writeable: true;
|
|
268
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
269
|
-
readonly type: "any";
|
|
270
|
-
readonly readable: true;
|
|
101
|
+
is: (valueId: ValueID) => boolean;
|
|
102
|
+
readonly meta: {
|
|
103
|
+
readonly label: "Restore previous value";
|
|
104
|
+
readonly states: {
|
|
105
|
+
readonly true: "Restore";
|
|
106
|
+
};
|
|
107
|
+
readonly readable: false;
|
|
108
|
+
readonly type: "boolean";
|
|
271
109
|
readonly writeable: true;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
readonly internal: false;
|
|
275
|
-
readonly minVersion: 1;
|
|
276
|
-
readonly secret: false;
|
|
277
|
-
readonly stateful: true;
|
|
278
|
-
readonly supportsEndpoints: true;
|
|
279
|
-
readonly autoCreate: true;
|
|
280
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
281
|
-
readonly internal: false;
|
|
282
|
-
readonly minVersion: 1;
|
|
283
|
-
readonly secret: false;
|
|
284
|
-
readonly stateful: true;
|
|
285
|
-
readonly supportsEndpoints: true;
|
|
286
|
-
readonly autoCreate: true;
|
|
287
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
288
|
-
readonly internal: false;
|
|
289
|
-
readonly minVersion: 1;
|
|
290
|
-
readonly secret: false;
|
|
291
|
-
readonly stateful: true;
|
|
292
|
-
readonly supportsEndpoints: true;
|
|
293
|
-
readonly autoCreate: true;
|
|
294
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
295
|
-
readonly internal: false;
|
|
296
|
-
readonly minVersion: 1;
|
|
297
|
-
readonly secret: false;
|
|
298
|
-
readonly stateful: true;
|
|
299
|
-
readonly supportsEndpoints: true;
|
|
300
|
-
readonly autoCreate: true;
|
|
301
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]] ? never : K]: (import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
302
|
-
readonly internal: false;
|
|
303
|
-
readonly minVersion: 1;
|
|
304
|
-
readonly secret: false;
|
|
305
|
-
readonly stateful: true;
|
|
306
|
-
readonly supportsEndpoints: true;
|
|
307
|
-
readonly autoCreate: true;
|
|
308
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
110
|
+
};
|
|
111
|
+
options: {
|
|
309
112
|
readonly internal: false;
|
|
310
113
|
readonly minVersion: 1;
|
|
311
114
|
readonly secret: false;
|
|
312
115
|
readonly stateful: true;
|
|
313
116
|
readonly supportsEndpoints: true;
|
|
314
117
|
readonly autoCreate: true;
|
|
315
|
-
}
|
|
118
|
+
};
|
|
316
119
|
};
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
120
|
+
compatEvent: {
|
|
121
|
+
id: {
|
|
122
|
+
readonly commandClass: CommandClasses.Basic;
|
|
123
|
+
readonly property: "event";
|
|
124
|
+
};
|
|
125
|
+
endpoint: (endpoint?: number) => {
|
|
320
126
|
readonly commandClass: CommandClasses.Basic;
|
|
321
127
|
readonly endpoint: number;
|
|
322
|
-
readonly property: "
|
|
128
|
+
readonly property: "event";
|
|
323
129
|
};
|
|
324
|
-
|
|
325
|
-
readonly meta:
|
|
326
|
-
readonly
|
|
327
|
-
readonly
|
|
328
|
-
readonly
|
|
329
|
-
|
|
330
|
-
readonly type: "
|
|
331
|
-
readonly readable: true;
|
|
332
|
-
readonly writeable: true;
|
|
333
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>) extends infer T ? { [K in keyof T as [undefined] extends [(ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
334
|
-
readonly type: "any";
|
|
335
|
-
readonly readable: true;
|
|
336
|
-
readonly writeable: true;
|
|
337
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
338
|
-
readonly type: "any";
|
|
130
|
+
is: (valueId: ValueID) => boolean;
|
|
131
|
+
readonly meta: {
|
|
132
|
+
readonly label: "Event value";
|
|
133
|
+
readonly writeable: false;
|
|
134
|
+
readonly min: 0;
|
|
135
|
+
readonly max: 255;
|
|
136
|
+
readonly type: "number";
|
|
339
137
|
readonly readable: true;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
readonly type: "any";
|
|
343
|
-
readonly readable: true;
|
|
344
|
-
readonly writeable: true;
|
|
345
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
346
|
-
readonly type: "any";
|
|
347
|
-
readonly readable: true;
|
|
348
|
-
readonly writeable: true;
|
|
349
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>)[K]; } : never>;
|
|
350
|
-
readonly options: Readonly<(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
351
|
-
readonly internal: false;
|
|
352
|
-
readonly minVersion: 1;
|
|
353
|
-
readonly secret: false;
|
|
354
|
-
readonly stateful: true;
|
|
355
|
-
readonly supportsEndpoints: true;
|
|
356
|
-
readonly autoCreate: true;
|
|
357
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
358
|
-
readonly internal: false;
|
|
359
|
-
readonly minVersion: 1;
|
|
360
|
-
readonly secret: false;
|
|
361
|
-
readonly stateful: true;
|
|
362
|
-
readonly supportsEndpoints: true;
|
|
363
|
-
readonly autoCreate: true;
|
|
364
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
365
|
-
readonly internal: false;
|
|
366
|
-
readonly minVersion: 1;
|
|
367
|
-
readonly secret: false;
|
|
368
|
-
readonly stateful: true;
|
|
369
|
-
readonly supportsEndpoints: true;
|
|
370
|
-
readonly autoCreate: true;
|
|
371
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
372
|
-
readonly internal: false;
|
|
373
|
-
readonly minVersion: 1;
|
|
374
|
-
readonly secret: false;
|
|
375
|
-
readonly stateful: true;
|
|
376
|
-
readonly supportsEndpoints: true;
|
|
377
|
-
readonly autoCreate: true;
|
|
378
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]] ? never : K]: (import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
379
|
-
readonly internal: false;
|
|
380
|
-
readonly minVersion: 1;
|
|
381
|
-
readonly secret: false;
|
|
382
|
-
readonly stateful: true;
|
|
383
|
-
readonly supportsEndpoints: true;
|
|
384
|
-
readonly autoCreate: true;
|
|
385
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
138
|
+
};
|
|
139
|
+
options: {
|
|
386
140
|
readonly internal: false;
|
|
387
141
|
readonly minVersion: 1;
|
|
388
142
|
readonly secret: false;
|
|
389
|
-
readonly stateful:
|
|
143
|
+
readonly stateful: false;
|
|
390
144
|
readonly supportsEndpoints: true;
|
|
391
|
-
readonly autoCreate:
|
|
392
|
-
}
|
|
145
|
+
readonly autoCreate: false;
|
|
146
|
+
};
|
|
393
147
|
};
|
|
394
148
|
}>;
|
|
395
149
|
export declare class BasicCCAPI extends CCAPI {
|
package/build/cjs/cc/BasicCC.js
CHANGED
|
@@ -34,7 +34,7 @@ __export(BasicCC_exports, {
|
|
|
34
34
|
BasicCCGet: () => BasicCCGet,
|
|
35
35
|
BasicCCReport: () => BasicCCReport,
|
|
36
36
|
BasicCCSet: () => BasicCCSet,
|
|
37
|
-
BasicCCValues: () => BasicCCValues
|
|
37
|
+
BasicCCValues: () => import_CCValues_generated.BasicCCValues
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(BasicCC_exports);
|
|
40
40
|
var __validateArgs = __toESM(require("./BasicCC._validateArgs.js"), 1);
|
|
@@ -46,6 +46,7 @@ var import_CommandClass = require("../lib/CommandClass.js");
|
|
|
46
46
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
47
47
|
var import_Values = require("../lib/Values.js");
|
|
48
48
|
var import_Types = require("../lib/_Types.js");
|
|
49
|
+
var import_CCValues_generated = require("./_CCValues.generated.js");
|
|
49
50
|
var __runInitializers = function(thisArg, initializers, value) {
|
|
50
51
|
var useValue = arguments.length > 2;
|
|
51
52
|
for (var i = 0; i < initializers.length; i++) {
|
|
@@ -87,38 +88,6 @@ var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializ
|
|
|
87
88
|
done = true;
|
|
88
89
|
};
|
|
89
90
|
const { validateArgs_BasicCCAPI_set } = __validateArgs;
|
|
90
|
-
const BasicCCValues = Object.freeze({
|
|
91
|
-
...import_Values.V.defineStaticCCValues(import_safe.CommandClasses.Basic, {
|
|
92
|
-
...import_Values.V.staticProperty("currentValue", {
|
|
93
|
-
...import_safe.ValueMetadata.ReadOnlyLevel,
|
|
94
|
-
label: "Current value"
|
|
95
|
-
}),
|
|
96
|
-
...import_Values.V.staticProperty("targetValue", {
|
|
97
|
-
...import_safe.ValueMetadata.UInt8,
|
|
98
|
-
label: "Target value",
|
|
99
|
-
forceCreation: true
|
|
100
|
-
}),
|
|
101
|
-
...import_Values.V.staticProperty("duration", {
|
|
102
|
-
...import_safe.ValueMetadata.ReadOnlyDuration,
|
|
103
|
-
label: "Remaining duration",
|
|
104
|
-
minVersion: 2
|
|
105
|
-
}),
|
|
106
|
-
...import_Values.V.staticProperty("restorePrevious", {
|
|
107
|
-
...import_safe.ValueMetadata.WriteOnlyBoolean,
|
|
108
|
-
label: "Restore previous value",
|
|
109
|
-
states: {
|
|
110
|
-
true: "Restore"
|
|
111
|
-
}
|
|
112
|
-
}),
|
|
113
|
-
...import_Values.V.staticPropertyWithName("compatEvent", "event", {
|
|
114
|
-
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
115
|
-
label: "Event value"
|
|
116
|
-
}, {
|
|
117
|
-
stateful: false,
|
|
118
|
-
autoCreate: false
|
|
119
|
-
})
|
|
120
|
-
})
|
|
121
|
-
});
|
|
122
91
|
let BasicCCAPI = (() => {
|
|
123
92
|
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses.Basic)];
|
|
124
93
|
let _classDescriptor;
|
|
@@ -173,7 +142,7 @@ let BasicCCAPI = (() => {
|
|
|
173
142
|
value = 255;
|
|
174
143
|
}
|
|
175
144
|
if (property === "targetValue") {
|
|
176
|
-
const currentValueValueId = BasicCCValues.currentValue.endpoint(this.endpoint.index);
|
|
145
|
+
const currentValueValueId = import_CCValues_generated.BasicCCValues.currentValue.endpoint(this.endpoint.index);
|
|
177
146
|
return {
|
|
178
147
|
optimisticallyUpdateRelatedValues: /* @__PURE__ */ __name((_supervisedAndSuccessful) => {
|
|
179
148
|
if (typeof value === "number" && value >= 0 && value <= 99) {
|
|
@@ -219,7 +188,7 @@ let BasicCCAPI = (() => {
|
|
|
219
188
|
});
|
|
220
189
|
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
221
190
|
if (response) {
|
|
222
|
-
this.tryGetValueDB()?.setValue(BasicCCValues.currentValue.endpoint(this.endpoint.index), response.currentValue);
|
|
191
|
+
this.tryGetValueDB()?.setValue(import_CCValues_generated.BasicCCValues.currentValue.endpoint(this.endpoint.index), response.currentValue);
|
|
223
192
|
return (0, import_safe3.pick)(response, ["currentValue", "targetValue", "duration"]);
|
|
224
193
|
}
|
|
225
194
|
}
|
|
@@ -236,7 +205,7 @@ let BasicCCAPI = (() => {
|
|
|
236
205
|
return BasicCCAPI2 = _classThis;
|
|
237
206
|
})();
|
|
238
207
|
let BasicCC = (() => {
|
|
239
|
-
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Basic), (0, import_CommandClassDecorators.implementedVersion)(2), (0, import_CommandClassDecorators.ccValues)(BasicCCValues)];
|
|
208
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Basic), (0, import_CommandClassDecorators.implementedVersion)(2), (0, import_CommandClassDecorators.ccValues)(import_CCValues_generated.BasicCCValues)];
|
|
240
209
|
let _classDescriptor;
|
|
241
210
|
let _classExtraInitializers = [];
|
|
242
211
|
let _classThis;
|
|
@@ -265,7 +234,7 @@ let BasicCC = (() => {
|
|
|
265
234
|
});
|
|
266
235
|
endpoint.addCC(import_safe.CommandClasses.Basic, { isSupported: true });
|
|
267
236
|
await this.refreshValues(ctx);
|
|
268
|
-
if (this.getValue(ctx, BasicCCValues.currentValue) == void 0) {
|
|
237
|
+
if (this.getValue(ctx, import_CCValues_generated.BasicCCValues.currentValue) == void 0) {
|
|
269
238
|
ctx.logNode(node.id, {
|
|
270
239
|
endpoint: this.endpointIndex,
|
|
271
240
|
message: "No response to Basic Get command, assuming Basic CC is unsupported..."
|
|
@@ -309,12 +278,12 @@ remaining duration: ${basicResponse.duration?.toString() ?? "undefined"}`;
|
|
|
309
278
|
const endpoint = this.getEndpoint(ctx);
|
|
310
279
|
const compat = ctx.getDeviceConfig?.(endpoint.nodeId)?.compat;
|
|
311
280
|
if (compat?.mapBasicSet === "event") {
|
|
312
|
-
ret.push(BasicCCValues.compatEvent.endpoint(endpoint.index));
|
|
281
|
+
ret.push(import_CCValues_generated.BasicCCValues.compatEvent.endpoint(endpoint.index));
|
|
313
282
|
}
|
|
314
283
|
if (endpoint.supportsCC(this.ccId)) {
|
|
315
284
|
ret.push(...super.getDefinedValueIDs(ctx));
|
|
316
285
|
} else if (endpoint.controlsCC(import_safe.CommandClasses.Basic)) {
|
|
317
|
-
ret.push(BasicCCValues.currentValue.endpoint(endpoint.index));
|
|
286
|
+
ret.push(import_CCValues_generated.BasicCCValues.currentValue.endpoint(endpoint.index));
|
|
318
287
|
}
|
|
319
288
|
return ret;
|
|
320
289
|
}
|
|
@@ -368,7 +337,7 @@ let BasicCCSet = (() => {
|
|
|
368
337
|
return BasicCCSet2 = _classThis;
|
|
369
338
|
})();
|
|
370
339
|
let BasicCCReport = (() => {
|
|
371
|
-
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.BasicCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("currentValue", BasicCCValues.currentValue), (0, import_CommandClassDecorators.ccValueProperty)("targetValue", BasicCCValues.targetValue), (0, import_CommandClassDecorators.ccValueProperty)("duration", BasicCCValues.duration)];
|
|
340
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.BasicCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("currentValue", import_CCValues_generated.BasicCCValues.currentValue), (0, import_CommandClassDecorators.ccValueProperty)("targetValue", import_CCValues_generated.BasicCCValues.targetValue), (0, import_CommandClassDecorators.ccValueProperty)("duration", import_CCValues_generated.BasicCCValues.duration)];
|
|
372
341
|
let _classDescriptor;
|
|
373
342
|
let _classExtraInitializers = [];
|
|
374
343
|
let _classThis;
|
|
@@ -419,17 +388,17 @@ let BasicCCReport = (() => {
|
|
|
419
388
|
duration;
|
|
420
389
|
persistValues(ctx) {
|
|
421
390
|
const definedValueIDs = this.getDefinedValueIDs(ctx);
|
|
422
|
-
const shouldPersistCurrentValue = definedValueIDs.some((vid) => BasicCCValues.currentValue.is(vid));
|
|
423
|
-
const shouldPersistTargetValue = definedValueIDs.some((vid) => BasicCCValues.targetValue.is(vid));
|
|
424
|
-
const shouldPersistDuration = definedValueIDs.some((vid) => BasicCCValues.duration.is(vid));
|
|
391
|
+
const shouldPersistCurrentValue = definedValueIDs.some((vid) => import_CCValues_generated.BasicCCValues.currentValue.is(vid));
|
|
392
|
+
const shouldPersistTargetValue = definedValueIDs.some((vid) => import_CCValues_generated.BasicCCValues.targetValue.is(vid));
|
|
393
|
+
const shouldPersistDuration = definedValueIDs.some((vid) => import_CCValues_generated.BasicCCValues.duration.is(vid));
|
|
425
394
|
if (this.currentValue !== void 0 && shouldPersistCurrentValue) {
|
|
426
|
-
this.setValue(ctx, BasicCCValues.currentValue, this.currentValue);
|
|
395
|
+
this.setValue(ctx, import_CCValues_generated.BasicCCValues.currentValue, this.currentValue);
|
|
427
396
|
}
|
|
428
397
|
if (this.targetValue !== void 0 && shouldPersistTargetValue) {
|
|
429
|
-
this.setValue(ctx, BasicCCValues.targetValue, this.targetValue);
|
|
398
|
+
this.setValue(ctx, import_CCValues_generated.BasicCCValues.targetValue, this.targetValue);
|
|
430
399
|
}
|
|
431
400
|
if (this.duration !== void 0 && shouldPersistDuration) {
|
|
432
|
-
this.setValue(ctx, BasicCCValues.duration, this.duration);
|
|
401
|
+
this.setValue(ctx, import_CCValues_generated.BasicCCValues.duration, this.duration);
|
|
433
402
|
}
|
|
434
403
|
return true;
|
|
435
404
|
}
|