@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,38 +1,31 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CCEncodingContext, type CCParsingContext } from "@zwave-js/cc";
|
|
2
|
+
import { type GetDeviceConfig } from "@zwave-js/config";
|
|
3
|
+
import { type GetNode, type GetSupportedCCVersion, type GetValueDB, type MaybeUnknown, type WithAddress } from "@zwave-js/core";
|
|
2
4
|
import { CommandClasses, type ControlsCC, type EndpointId, type GetEndpoint, type MaybeNotKnown, type MessageOrCCLogEntry, type NodeId, type SinglecastCC, type SupervisionResult, type SupportsCC } from "@zwave-js/core/safe";
|
|
3
|
-
import type { CCEncodingContext, CCParsingContext, GetDeviceConfig, GetNode, GetSupportedCCVersion, GetValueDB } from "@zwave-js/host/safe";
|
|
4
5
|
import { Bytes } from "@zwave-js/shared/safe";
|
|
5
6
|
import { type AllOrNone } from "@zwave-js/shared/safe";
|
|
6
7
|
import { POLL_VALUE, PhysicalCCAPI, type PollValueImplementation, SET_VALUE, SET_VALUE_HOOKS, type SetValueImplementation, type SetValueImplementationHooksFactory } from "../lib/API.js";
|
|
7
8
|
import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext } from "../lib/CommandClass.js";
|
|
8
9
|
import { MeterCommand, type MeterReading, RateType } from "../lib/_Types.js";
|
|
9
10
|
export declare const MeterCCValues: Readonly<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
readonly
|
|
13
|
-
|
|
14
|
-
readonly rateType: RateType;
|
|
15
|
-
readonly scale: number;
|
|
16
|
-
};
|
|
17
|
-
readonly writeable: false;
|
|
18
|
-
readonly type: "number";
|
|
19
|
-
readonly readable: true;
|
|
20
|
-
};
|
|
21
|
-
readonly id: {
|
|
22
|
-
commandClass: CommandClasses.Meter;
|
|
23
|
-
property: "value";
|
|
24
|
-
propertyKey: number;
|
|
11
|
+
type: {
|
|
12
|
+
id: {
|
|
13
|
+
readonly commandClass: CommandClasses.Meter;
|
|
14
|
+
readonly property: "type";
|
|
25
15
|
};
|
|
26
|
-
|
|
16
|
+
endpoint: (endpoint?: number) => {
|
|
27
17
|
readonly commandClass: CommandClasses.Meter;
|
|
28
18
|
readonly endpoint: number;
|
|
29
|
-
readonly property: "
|
|
30
|
-
readonly propertyKey: number;
|
|
19
|
+
readonly property: "type";
|
|
31
20
|
};
|
|
32
|
-
}) & {
|
|
33
21
|
is: (valueId: import("@zwave-js/core").ValueID) => boolean;
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
22
|
+
readonly meta: Readonly<{
|
|
23
|
+
readonly type: "any";
|
|
24
|
+
readonly readable: true;
|
|
25
|
+
readonly writeable: true;
|
|
26
|
+
}>;
|
|
27
|
+
options: {
|
|
28
|
+
readonly internal: true;
|
|
36
29
|
readonly minVersion: 1;
|
|
37
30
|
readonly secret: false;
|
|
38
31
|
readonly stateful: true;
|
|
@@ -40,36 +33,24 @@ export declare const MeterCCValues: Readonly<{
|
|
|
40
33
|
readonly autoCreate: true;
|
|
41
34
|
};
|
|
42
35
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly true: "Reset";
|
|
48
|
-
};
|
|
49
|
-
readonly ccSpecific: {
|
|
50
|
-
readonly meterType: number;
|
|
51
|
-
readonly rateType: RateType;
|
|
52
|
-
readonly scale: number;
|
|
53
|
-
};
|
|
54
|
-
readonly readable: false;
|
|
55
|
-
readonly type: "boolean";
|
|
56
|
-
readonly writeable: true;
|
|
57
|
-
};
|
|
58
|
-
readonly id: {
|
|
59
|
-
commandClass: CommandClasses.Meter;
|
|
60
|
-
property: "reset";
|
|
61
|
-
propertyKey: number;
|
|
36
|
+
supportsReset: {
|
|
37
|
+
id: {
|
|
38
|
+
readonly commandClass: CommandClasses.Meter;
|
|
39
|
+
readonly property: "supportsReset";
|
|
62
40
|
};
|
|
63
|
-
|
|
41
|
+
endpoint: (endpoint?: number) => {
|
|
64
42
|
readonly commandClass: CommandClasses.Meter;
|
|
65
43
|
readonly endpoint: number;
|
|
66
|
-
readonly property: "
|
|
67
|
-
readonly propertyKey: number;
|
|
44
|
+
readonly property: "supportsReset";
|
|
68
45
|
};
|
|
69
|
-
}) & {
|
|
70
46
|
is: (valueId: import("@zwave-js/core").ValueID) => boolean;
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
47
|
+
readonly meta: Readonly<{
|
|
48
|
+
readonly type: "any";
|
|
49
|
+
readonly readable: true;
|
|
50
|
+
readonly writeable: true;
|
|
51
|
+
}>;
|
|
52
|
+
options: {
|
|
53
|
+
readonly internal: true;
|
|
73
54
|
readonly minVersion: 1;
|
|
74
55
|
readonly secret: false;
|
|
75
56
|
readonly stateful: true;
|
|
@@ -77,28 +58,24 @@ export declare const MeterCCValues: Readonly<{
|
|
|
77
58
|
readonly autoCreate: true;
|
|
78
59
|
};
|
|
79
60
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
commandClass: CommandClasses.Meter;
|
|
83
|
-
property: "
|
|
61
|
+
supportedScales: {
|
|
62
|
+
id: {
|
|
63
|
+
readonly commandClass: CommandClasses.Meter;
|
|
64
|
+
readonly property: "supportedScales";
|
|
84
65
|
};
|
|
85
|
-
|
|
66
|
+
endpoint: (endpoint?: number) => {
|
|
86
67
|
readonly commandClass: CommandClasses.Meter;
|
|
87
68
|
readonly endpoint: number;
|
|
88
|
-
readonly property: "
|
|
69
|
+
readonly property: "supportedScales";
|
|
89
70
|
};
|
|
90
|
-
|
|
91
|
-
readonly meta: {
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
94
|
-
readonly true: "Reset";
|
|
95
|
-
};
|
|
96
|
-
readonly readable: false;
|
|
97
|
-
readonly type: "boolean";
|
|
71
|
+
is: (valueId: import("@zwave-js/core").ValueID) => boolean;
|
|
72
|
+
readonly meta: Readonly<{
|
|
73
|
+
readonly type: "any";
|
|
74
|
+
readonly readable: true;
|
|
98
75
|
readonly writeable: true;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
readonly internal:
|
|
76
|
+
}>;
|
|
77
|
+
options: {
|
|
78
|
+
readonly internal: true;
|
|
102
79
|
readonly minVersion: 1;
|
|
103
80
|
readonly secret: false;
|
|
104
81
|
readonly stateful: true;
|
|
@@ -107,103 +84,127 @@ export declare const MeterCCValues: Readonly<{
|
|
|
107
84
|
};
|
|
108
85
|
};
|
|
109
86
|
supportedRateTypes: {
|
|
110
|
-
|
|
111
|
-
commandClass: CommandClasses.Meter;
|
|
112
|
-
property: "supportedRateTypes";
|
|
87
|
+
id: {
|
|
88
|
+
readonly commandClass: CommandClasses.Meter;
|
|
89
|
+
readonly property: "supportedRateTypes";
|
|
113
90
|
};
|
|
114
|
-
|
|
91
|
+
endpoint: (endpoint?: number) => {
|
|
115
92
|
readonly commandClass: CommandClasses.Meter;
|
|
116
93
|
readonly endpoint: number;
|
|
117
94
|
readonly property: "supportedRateTypes";
|
|
118
95
|
};
|
|
119
|
-
|
|
120
|
-
readonly meta: {
|
|
96
|
+
is: (valueId: import("@zwave-js/core").ValueID) => boolean;
|
|
97
|
+
readonly meta: Readonly<{
|
|
121
98
|
readonly type: "any";
|
|
122
99
|
readonly readable: true;
|
|
123
100
|
readonly writeable: true;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
readonly
|
|
127
|
-
readonly secret: false;
|
|
101
|
+
}>;
|
|
102
|
+
options: {
|
|
103
|
+
readonly internal: true;
|
|
128
104
|
readonly minVersion: 1;
|
|
105
|
+
readonly secret: false;
|
|
106
|
+
readonly stateful: true;
|
|
129
107
|
readonly supportsEndpoints: true;
|
|
130
108
|
readonly autoCreate: true;
|
|
131
|
-
readonly internal: true;
|
|
132
109
|
};
|
|
133
110
|
};
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
commandClass: CommandClasses.Meter;
|
|
137
|
-
property: "
|
|
111
|
+
resetAll: {
|
|
112
|
+
id: {
|
|
113
|
+
readonly commandClass: CommandClasses.Meter;
|
|
114
|
+
readonly property: "reset";
|
|
138
115
|
};
|
|
139
|
-
|
|
116
|
+
endpoint: (endpoint?: number) => {
|
|
140
117
|
readonly commandClass: CommandClasses.Meter;
|
|
141
118
|
readonly endpoint: number;
|
|
142
|
-
readonly property: "
|
|
119
|
+
readonly property: "reset";
|
|
143
120
|
};
|
|
144
|
-
|
|
121
|
+
is: (valueId: import("@zwave-js/core").ValueID) => boolean;
|
|
145
122
|
readonly meta: {
|
|
146
|
-
readonly
|
|
147
|
-
readonly
|
|
123
|
+
readonly label: "Reset accumulated values";
|
|
124
|
+
readonly states: {
|
|
125
|
+
readonly true: "Reset";
|
|
126
|
+
};
|
|
127
|
+
readonly readable: false;
|
|
128
|
+
readonly type: "boolean";
|
|
148
129
|
readonly writeable: true;
|
|
149
130
|
};
|
|
150
|
-
|
|
151
|
-
readonly
|
|
152
|
-
readonly secret: false;
|
|
131
|
+
options: {
|
|
132
|
+
readonly internal: false;
|
|
153
133
|
readonly minVersion: 1;
|
|
134
|
+
readonly secret: false;
|
|
135
|
+
readonly stateful: true;
|
|
154
136
|
readonly supportsEndpoints: true;
|
|
155
137
|
readonly autoCreate: true;
|
|
156
|
-
readonly internal: true;
|
|
157
138
|
};
|
|
158
139
|
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
commandClass: CommandClasses.Meter;
|
|
162
|
-
property: "
|
|
140
|
+
resetSingle: ((meterType: number, rateType: RateType, scale: number) => {
|
|
141
|
+
id: {
|
|
142
|
+
readonly commandClass: CommandClasses.Meter;
|
|
143
|
+
readonly property: "reset";
|
|
144
|
+
readonly propertyKey: number;
|
|
163
145
|
};
|
|
164
|
-
|
|
146
|
+
endpoint: (endpoint?: number) => {
|
|
165
147
|
readonly commandClass: CommandClasses.Meter;
|
|
166
148
|
readonly endpoint: number;
|
|
167
|
-
readonly property: "
|
|
149
|
+
readonly property: "reset";
|
|
150
|
+
readonly propertyKey: number;
|
|
168
151
|
};
|
|
169
|
-
readonly is: (valueId: import("@zwave-js/core").ValueID) => boolean;
|
|
170
152
|
readonly meta: {
|
|
171
|
-
readonly
|
|
172
|
-
readonly
|
|
153
|
+
readonly label: `Reset (Consumption, ${string})` | `Reset (Production, ${string})` | `Reset (${string})`;
|
|
154
|
+
readonly states: {
|
|
155
|
+
readonly true: "Reset";
|
|
156
|
+
};
|
|
157
|
+
readonly ccSpecific: {
|
|
158
|
+
readonly meterType: number;
|
|
159
|
+
readonly rateType: RateType;
|
|
160
|
+
readonly scale: number;
|
|
161
|
+
};
|
|
162
|
+
readonly readable: false;
|
|
163
|
+
readonly type: "boolean";
|
|
173
164
|
readonly writeable: true;
|
|
174
165
|
};
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
166
|
+
}) & {
|
|
167
|
+
is: (valueId: import("@zwave-js/core").ValueID) => boolean;
|
|
168
|
+
options: {
|
|
169
|
+
readonly internal: false;
|
|
178
170
|
readonly minVersion: 1;
|
|
171
|
+
readonly secret: false;
|
|
172
|
+
readonly stateful: true;
|
|
179
173
|
readonly supportsEndpoints: true;
|
|
180
174
|
readonly autoCreate: true;
|
|
181
|
-
readonly internal: true;
|
|
182
175
|
};
|
|
183
176
|
};
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
commandClass: CommandClasses.Meter;
|
|
187
|
-
property: "
|
|
177
|
+
value: ((meterType: number, rateType: RateType, scale: number) => {
|
|
178
|
+
id: {
|
|
179
|
+
readonly commandClass: CommandClasses.Meter;
|
|
180
|
+
readonly property: "value";
|
|
181
|
+
readonly propertyKey: number;
|
|
188
182
|
};
|
|
189
|
-
|
|
183
|
+
endpoint: (endpoint?: number) => {
|
|
190
184
|
readonly commandClass: CommandClasses.Meter;
|
|
191
185
|
readonly endpoint: number;
|
|
192
|
-
readonly property: "
|
|
186
|
+
readonly property: "value";
|
|
187
|
+
readonly propertyKey: number;
|
|
193
188
|
};
|
|
194
|
-
readonly is: (valueId: import("@zwave-js/core").ValueID) => boolean;
|
|
195
189
|
readonly meta: {
|
|
196
|
-
readonly
|
|
190
|
+
readonly ccSpecific: {
|
|
191
|
+
readonly meterType: number;
|
|
192
|
+
readonly rateType: RateType;
|
|
193
|
+
readonly scale: number;
|
|
194
|
+
};
|
|
195
|
+
readonly writeable: false;
|
|
196
|
+
readonly type: "number";
|
|
197
197
|
readonly readable: true;
|
|
198
|
-
readonly writeable: true;
|
|
199
198
|
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
199
|
+
}) & {
|
|
200
|
+
is: (valueId: import("@zwave-js/core").ValueID) => boolean;
|
|
201
|
+
options: {
|
|
202
|
+
readonly internal: false;
|
|
203
203
|
readonly minVersion: 1;
|
|
204
|
+
readonly secret: false;
|
|
205
|
+
readonly stateful: true;
|
|
204
206
|
readonly supportsEndpoints: true;
|
|
205
207
|
readonly autoCreate: true;
|
|
206
|
-
readonly internal: true;
|
|
207
208
|
};
|
|
208
209
|
};
|
|
209
210
|
}>;
|
|
@@ -265,7 +266,7 @@ export declare class MeterCCReport extends MeterCC {
|
|
|
265
266
|
previousValue: MaybeNotKnown<number>;
|
|
266
267
|
rateType: RateType;
|
|
267
268
|
deltaTime: MaybeUnknown<number>;
|
|
268
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
269
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
269
270
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
270
271
|
}
|
|
271
272
|
export interface MeterCCGetOptions {
|
|
@@ -277,7 +278,7 @@ export declare class MeterCCGet extends MeterCC {
|
|
|
277
278
|
static from(raw: CCRaw, ctx: CCParsingContext): MeterCCGet;
|
|
278
279
|
rateType: RateType | undefined;
|
|
279
280
|
scale: number | undefined;
|
|
280
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
281
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
281
282
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
282
283
|
}
|
|
283
284
|
export interface MeterCCSupportedReportOptions {
|
|
@@ -294,7 +295,7 @@ export declare class MeterCCSupportedReport extends MeterCC {
|
|
|
294
295
|
readonly supportedScales: readonly number[];
|
|
295
296
|
readonly supportedRateTypes: readonly RateType[];
|
|
296
297
|
persistValues(ctx: PersistValuesContext): boolean;
|
|
297
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
298
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
298
299
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
299
300
|
}
|
|
300
301
|
export declare class MeterCCSupportedGet extends MeterCC {
|
|
@@ -312,7 +313,7 @@ export declare class MeterCCReset extends MeterCC {
|
|
|
312
313
|
scale: number | undefined;
|
|
313
314
|
rateType: RateType | undefined;
|
|
314
315
|
targetValue: number | undefined;
|
|
315
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
316
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
316
317
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
317
318
|
}
|
|
318
319
|
//# sourceMappingURL=MeterCC.d.ts.map
|
package/build/cjs/cc/MeterCC.js
CHANGED
|
@@ -36,7 +36,7 @@ __export(MeterCC_exports, {
|
|
|
36
36
|
MeterCCReset: () => MeterCCReset,
|
|
37
37
|
MeterCCSupportedGet: () => MeterCCSupportedGet,
|
|
38
38
|
MeterCCSupportedReport: () => MeterCCSupportedReport,
|
|
39
|
-
MeterCCValues: () => MeterCCValues,
|
|
39
|
+
MeterCCValues: () => import_CCValues_generated.MeterCCValues,
|
|
40
40
|
isAccumulatedValue: () => isAccumulatedValue
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(MeterCC_exports);
|
|
@@ -46,10 +46,12 @@ var import_safe = require("@zwave-js/core/safe");
|
|
|
46
46
|
var import_safe2 = require("@zwave-js/shared/safe");
|
|
47
47
|
var import_safe3 = require("@zwave-js/shared/safe");
|
|
48
48
|
var import_API = require("../lib/API.js");
|
|
49
|
+
var import_CCValueUtils = require("../lib/CCValueUtils.js");
|
|
49
50
|
var import_CommandClass = require("../lib/CommandClass.js");
|
|
50
51
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
51
52
|
var import_Values = require("../lib/Values.js");
|
|
52
53
|
var import_Types = require("../lib/_Types.js");
|
|
54
|
+
var import_CCValues_generated = require("./_CCValues.generated.js");
|
|
53
55
|
var __runInitializers = function(thisArg, initializers, value) {
|
|
54
56
|
var useValue = arguments.length > 2;
|
|
55
57
|
for (var i = 0; i < initializers.length; i++) {
|
|
@@ -91,52 +93,6 @@ var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializ
|
|
|
91
93
|
done = true;
|
|
92
94
|
};
|
|
93
95
|
const { validateArgs_MeterCCAPI_get, validateArgs_MeterCCAPI_sendReport, validateArgs_MeterCCAPI_getAll, validateArgs_MeterCCAPI_sendSupportedReport, validateArgs_MeterCCAPI_reset } = __validateArgs;
|
|
94
|
-
const MeterCCValues = Object.freeze({
|
|
95
|
-
...import_Values.V.defineStaticCCValues(import_safe.CommandClasses.Meter, {
|
|
96
|
-
...import_Values.V.staticProperty("type", void 0, { internal: true }),
|
|
97
|
-
...import_Values.V.staticProperty("supportsReset", void 0, { internal: true }),
|
|
98
|
-
...import_Values.V.staticProperty("supportedScales", void 0, { internal: true }),
|
|
99
|
-
...import_Values.V.staticProperty("supportedRateTypes", void 0, {
|
|
100
|
-
internal: true
|
|
101
|
-
}),
|
|
102
|
-
...import_Values.V.staticPropertyWithName("resetAll", "reset", {
|
|
103
|
-
...import_safe.ValueMetadata.WriteOnlyBoolean,
|
|
104
|
-
label: `Reset accumulated values`,
|
|
105
|
-
states: {
|
|
106
|
-
true: "Reset"
|
|
107
|
-
}
|
|
108
|
-
})
|
|
109
|
-
}),
|
|
110
|
-
...import_Values.V.defineDynamicCCValues(import_safe.CommandClasses.Meter, {
|
|
111
|
-
...import_Values.V.dynamicPropertyAndKeyWithName("resetSingle", "reset", toPropertyKey, ({ property, propertyKey }) => property === "reset" && typeof propertyKey === "number", (meterType, rateType, scale) => ({
|
|
112
|
-
...import_safe.ValueMetadata.WriteOnlyBoolean,
|
|
113
|
-
// This is only a placeholder label. A config manager is needed to
|
|
114
|
-
// determine the actual label.
|
|
115
|
-
label: `Reset (${rateType === import_Types.RateType.Consumed ? "Consumption, " : rateType === import_Types.RateType.Produced ? "Production, " : ""}${(0, import_safe3.num2hex)(scale)})`,
|
|
116
|
-
states: {
|
|
117
|
-
true: "Reset"
|
|
118
|
-
},
|
|
119
|
-
ccSpecific: {
|
|
120
|
-
meterType,
|
|
121
|
-
rateType,
|
|
122
|
-
scale
|
|
123
|
-
}
|
|
124
|
-
})),
|
|
125
|
-
...import_Values.V.dynamicPropertyAndKeyWithName("value", "value", toPropertyKey, ({ property, propertyKey }) => property === "value" && typeof propertyKey === "number", (meterType, rateType, scale) => ({
|
|
126
|
-
...import_safe.ValueMetadata.ReadOnlyNumber,
|
|
127
|
-
// Label and unit can only be determined with a config manager
|
|
128
|
-
ccSpecific: {
|
|
129
|
-
meterType,
|
|
130
|
-
rateType,
|
|
131
|
-
scale
|
|
132
|
-
}
|
|
133
|
-
}))
|
|
134
|
-
})
|
|
135
|
-
});
|
|
136
|
-
function toPropertyKey(meterType, rateType, scale) {
|
|
137
|
-
return meterType << 16 | scale << 8 | rateType;
|
|
138
|
-
}
|
|
139
|
-
__name(toPropertyKey, "toPropertyKey");
|
|
140
96
|
function splitPropertyKey(key) {
|
|
141
97
|
return {
|
|
142
98
|
rateType: key & 255,
|
|
@@ -341,9 +297,9 @@ let MeterCCAPI = (() => {
|
|
|
341
297
|
async getAll(accumulatedOnly = false) {
|
|
342
298
|
const valueDB = this.tryGetValueDB();
|
|
343
299
|
if (this.version >= 2) {
|
|
344
|
-
const meterType = valueDB?.getValue(MeterCCValues.type.endpoint(this.endpoint.index));
|
|
345
|
-
const supportedScales = valueDB?.getValue(MeterCCValues.supportedScales.endpoint(this.endpoint.index)) ?? [];
|
|
346
|
-
const supportedRateTypes = valueDB?.getValue(MeterCCValues.supportedRateTypes.endpoint(this.endpoint.index)) ?? [];
|
|
300
|
+
const meterType = valueDB?.getValue(import_CCValues_generated.MeterCCValues.type.endpoint(this.endpoint.index));
|
|
301
|
+
const supportedScales = valueDB?.getValue(import_CCValues_generated.MeterCCValues.supportedScales.endpoint(this.endpoint.index)) ?? [];
|
|
302
|
+
const supportedRateTypes = valueDB?.getValue(import_CCValues_generated.MeterCCValues.supportedRateTypes.endpoint(this.endpoint.index)) ?? [];
|
|
347
303
|
const rateTypes = supportedRateTypes.length ? supportedRateTypes : [void 0];
|
|
348
304
|
const ret = [];
|
|
349
305
|
for (const rateType of rateTypes) {
|
|
@@ -428,7 +384,7 @@ let MeterCCAPI = (() => {
|
|
|
428
384
|
return;
|
|
429
385
|
if (typeof propertyKey === "number") {
|
|
430
386
|
const { meterType, rateType, scale } = splitPropertyKey(propertyKey);
|
|
431
|
-
const readingValueId = MeterCCValues.value(meterType, rateType, scale).endpoint(this.endpoint.index);
|
|
387
|
+
const readingValueId = import_CCValues_generated.MeterCCValues.value(meterType, rateType, scale).endpoint(this.endpoint.index);
|
|
432
388
|
return {
|
|
433
389
|
optimisticallyUpdateRelatedValues: /* @__PURE__ */ __name((supervisedAndSuccessful) => {
|
|
434
390
|
if (!supervisedAndSuccessful)
|
|
@@ -453,7 +409,7 @@ let MeterCCAPI = (() => {
|
|
|
453
409
|
const valueDB = this.tryGetValueDB();
|
|
454
410
|
if (!valueDB)
|
|
455
411
|
return;
|
|
456
|
-
const accumulatedValues = valueDB.findValues((vid) => vid.commandClass === this.ccId && vid.endpoint === this.endpoint.index && MeterCCValues.value.is(vid)).filter(({ propertyKey: propertyKey2 }) => {
|
|
412
|
+
const accumulatedValues = valueDB.findValues((vid) => vid.commandClass === this.ccId && vid.endpoint === this.endpoint.index && import_CCValues_generated.MeterCCValues.value.is(vid)).filter(({ propertyKey: propertyKey2 }) => {
|
|
457
413
|
if (typeof propertyKey2 !== "number")
|
|
458
414
|
return false;
|
|
459
415
|
const { meterType, scale } = splitPropertyKey(propertyKey2);
|
|
@@ -479,7 +435,7 @@ let MeterCCAPI = (() => {
|
|
|
479
435
|
return MeterCCAPI2 = _classThis;
|
|
480
436
|
})();
|
|
481
437
|
let MeterCC = (() => {
|
|
482
|
-
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Meter), (0, import_CommandClassDecorators.implementedVersion)(6), (0, import_CommandClassDecorators.ccValues)(MeterCCValues)];
|
|
438
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Meter), (0, import_CommandClassDecorators.implementedVersion)(6), (0, import_CommandClassDecorators.ccValues)(import_CCValues_generated.MeterCCValues)];
|
|
483
439
|
let _classDescriptor;
|
|
484
440
|
let _classExtraInitializers = [];
|
|
485
441
|
let _classThis;
|
|
@@ -555,9 +511,9 @@ supports reset: ${suppResp.supportsReset}`;
|
|
|
555
511
|
});
|
|
556
512
|
await api.get();
|
|
557
513
|
} else {
|
|
558
|
-
const type = this.getValue(ctx, MeterCCValues.type) ?? 0;
|
|
559
|
-
const supportedScales = this.getValue(ctx, MeterCCValues.supportedScales) ?? [];
|
|
560
|
-
const supportedRateTypes = this.getValue(ctx, MeterCCValues.supportedRateTypes) ?? [];
|
|
514
|
+
const type = this.getValue(ctx, import_CCValues_generated.MeterCCValues.type) ?? 0;
|
|
515
|
+
const supportedScales = this.getValue(ctx, import_CCValues_generated.MeterCCValues.supportedScales) ?? [];
|
|
516
|
+
const supportedRateTypes = this.getValue(ctx, import_CCValues_generated.MeterCCValues.supportedRateTypes) ?? [];
|
|
561
517
|
const rateTypes = supportedRateTypes.length ? supportedRateTypes : [void 0];
|
|
562
518
|
for (const rateType of rateTypes) {
|
|
563
519
|
for (const scale of supportedScales) {
|
|
@@ -575,7 +531,7 @@ supports reset: ${suppResp.supportsReset}`;
|
|
|
575
531
|
const valueDB = ctx.tryGetValueDB(this.nodeId);
|
|
576
532
|
if (!valueDB)
|
|
577
533
|
return true;
|
|
578
|
-
const values = this.getDefinedValueIDs(ctx).filter((v) => MeterCCValues.value.is(v));
|
|
534
|
+
const values = this.getDefinedValueIDs(ctx).filter((v) => import_CCValues_generated.MeterCCValues.value.is(v));
|
|
579
535
|
return values.every((v) => {
|
|
580
536
|
const lastUpdated = valueDB.getTimestamp(v);
|
|
581
537
|
return lastUpdated == void 0 || Date.now() - lastUpdated > import_core.timespan.hours(6);
|
|
@@ -586,28 +542,28 @@ supports reset: ${suppResp.supportsReset}`;
|
|
|
586
542
|
* This only works AFTER the interview process
|
|
587
543
|
*/
|
|
588
544
|
static getMeterTypeCached(ctx, endpoint) {
|
|
589
|
-
return ctx.getValueDB(endpoint.nodeId).getValue(MeterCCValues.type.endpoint(endpoint.index));
|
|
545
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(import_CCValues_generated.MeterCCValues.type.endpoint(endpoint.index));
|
|
590
546
|
}
|
|
591
547
|
/**
|
|
592
548
|
* Returns which scales are supported by this meter.
|
|
593
549
|
* This only works AFTER the interview process
|
|
594
550
|
*/
|
|
595
551
|
static getSupportedScalesCached(ctx, endpoint) {
|
|
596
|
-
return ctx.getValueDB(endpoint.nodeId).getValue(MeterCCValues.supportedScales.endpoint(endpoint.index));
|
|
552
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(import_CCValues_generated.MeterCCValues.supportedScales.endpoint(endpoint.index));
|
|
597
553
|
}
|
|
598
554
|
/**
|
|
599
555
|
* Returns whether reset is supported by this meter.
|
|
600
556
|
* This only works AFTER the interview process
|
|
601
557
|
*/
|
|
602
558
|
static supportsResetCached(ctx, endpoint) {
|
|
603
|
-
return ctx.getValueDB(endpoint.nodeId).getValue(MeterCCValues.supportsReset.endpoint(endpoint.index));
|
|
559
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(import_CCValues_generated.MeterCCValues.supportsReset.endpoint(endpoint.index));
|
|
604
560
|
}
|
|
605
561
|
/**
|
|
606
562
|
* Returns which rate types are supported by this meter.
|
|
607
563
|
* This only works AFTER the interview process
|
|
608
564
|
*/
|
|
609
565
|
static getSupportedRateTypesCached(ctx, endpoint) {
|
|
610
|
-
return ctx.getValueDB(endpoint.nodeId).getValue(MeterCCValues.supportedRateTypes.endpoint(endpoint.index));
|
|
566
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(import_CCValues_generated.MeterCCValues.supportedRateTypes.endpoint(endpoint.index));
|
|
611
567
|
}
|
|
612
568
|
translatePropertyKey(ctx, property, propertyKey) {
|
|
613
569
|
if (property === "value" && typeof propertyKey === "number") {
|
|
@@ -710,21 +666,21 @@ let MeterCCReport = (() => {
|
|
|
710
666
|
import_safe.validatePayload.withReason(`Unknown meter type ${(0, import_safe3.num2hex)(this.type)} or corrupted data`)(!!meter);
|
|
711
667
|
import_safe.validatePayload.withReason(`Unknown meter scale ${(0, import_safe3.num2hex)(this.scale)} or corrupted data`)(scale.label !== (0, import_core.getUnknownMeterScale)(this.scale).label);
|
|
712
668
|
if (ccVersion >= 2) {
|
|
713
|
-
const expectedType = this.getValue(ctx, MeterCCValues.type);
|
|
669
|
+
const expectedType = this.getValue(ctx, import_CCValues_generated.MeterCCValues.type);
|
|
714
670
|
if (expectedType != void 0) {
|
|
715
671
|
import_safe.validatePayload.withReason("Unexpected meter type or corrupted data")(this.type === expectedType);
|
|
716
672
|
}
|
|
717
|
-
const supportedScales = this.getValue(ctx, MeterCCValues.supportedScales);
|
|
673
|
+
const supportedScales = this.getValue(ctx, import_CCValues_generated.MeterCCValues.supportedScales);
|
|
718
674
|
if (supportedScales?.length) {
|
|
719
675
|
import_safe.validatePayload.withReason(`Unsupported meter scale ${scale.label} or corrupted data`)(supportedScales.includes(this.scale));
|
|
720
676
|
}
|
|
721
|
-
const supportedRateTypes = this.getValue(ctx, MeterCCValues.supportedRateTypes);
|
|
677
|
+
const supportedRateTypes = this.getValue(ctx, import_CCValues_generated.MeterCCValues.supportedRateTypes);
|
|
722
678
|
if (supportedRateTypes?.length) {
|
|
723
679
|
import_safe.validatePayload.withReason(`Unsupported rate type ${(0, import_safe3.getEnumMemberName)(import_Types.RateType, this.rateType)} or corrupted data`)(supportedRateTypes.includes(this.rateType));
|
|
724
680
|
}
|
|
725
681
|
}
|
|
726
682
|
}
|
|
727
|
-
const valueValue = MeterCCValues.value(this.type, this.rateType, this.scale);
|
|
683
|
+
const valueValue = import_CCValues_generated.MeterCCValues.value(this.type, this.rateType, this.scale);
|
|
728
684
|
this.setMetadata(ctx, valueValue, {
|
|
729
685
|
...valueValue.meta,
|
|
730
686
|
label: getValueLabel(this.type, this.scale, this.rateType),
|
|
@@ -881,7 +837,7 @@ let MeterCCGet = (() => {
|
|
|
881
837
|
}
|
|
882
838
|
if (this.scale != void 0) {
|
|
883
839
|
if (ctx) {
|
|
884
|
-
const type = this.getValue(ctx, MeterCCValues.type);
|
|
840
|
+
const type = this.getValue(ctx, import_CCValues_generated.MeterCCValues.type);
|
|
885
841
|
if (type != void 0) {
|
|
886
842
|
message.scale = ((0, import_core.getMeterScale)(type, this.scale) ?? (0, import_core.getUnknownMeterScale)(this.scale)).label;
|
|
887
843
|
}
|
|
@@ -898,7 +854,7 @@ let MeterCCGet = (() => {
|
|
|
898
854
|
return MeterCCGet2 = _classThis;
|
|
899
855
|
})();
|
|
900
856
|
let MeterCCSupportedReport = (() => {
|
|
901
|
-
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.MeterCommand.SupportedReport), (0, import_CommandClassDecorators.ccValueProperty)("type", MeterCCValues.type), (0, import_CommandClassDecorators.ccValueProperty)("supportsReset", MeterCCValues.supportsReset), (0, import_CommandClassDecorators.ccValueProperty)("supportedScales", MeterCCValues.supportedScales), (0, import_CommandClassDecorators.ccValueProperty)("supportedRateTypes", MeterCCValues.supportedRateTypes)];
|
|
857
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.MeterCommand.SupportedReport), (0, import_CommandClassDecorators.ccValueProperty)("type", import_CCValues_generated.MeterCCValues.type), (0, import_CommandClassDecorators.ccValueProperty)("supportsReset", import_CCValues_generated.MeterCCValues.supportsReset), (0, import_CommandClassDecorators.ccValueProperty)("supportedScales", import_CCValues_generated.MeterCCValues.supportedScales), (0, import_CommandClassDecorators.ccValueProperty)("supportedRateTypes", import_CCValues_generated.MeterCCValues.supportedRateTypes)];
|
|
902
858
|
let _classDescriptor;
|
|
903
859
|
let _classExtraInitializers = [];
|
|
904
860
|
let _classThis;
|
|
@@ -961,13 +917,13 @@ let MeterCCSupportedReport = (() => {
|
|
|
961
917
|
return true;
|
|
962
918
|
const ccVersion = (0, import_CommandClass.getEffectiveCCVersion)(ctx, this);
|
|
963
919
|
if (ccVersion < 6) {
|
|
964
|
-
this.ensureMetadata(ctx, MeterCCValues.resetAll);
|
|
920
|
+
this.ensureMetadata(ctx, import_CCValues_generated.MeterCCValues.resetAll);
|
|
965
921
|
} else {
|
|
966
922
|
for (const scale of this.supportedScales) {
|
|
967
923
|
if (!isAccumulatedValue(this.type, scale))
|
|
968
924
|
continue;
|
|
969
925
|
for (const rateType of this.supportedRateTypes) {
|
|
970
|
-
const resetSingleValue = MeterCCValues.resetSingle(this.type, rateType, scale);
|
|
926
|
+
const resetSingleValue = import_CCValues_generated.MeterCCValues.resetSingle(this.type, rateType, scale);
|
|
971
927
|
this.ensureMetadata(ctx, resetSingleValue, {
|
|
972
928
|
...resetSingleValue.meta,
|
|
973
929
|
label: `Reset ${getValueLabel(this.type, scale, rateType)}`
|