@zwave-js/cc 15.21.1 → 15.22.0
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 +2 -2
- package/build/cjs/cc/AlarmSensorCC.js +18 -57
- package/build/cjs/cc/AlarmSensorCC.js.map +2 -2
- package/build/cjs/cc/ApplicationStatusCC.js +9 -48
- package/build/cjs/cc/ApplicationStatusCC.js.map +1 -1
- package/build/cjs/cc/AssociationCC.d.ts +2 -2
- package/build/cjs/cc/AssociationCC.js +32 -71
- package/build/cjs/cc/AssociationCC.js.map +2 -2
- package/build/cjs/cc/AssociationGroupInfoCC.d.ts +2 -2
- package/build/cjs/cc/AssociationGroupInfoCC.js +28 -65
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +2 -2
- package/build/cjs/cc/BarrierOperatorCC.d.ts +2 -2
- package/build/cjs/cc/BarrierOperatorCC.js +28 -67
- package/build/cjs/cc/BarrierOperatorCC.js.map +2 -2
- package/build/cjs/cc/BasicCC.d.ts +2 -2
- package/build/cjs/cc/BasicCC.js +15 -54
- package/build/cjs/cc/BasicCC.js.map +2 -2
- package/build/cjs/cc/BasicWindowCoveringCC.js +12 -51
- package/build/cjs/cc/BasicWindowCoveringCC.js.map +1 -1
- package/build/cjs/cc/BatteryCC.d.ts +2 -2
- package/build/cjs/cc/BatteryCC.js +15 -54
- package/build/cjs/cc/BatteryCC.js.map +2 -2
- package/build/cjs/cc/BinarySensorCC.d.ts +2 -2
- package/build/cjs/cc/BinarySensorCC.js +19 -58
- package/build/cjs/cc/BinarySensorCC.js.map +2 -2
- package/build/cjs/cc/BinarySwitchCC.d.ts +2 -2
- package/build/cjs/cc/BinarySwitchCC.js +15 -54
- package/build/cjs/cc/BinarySwitchCC.js.map +2 -2
- package/build/cjs/cc/CRC16CC.js +7 -46
- package/build/cjs/cc/CRC16CC.js.map +1 -1
- package/build/cjs/cc/CentralSceneCC.js +19 -58
- package/build/cjs/cc/CentralSceneCC.js.map +1 -1
- package/build/cjs/cc/ClimateControlScheduleCC.js +25 -64
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/cjs/cc/ClockCC.d.ts +2 -2
- package/build/cjs/cc/ClockCC.js +15 -54
- package/build/cjs/cc/ClockCC.js.map +2 -2
- package/build/cjs/cc/ColorSwitchCC.d.ts +2 -2
- package/build/cjs/cc/ColorSwitchCC.js +26 -65
- package/build/cjs/cc/ColorSwitchCC.js.map +2 -2
- package/build/cjs/cc/ConfigurationCC.d.ts +2 -2
- package/build/cjs/cc/ConfigurationCC.js +43 -82
- package/build/cjs/cc/ConfigurationCC.js.map +2 -2
- package/build/cjs/cc/DeviceResetLocallyCC.js +7 -46
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/cjs/cc/DoorLockCC.d.ts +2 -2
- package/build/cjs/cc/DoorLockCC.js +26 -65
- package/build/cjs/cc/DoorLockCC.js.map +2 -2
- package/build/cjs/cc/DoorLockLoggingCC.d.ts +2 -2
- package/build/cjs/cc/DoorLockLoggingCC.js +17 -56
- package/build/cjs/cc/DoorLockLoggingCC.js.map +2 -2
- package/build/cjs/cc/EnergyProductionCC.d.ts +2 -2
- package/build/cjs/cc/EnergyProductionCC.js +13 -52
- package/build/cjs/cc/EnergyProductionCC.js.map +2 -2
- package/build/cjs/cc/EntryControlCC.d.ts +2 -2
- package/build/cjs/cc/EntryControlCC.js +25 -64
- package/build/cjs/cc/EntryControlCC.js.map +2 -2
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +34 -73
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/cjs/cc/HailCC.js +3 -42
- package/build/cjs/cc/HailCC.js.map +1 -1
- package/build/cjs/cc/HumidityControlModeCC.d.ts +2 -2
- package/build/cjs/cc/HumidityControlModeCC.js +19 -58
- package/build/cjs/cc/HumidityControlModeCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +2 -2
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +11 -50
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlSetpointCC.d.ts +2 -2
- package/build/cjs/cc/HumidityControlSetpointCC.js +30 -69
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +2 -2
- package/build/cjs/cc/InclusionControllerCC.js +9 -48
- package/build/cjs/cc/InclusionControllerCC.js.map +1 -1
- package/build/cjs/cc/IndicatorCC.d.ts +2 -2
- package/build/cjs/cc/IndicatorCC.js +31 -70
- package/build/cjs/cc/IndicatorCC.js.map +2 -2
- package/build/cjs/cc/IrrigationCC.d.ts +2 -2
- package/build/cjs/cc/IrrigationCC.js +54 -93
- package/build/cjs/cc/IrrigationCC.js.map +2 -2
- package/build/cjs/cc/LanguageCC.d.ts +2 -2
- package/build/cjs/cc/LanguageCC.js +15 -54
- package/build/cjs/cc/LanguageCC.js.map +2 -2
- package/build/cjs/cc/LockCC.d.ts +2 -2
- package/build/cjs/cc/LockCC.js +15 -54
- package/build/cjs/cc/LockCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +2 -2
- package/build/cjs/cc/ManufacturerProprietaryCC.js +10 -49
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerSpecificCC.js +16 -55
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/cjs/cc/MeterCC.d.ts +2 -2
- package/build/cjs/cc/MeterCC.js +23 -62
- package/build/cjs/cc/MeterCC.js.map +2 -2
- package/build/cjs/cc/MultiChannelAssociationCC.d.ts +2 -2
- package/build/cjs/cc/MultiChannelAssociationCC.js +26 -65
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +2 -2
- package/build/cjs/cc/MultiChannelCC.js +34 -73
- package/build/cjs/cc/MultiChannelCC.js.map +1 -1
- package/build/cjs/cc/MultiCommandCC.js +9 -48
- package/build/cjs/cc/MultiCommandCC.js.map +1 -1
- package/build/cjs/cc/MultilevelSensorCC.d.ts +2 -2
- package/build/cjs/cc/MultilevelSensorCC.js +23 -62
- package/build/cjs/cc/MultilevelSensorCC.js.map +2 -2
- package/build/cjs/cc/MultilevelSwitchCC.d.ts +2 -2
- package/build/cjs/cc/MultilevelSwitchCC.js +24 -63
- package/build/cjs/cc/MultilevelSwitchCC.js.map +2 -2
- package/build/cjs/cc/NoOperationCC.js +5 -44
- package/build/cjs/cc/NoOperationCC.js.map +1 -1
- package/build/cjs/cc/NodeNamingCC.d.ts +2 -2
- package/build/cjs/cc/NodeNamingCC.js +22 -61
- package/build/cjs/cc/NodeNamingCC.js.map +2 -2
- package/build/cjs/cc/NotificationCC.d.ts +20 -3
- package/build/cjs/cc/NotificationCC.js +141 -104
- package/build/cjs/cc/NotificationCC.js.map +2 -2
- package/build/cjs/cc/PowerlevelCC.js +22 -61
- package/build/cjs/cc/PowerlevelCC.js.map +1 -1
- package/build/cjs/cc/ProtectionCC.d.ts +2 -2
- package/build/cjs/cc/ProtectionCC.js +33 -72
- package/build/cjs/cc/ProtectionCC.js.map +2 -2
- package/build/cjs/cc/SceneActivationCC.js +9 -48
- package/build/cjs/cc/SceneActivationCC.js.map +1 -1
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +14 -53
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +2 -2
- package/build/cjs/cc/SceneControllerConfigurationCC.js +17 -56
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +2 -2
- package/build/cjs/cc/ScheduleEntryLockCC.js +46 -85
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/cjs/cc/Security2CC.js +33 -72
- package/build/cjs/cc/Security2CC.js.map +1 -1
- package/build/cjs/cc/SecurityCC.js +27 -66
- package/build/cjs/cc/SecurityCC.js.map +1 -1
- package/build/cjs/cc/SoundSwitchCC.js +29 -68
- package/build/cjs/cc/SoundSwitchCC.js.map +1 -1
- package/build/cjs/cc/SupervisionCC.js +9 -48
- package/build/cjs/cc/SupervisionCC.js.map +1 -1
- package/build/cjs/cc/ThermostatFanModeCC.d.ts +2 -2
- package/build/cjs/cc/ThermostatFanModeCC.js +19 -58
- package/build/cjs/cc/ThermostatFanModeCC.js.map +2 -2
- package/build/cjs/cc/ThermostatFanStateCC.d.ts +2 -2
- package/build/cjs/cc/ThermostatFanStateCC.js +11 -50
- package/build/cjs/cc/ThermostatFanStateCC.js.map +2 -2
- package/build/cjs/cc/ThermostatModeCC.d.ts +2 -2
- package/build/cjs/cc/ThermostatModeCC.js +19 -58
- package/build/cjs/cc/ThermostatModeCC.js.map +2 -2
- package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +2 -2
- package/build/cjs/cc/ThermostatOperatingStateCC.js +11 -50
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +2 -2
- package/build/cjs/cc/ThermostatSetbackCC.d.ts +2 -2
- package/build/cjs/cc/ThermostatSetbackCC.js +15 -54
- package/build/cjs/cc/ThermostatSetbackCC.js.map +2 -2
- package/build/cjs/cc/ThermostatSetpointCC.d.ts +2 -2
- package/build/cjs/cc/ThermostatSetpointCC.js +25 -64
- package/build/cjs/cc/ThermostatSetpointCC.js.map +2 -2
- package/build/cjs/cc/TimeCC.js +24 -63
- package/build/cjs/cc/TimeCC.js.map +1 -1
- package/build/cjs/cc/TimeParametersCC.js +13 -52
- package/build/cjs/cc/TimeParametersCC.js.map +1 -1
- package/build/cjs/cc/TransportServiceCC.js +13 -52
- package/build/cjs/cc/TransportServiceCC.js.map +1 -1
- package/build/cjs/cc/UserCodeCC.d.ts +6 -4
- package/build/cjs/cc/UserCodeCC.js +89 -98
- package/build/cjs/cc/UserCodeCC.js.map +2 -2
- package/build/cjs/cc/VersionCC.js +25 -64
- package/build/cjs/cc/VersionCC.js.map +1 -1
- package/build/cjs/cc/WakeUpCC.js +21 -60
- package/build/cjs/cc/WakeUpCC.js.map +1 -1
- package/build/cjs/cc/WindowCoveringCC.d.ts +2 -2
- package/build/cjs/cc/WindowCoveringCC.js +26 -65
- package/build/cjs/cc/WindowCoveringCC.js.map +2 -2
- package/build/cjs/cc/ZWaveLongRangeCC.js +3 -42
- package/build/cjs/cc/ZWaveLongRangeCC.js.map +1 -1
- package/build/cjs/cc/ZWavePlusCC.js +11 -50
- package/build/cjs/cc/ZWavePlusCC.js.map +1 -1
- package/build/cjs/cc/ZWaveProtocolCC.js +73 -112
- package/build/cjs/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/cjs/cc/_CCValues.generated.d.ts +131 -7
- package/build/cjs/cc/_CCValues.generated.js +68 -5
- package/build/cjs/cc/_CCValues.generated.js.map +2 -2
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +3 -3
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +22 -59
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +2 -2
- package/build/cjs/lib/CommandClass.d.ts +6 -2
- package/build/cjs/lib/CommandClass.js +1 -1
- package/build/cjs/lib/CommandClass.js.map +2 -2
- package/build/cjs/lib/Security2/Extension.js +9 -48
- package/build/cjs/lib/Security2/Extension.js.map +1 -1
- package/build/cjs/lib/Values.d.ts +1 -1
- package/build/cjs/lib/Values.js.map +1 -1
- package/build/esm/cc/AlarmSensorCC.d.ts +2 -2
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
- package/build/esm/cc/AlarmSensorCC.js +9 -38
- package/build/esm/cc/AlarmSensorCC.js.map +1 -1
- package/build/esm/cc/ApplicationStatusCC.js +1 -34
- package/build/esm/cc/ApplicationStatusCC.js.map +1 -1
- package/build/esm/cc/AssociationCC.d.ts +2 -2
- package/build/esm/cc/AssociationCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationCC.js +3 -36
- package/build/esm/cc/AssociationCC.js.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.d.ts +2 -2
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.js +5 -36
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.d.ts +2 -2
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.js +3 -36
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
- package/build/esm/cc/BasicCC.d.ts +2 -2
- package/build/esm/cc/BasicCC.d.ts.map +1 -1
- package/build/esm/cc/BasicCC.js +3 -36
- package/build/esm/cc/BasicCC.js.map +1 -1
- package/build/esm/cc/BasicWindowCoveringCC.js +1 -34
- package/build/esm/cc/BasicWindowCoveringCC.js.map +1 -1
- package/build/esm/cc/BatteryCC.d.ts +2 -2
- package/build/esm/cc/BatteryCC.d.ts.map +1 -1
- package/build/esm/cc/BatteryCC.js +3 -36
- package/build/esm/cc/BatteryCC.js.map +1 -1
- package/build/esm/cc/BinarySensorCC.d.ts +2 -2
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySensorCC.js +3 -36
- package/build/esm/cc/BinarySensorCC.js.map +1 -1
- package/build/esm/cc/BinarySwitchCC.d.ts +2 -2
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySwitchCC.js +3 -36
- package/build/esm/cc/BinarySwitchCC.js.map +1 -1
- package/build/esm/cc/CRC16CC.js +1 -34
- package/build/esm/cc/CRC16CC.js.map +1 -1
- package/build/esm/cc/CentralSceneCC.js +1 -34
- package/build/esm/cc/CentralSceneCC.js.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.js +1 -34
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/esm/cc/ClockCC.d.ts +2 -2
- package/build/esm/cc/ClockCC.d.ts.map +1 -1
- package/build/esm/cc/ClockCC.js +3 -36
- package/build/esm/cc/ClockCC.js.map +1 -1
- package/build/esm/cc/ColorSwitchCC.d.ts +2 -2
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/ColorSwitchCC.js +3 -36
- package/build/esm/cc/ColorSwitchCC.js.map +1 -1
- package/build/esm/cc/ConfigurationCC.d.ts +2 -2
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/ConfigurationCC.js +3 -36
- package/build/esm/cc/ConfigurationCC.js.map +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.js +1 -34
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/esm/cc/DoorLockCC.d.ts +2 -2
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockCC.js +3 -36
- package/build/esm/cc/DoorLockCC.js.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.d.ts +2 -2
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.js +3 -36
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/esm/cc/EnergyProductionCC.d.ts +2 -2
- package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/esm/cc/EnergyProductionCC.js +3 -36
- package/build/esm/cc/EnergyProductionCC.js.map +1 -1
- package/build/esm/cc/EntryControlCC.d.ts +2 -2
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
- package/build/esm/cc/EntryControlCC.js +3 -36
- package/build/esm/cc/EntryControlCC.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +1 -34
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/esm/cc/HailCC.js +1 -34
- package/build/esm/cc/HailCC.js.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.d.ts +2 -2
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.js +3 -36
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +2 -2
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.js +3 -36
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.d.ts +2 -2
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.js +3 -36
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/esm/cc/InclusionControllerCC.js +1 -34
- package/build/esm/cc/InclusionControllerCC.js.map +1 -1
- package/build/esm/cc/IndicatorCC.d.ts +2 -2
- package/build/esm/cc/IndicatorCC.d.ts.map +1 -1
- package/build/esm/cc/IndicatorCC.js +3 -36
- package/build/esm/cc/IndicatorCC.js.map +1 -1
- package/build/esm/cc/IrrigationCC.d.ts +2 -2
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
- package/build/esm/cc/IrrigationCC.js +3 -36
- package/build/esm/cc/IrrigationCC.js.map +1 -1
- package/build/esm/cc/LanguageCC.d.ts +2 -2
- package/build/esm/cc/LanguageCC.d.ts.map +1 -1
- package/build/esm/cc/LanguageCC.js +3 -36
- package/build/esm/cc/LanguageCC.js.map +1 -1
- package/build/esm/cc/LockCC.d.ts +2 -2
- package/build/esm/cc/LockCC.d.ts.map +1 -1
- package/build/esm/cc/LockCC.js +3 -36
- 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 +3 -36
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.js +1 -34
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/esm/cc/MeterCC.d.ts +2 -2
- package/build/esm/cc/MeterCC.d.ts.map +1 -1
- package/build/esm/cc/MeterCC.js +3 -36
- package/build/esm/cc/MeterCC.js.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.d.ts +2 -2
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.js +4 -37
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/esm/cc/MultiChannelCC.js +1 -34
- package/build/esm/cc/MultiChannelCC.js.map +1 -1
- package/build/esm/cc/MultiCommandCC.js +1 -34
- package/build/esm/cc/MultiCommandCC.js.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.d.ts +2 -2
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.js +3 -36
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.d.ts +2 -2
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.js +3 -36
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/esm/cc/NoOperationCC.js +1 -34
- package/build/esm/cc/NoOperationCC.js.map +1 -1
- package/build/esm/cc/NodeNamingCC.d.ts +2 -2
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/esm/cc/NodeNamingCC.js +3 -36
- package/build/esm/cc/NodeNamingCC.js.map +1 -1
- package/build/esm/cc/NotificationCC.d.ts +20 -3
- package/build/esm/cc/NotificationCC.d.ts.map +1 -1
- package/build/esm/cc/NotificationCC.js +143 -89
- package/build/esm/cc/NotificationCC.js.map +1 -1
- package/build/esm/cc/PowerlevelCC.js +1 -34
- package/build/esm/cc/PowerlevelCC.js.map +1 -1
- package/build/esm/cc/ProtectionCC.d.ts +2 -2
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
- package/build/esm/cc/ProtectionCC.js +3 -36
- package/build/esm/cc/ProtectionCC.js.map +1 -1
- package/build/esm/cc/SceneActivationCC.js +1 -34
- package/build/esm/cc/SceneActivationCC.js.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.js +1 -34
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts +2 -2
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.js +3 -36
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.js +1 -34
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/esm/cc/Security2CC.js +1 -34
- package/build/esm/cc/Security2CC.js.map +1 -1
- package/build/esm/cc/SecurityCC.js +1 -34
- package/build/esm/cc/SecurityCC.js.map +1 -1
- package/build/esm/cc/SoundSwitchCC.js +1 -34
- package/build/esm/cc/SoundSwitchCC.js.map +1 -1
- package/build/esm/cc/SupervisionCC.js +1 -34
- package/build/esm/cc/SupervisionCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.d.ts +2 -2
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.js +3 -36
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.d.ts +2 -2
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.js +3 -36
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatModeCC.d.ts +2 -2
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatModeCC.js +3 -36
- package/build/esm/cc/ThermostatModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts +2 -2
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.js +3 -36
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetbackCC.d.ts +2 -2
- package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetbackCC.js +3 -36
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.d.ts +2 -2
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.js +3 -36
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/esm/cc/TimeCC.js +1 -34
- package/build/esm/cc/TimeCC.js.map +1 -1
- package/build/esm/cc/TimeParametersCC.js +1 -34
- package/build/esm/cc/TimeParametersCC.js.map +1 -1
- package/build/esm/cc/TransportServiceCC.js +1 -34
- package/build/esm/cc/TransportServiceCC.js.map +1 -1
- package/build/esm/cc/UserCodeCC.d.ts +6 -4
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
- package/build/esm/cc/UserCodeCC.js +55 -48
- package/build/esm/cc/UserCodeCC.js.map +1 -1
- package/build/esm/cc/VersionCC.js +1 -34
- package/build/esm/cc/VersionCC.js.map +1 -1
- package/build/esm/cc/WakeUpCC.js +1 -34
- package/build/esm/cc/WakeUpCC.js.map +1 -1
- package/build/esm/cc/WindowCoveringCC.d.ts +2 -2
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
- package/build/esm/cc/WindowCoveringCC.js +3 -36
- package/build/esm/cc/WindowCoveringCC.js.map +1 -1
- package/build/esm/cc/ZWaveLongRangeCC.js +1 -34
- package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -1
- package/build/esm/cc/ZWavePlusCC.js +1 -34
- package/build/esm/cc/ZWavePlusCC.js.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.js +1 -34
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/esm/cc/_CCValues.generated.d.ts +131 -7
- package/build/esm/cc/_CCValues.generated.d.ts.map +1 -1
- package/build/esm/cc/_CCValues.generated.js +71 -4
- package/build/esm/cc/_CCValues.generated.js.map +1 -1
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +3 -3
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -1
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +7 -38
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/esm/lib/CommandClass.d.ts +6 -2
- package/build/esm/lib/CommandClass.d.ts.map +1 -1
- package/build/esm/lib/CommandClass.js +1 -1
- package/build/esm/lib/CommandClass.js.map +1 -1
- package/build/esm/lib/Security2/Extension.js +1 -34
- package/build/esm/lib/Security2/Extension.js.map +1 -1
- package/build/esm/lib/Values.d.ts +1 -1
- package/build/esm/lib/Values.d.ts.map +1 -1
- package/package.json +9 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src_gen/cc/DoorLockLoggingCC.ts"],
|
|
4
|
-
"sourcesContent": ["import * as __validateArgs from \"./DoorLockLoggingCC._validateArgs.js\";\nconst { validateArgs_DoorLockLoggingCCAPI_getRecord } = __validateArgs;\nimport { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, type MessageRecord, type WithAddress, ZWaveError, ZWaveErrorCodes, validatePayload, } from \"@zwave-js/core\";\nimport { Bytes, isPrintableASCII, num2hex } from \"@zwave-js/shared\";\nimport { CCAPI, PhysicalCCAPI } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type RefreshValuesContext, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValueProperty, ccValues, commandClass, expectedCCResponse, implementedVersion, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { DoorLockLoggingCommand, DoorLockLoggingEventType, type DoorLockLoggingRecord, DoorLockLoggingRecordStatus, } from \"../lib/_Types.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { userCodeToLogString } from \"./UserCodeCC.js\";\ninterface DateSegments {\n year: number;\n month: number;\n day: number;\n hour: number;\n minute: number;\n second: number;\n}\nfunction segmentsToDate(segments: DateSegments): Date {\n return new Date(segments.year, segments.month - 1, // JS months are 0-based.\n segments.day, segments.hour, segments.minute, segments.second);\n}\nconst eventTypeLabel = {\n LockCode: \"Locked via Access Code\",\n UnlockCode: \"Unlocked via Access Code\",\n LockButton: \"Locked via Lock Button\",\n UnlockButton: \"Unlocked via Unlock Button\",\n LockCodeOutOfSchedule: \"Out of Schedule Lock Attempt via Access Code\",\n UnlockCodeOutOfSchedule: \"Out of Schedule Unlock Attempt via Access Code\",\n IllegalCode: \"Illegal Access Code Entered\",\n LockManual: \"Manually Locked\",\n UnlockManual: \"Manually Unlocked\",\n LockAuto: \"Auto Locked\",\n UnlockAuto: \"Auto Unlocked\",\n LockRemoteCode: \"Locked via Remote Access Code\",\n UnlockRemoteCode: \"Unlocked via Remote Access Code\",\n LockRemote: \"Locked via Remote\",\n UnlockRemote: \"Unlocked via Remote\",\n LockRemoteCodeOutOfSchedule: \"Out of Schedule Lock Attempt via Remote Access Code\",\n UnlockRemoteCodeOutOfSchedule: \"Out of Schedule Unlock Attempt via Remote Access Code\",\n RemoteIllegalCode: \"Illegal Remote Access Code\",\n LockManual2: \"Manually Locked (2)\",\n UnlockManual2: \"Manually Unlocked (2)\",\n LockSecured: \"Lock Secured\",\n LockUnsecured: \"Lock Unsecured\",\n UserCodeAdded: \"User Code Added\",\n UserCodeDeleted: \"User Code Deleted\",\n AllUserCodesDeleted: \"All User Codes Deleted\",\n AdminCodeChanged: \"Admin Code Changed\",\n UserCodeChanged: \"User Code Changed\",\n LockReset: \"Lock Reset\",\n ConfigurationChanged: \"Configuration Changed\",\n LowBattery: \"Low Battery\",\n NewBattery: \"New Battery Installed\",\n Unknown: \"Unknown\",\n} as const;\nconst LATEST_RECORD_NUMBER_KEY = 0;\nimport { DoorLockLoggingCCValues } from \"./_CCValues.generated.js\";\nexport { DoorLockLoggingCCValues };\n@API(CommandClasses[\"Door Lock Logging\"])\nexport class DoorLockLoggingCCAPI extends PhysicalCCAPI {\n public supportsCommand(cmd: DoorLockLoggingCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case DoorLockLoggingCommand.RecordsSupportedGet:\n case DoorLockLoggingCommand.RecordsSupportedReport:\n case DoorLockLoggingCommand.RecordGet:\n case DoorLockLoggingCommand.RecordReport:\n return true;\n }\n return super.supportsCommand(cmd);\n }\n public async getRecordsCount(): Promise<MaybeNotKnown<number>> {\n this.assertSupportsCommand(DoorLockLoggingCommand, DoorLockLoggingCommand.RecordsSupportedGet);\n const cc = new DoorLockLoggingCCRecordsSupportedGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n });\n const response = await this.host.sendCommand<DoorLockLoggingCCRecordsSupportedReport>(cc, this.commandOptions);\n return response?.recordsCount;\n }\n /** Retrieves the specified audit record. Defaults to the latest one. */\n @validateArgs_DoorLockLoggingCCAPI_getRecord()\n public async getRecord(recordNumber: number = LATEST_RECORD_NUMBER_KEY): Promise<MaybeNotKnown<DoorLockLoggingRecord>> {\n this.assertSupportsCommand(DoorLockLoggingCommand, DoorLockLoggingCommand.RecordGet);\n const cc = new DoorLockLoggingCCRecordGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n recordNumber,\n });\n const response = await this.host.sendCommand<DoorLockLoggingCCRecordReport>(cc, this.commandOptions);\n return response?.record;\n }\n}\n@commandClass(CommandClasses[\"Door Lock Logging\"])\n@implementedVersion(1)\n@ccValues(DoorLockLoggingCCValues)\nexport class DoorLockLoggingCC extends CommandClass {\n declare ccCommand: DoorLockLoggingCommand;\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n await this.refreshValues(ctx);\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n public async refreshValues(ctx: RefreshValuesContext): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Door Lock Logging\"], ctx, endpoint).withOptions({\n priority: MessagePriority.NodeQuery,\n });\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"querying supported number of records...\",\n direction: \"outbound\",\n });\n const recordsCount = await api.getRecordsCount();\n if (!recordsCount) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"Door Lock Logging records count query timed out, skipping interview...\",\n level: \"warn\",\n });\n return;\n }\n const recordsCountLogMessage = `supports ${recordsCount} record${recordsCount === 1 ? \"\" : \"s\"}`;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: recordsCountLogMessage,\n direction: \"inbound\",\n });\n }\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordsSupportedReportOptions {\n recordsCount: number;\n}\n@CCCommand(DoorLockLoggingCommand.RecordsSupportedReport)\n@ccValueProperty(\"recordsCount\", DoorLockLoggingCCValues.recordsCount)\nexport class DoorLockLoggingCCRecordsSupportedReport extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordsSupportedReportOptions>) {\n super(options);\n // TODO: Check implementation:\n this.recordsCount = options.recordsCount;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): DoorLockLoggingCCRecordsSupportedReport {\n validatePayload(raw.payload.length >= 1);\n const recordsCount = raw.payload[0];\n return new this({\n nodeId: ctx.sourceNodeId,\n recordsCount,\n });\n }\n public readonly recordsCount: number;\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"supported no. of records\": this.recordsCount,\n },\n };\n }\n}\nfunction eventTypeToLabel(eventType: DoorLockLoggingEventType): string {\n return ((eventTypeLabel as any)[DoorLockLoggingEventType[eventType]]\n ?? `Unknown ${num2hex(eventType)}`);\n}\n@CCCommand(DoorLockLoggingCommand.RecordsSupportedGet)\n@expectedCCResponse(DoorLockLoggingCCRecordsSupportedReport)\nexport class DoorLockLoggingCCRecordsSupportedGet extends DoorLockLoggingCC {\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordReportOptions {\n recordNumber: number;\n record?: DoorLockLoggingRecord;\n}\n@CCCommand(DoorLockLoggingCommand.RecordReport)\nexport class DoorLockLoggingCCRecordReport extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordReportOptions>) {\n super(options);\n // TODO: Check implementation:\n this.recordNumber = options.recordNumber;\n this.record = options.record;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): DoorLockLoggingCCRecordReport {\n validatePayload(raw.payload.length >= 11);\n const recordNumber = raw.payload[0];\n const recordStatus = raw.payload[5] >>> 5;\n let record: DoorLockLoggingRecord | undefined;\n if (recordStatus !== DoorLockLoggingRecordStatus.Empty) {\n const dateSegments = {\n year: raw.payload.readUInt16BE(1),\n month: raw.payload[3],\n day: raw.payload[4],\n hour: raw.payload[5] & 0b11111,\n minute: raw.payload[6],\n second: raw.payload[7],\n };\n const eventType = raw.payload[8];\n const recordUserID = raw.payload[9];\n const userCodeLength = raw.payload[10];\n validatePayload(userCodeLength <= 10, raw.payload.length >= 11 + userCodeLength);\n const userCodeBuffer = raw.payload.subarray(11, 11 + userCodeLength);\n // See User Code CC for a detailed description. We try to parse the code as ASCII if possible\n // and fall back to a buffer otherwise.\n const userCodeString = userCodeBuffer.toString(\"utf8\");\n const userCode = isPrintableASCII(userCodeString)\n ? userCodeString\n : userCodeBuffer;\n record = {\n eventType: eventType,\n label: eventTypeToLabel(eventType),\n timestamp: segmentsToDate(dateSegments).toISOString(),\n userId: recordUserID,\n userCode,\n };\n }\n return new this({\n nodeId: ctx.sourceNodeId,\n recordNumber,\n record,\n });\n }\n public readonly recordNumber: number;\n public readonly record?: DoorLockLoggingRecord;\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (!this.record) {\n message = {\n \"record #\": `${this.recordNumber} (empty)`,\n };\n }\n else {\n message = {\n \"record #\": `${this.recordNumber}`,\n \"event type\": this.record.label,\n timestamp: this.record.timestamp,\n };\n if (this.record.userId) {\n message[\"user ID\"] = this.record.userId;\n }\n if (this.record.userCode) {\n message[\"user code\"] = userCodeToLogString(this.record.userCode);\n }\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordGetOptions {\n recordNumber: number;\n}\nfunction testResponseForDoorLockLoggingRecordGet(sent: DoorLockLoggingCCRecordGet, received: DoorLockLoggingCCRecordReport) {\n return (sent.recordNumber === LATEST_RECORD_NUMBER_KEY\n || sent.recordNumber === received.recordNumber);\n}\n@CCCommand(DoorLockLoggingCommand.RecordGet)\n@expectedCCResponse(DoorLockLoggingCCRecordReport, testResponseForDoorLockLoggingRecordGet)\nexport class DoorLockLoggingCCRecordGet extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordGetOptions>) {\n super(options);\n this.recordNumber = options.recordNumber;\n }\n public static from(_raw: CCRaw, _ctx: CCParsingContext): DoorLockLoggingCCRecordGet {\n throw new ZWaveError(`${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented);\n // return new DoorLockLoggingCCRecordGet({\n // \tnodeId: ctx.sourceNodeId,\n // });\n }\n public recordNumber: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.recordNumber]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: { \"record number\": this.recordNumber },\n };\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import * as __validateArgs from \"./DoorLockLoggingCC._validateArgs.js\";\nconst { validateArgs_DoorLockLoggingCCAPI_getRecord } = __validateArgs;\nimport { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, type MessageRecord, type WithAddress, ZWaveError, ZWaveErrorCodes, validatePayload, } from \"@zwave-js/core\";\nimport { Bytes, isPrintableASCII, num2hex } from \"@zwave-js/shared\";\nimport { CCAPI, PhysicalCCAPI } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type RefreshValuesContext, type RefreshValuesOptions, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValueProperty, ccValues, commandClass, expectedCCResponse, implementedVersion, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { DoorLockLoggingCommand, DoorLockLoggingEventType, type DoorLockLoggingRecord, DoorLockLoggingRecordStatus, } from \"../lib/_Types.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { userCodeToLogString } from \"./UserCodeCC.js\";\ninterface DateSegments {\n year: number;\n month: number;\n day: number;\n hour: number;\n minute: number;\n second: number;\n}\nfunction segmentsToDate(segments: DateSegments): Date {\n return new Date(segments.year, segments.month - 1, // JS months are 0-based.\n segments.day, segments.hour, segments.minute, segments.second);\n}\nconst eventTypeLabel = {\n LockCode: \"Locked via Access Code\",\n UnlockCode: \"Unlocked via Access Code\",\n LockButton: \"Locked via Lock Button\",\n UnlockButton: \"Unlocked via Unlock Button\",\n LockCodeOutOfSchedule: \"Out of Schedule Lock Attempt via Access Code\",\n UnlockCodeOutOfSchedule: \"Out of Schedule Unlock Attempt via Access Code\",\n IllegalCode: \"Illegal Access Code Entered\",\n LockManual: \"Manually Locked\",\n UnlockManual: \"Manually Unlocked\",\n LockAuto: \"Auto Locked\",\n UnlockAuto: \"Auto Unlocked\",\n LockRemoteCode: \"Locked via Remote Access Code\",\n UnlockRemoteCode: \"Unlocked via Remote Access Code\",\n LockRemote: \"Locked via Remote\",\n UnlockRemote: \"Unlocked via Remote\",\n LockRemoteCodeOutOfSchedule: \"Out of Schedule Lock Attempt via Remote Access Code\",\n UnlockRemoteCodeOutOfSchedule: \"Out of Schedule Unlock Attempt via Remote Access Code\",\n RemoteIllegalCode: \"Illegal Remote Access Code\",\n LockManual2: \"Manually Locked (2)\",\n UnlockManual2: \"Manually Unlocked (2)\",\n LockSecured: \"Lock Secured\",\n LockUnsecured: \"Lock Unsecured\",\n UserCodeAdded: \"User Code Added\",\n UserCodeDeleted: \"User Code Deleted\",\n AllUserCodesDeleted: \"All User Codes Deleted\",\n AdminCodeChanged: \"Admin Code Changed\",\n UserCodeChanged: \"User Code Changed\",\n LockReset: \"Lock Reset\",\n ConfigurationChanged: \"Configuration Changed\",\n LowBattery: \"Low Battery\",\n NewBattery: \"New Battery Installed\",\n Unknown: \"Unknown\",\n} as const;\nconst LATEST_RECORD_NUMBER_KEY = 0;\nimport { DoorLockLoggingCCValues } from \"./_CCValues.generated.js\";\nexport { DoorLockLoggingCCValues };\n@API(CommandClasses[\"Door Lock Logging\"])\nexport class DoorLockLoggingCCAPI extends PhysicalCCAPI {\n public supportsCommand(cmd: DoorLockLoggingCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case DoorLockLoggingCommand.RecordsSupportedGet:\n case DoorLockLoggingCommand.RecordsSupportedReport:\n case DoorLockLoggingCommand.RecordGet:\n case DoorLockLoggingCommand.RecordReport:\n return true;\n }\n return super.supportsCommand(cmd);\n }\n public async getRecordsCount(): Promise<MaybeNotKnown<number>> {\n this.assertSupportsCommand(DoorLockLoggingCommand, DoorLockLoggingCommand.RecordsSupportedGet);\n const cc = new DoorLockLoggingCCRecordsSupportedGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n });\n const response = await this.host.sendCommand<DoorLockLoggingCCRecordsSupportedReport>(cc, this.commandOptions);\n return response?.recordsCount;\n }\n /** Retrieves the specified audit record. Defaults to the latest one. */\n @validateArgs_DoorLockLoggingCCAPI_getRecord()\n public async getRecord(recordNumber: number = LATEST_RECORD_NUMBER_KEY): Promise<MaybeNotKnown<DoorLockLoggingRecord>> {\n this.assertSupportsCommand(DoorLockLoggingCommand, DoorLockLoggingCommand.RecordGet);\n const cc = new DoorLockLoggingCCRecordGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n recordNumber,\n });\n const response = await this.host.sendCommand<DoorLockLoggingCCRecordReport>(cc, this.commandOptions);\n return response?.record;\n }\n}\n@commandClass(CommandClasses[\"Door Lock Logging\"])\n@implementedVersion(1)\n@ccValues(DoorLockLoggingCCValues)\nexport class DoorLockLoggingCC extends CommandClass {\n declare ccCommand: DoorLockLoggingCommand;\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n await this.refreshValues(ctx);\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n public async refreshValues(ctx: RefreshValuesContext, options?: RefreshValuesOptions): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Door Lock Logging\"], ctx, endpoint).withOptions({\n priority: options?.priority ?? MessagePriority.NodeQuery,\n });\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"querying supported number of records...\",\n direction: \"outbound\",\n });\n const recordsCount = await api.getRecordsCount();\n if (!recordsCount) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: \"Door Lock Logging records count query timed out, skipping interview...\",\n level: \"warn\",\n });\n return;\n }\n const recordsCountLogMessage = `supports ${recordsCount} record${recordsCount === 1 ? \"\" : \"s\"}`;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: recordsCountLogMessage,\n direction: \"inbound\",\n });\n }\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordsSupportedReportOptions {\n recordsCount: number;\n}\n@CCCommand(DoorLockLoggingCommand.RecordsSupportedReport)\n@ccValueProperty(\"recordsCount\", DoorLockLoggingCCValues.recordsCount)\nexport class DoorLockLoggingCCRecordsSupportedReport extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordsSupportedReportOptions>) {\n super(options);\n // TODO: Check implementation:\n this.recordsCount = options.recordsCount;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): DoorLockLoggingCCRecordsSupportedReport {\n validatePayload(raw.payload.length >= 1);\n const recordsCount = raw.payload[0];\n return new this({\n nodeId: ctx.sourceNodeId,\n recordsCount,\n });\n }\n public readonly recordsCount: number;\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"supported no. of records\": this.recordsCount,\n },\n };\n }\n}\nfunction eventTypeToLabel(eventType: DoorLockLoggingEventType): string {\n return ((eventTypeLabel as any)[DoorLockLoggingEventType[eventType]]\n ?? `Unknown ${num2hex(eventType)}`);\n}\n@CCCommand(DoorLockLoggingCommand.RecordsSupportedGet)\n@expectedCCResponse(DoorLockLoggingCCRecordsSupportedReport)\nexport class DoorLockLoggingCCRecordsSupportedGet extends DoorLockLoggingCC {\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordReportOptions {\n recordNumber: number;\n record?: DoorLockLoggingRecord;\n}\n@CCCommand(DoorLockLoggingCommand.RecordReport)\nexport class DoorLockLoggingCCRecordReport extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordReportOptions>) {\n super(options);\n // TODO: Check implementation:\n this.recordNumber = options.recordNumber;\n this.record = options.record;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): DoorLockLoggingCCRecordReport {\n validatePayload(raw.payload.length >= 11);\n const recordNumber = raw.payload[0];\n const recordStatus = raw.payload[5] >>> 5;\n let record: DoorLockLoggingRecord | undefined;\n if (recordStatus !== DoorLockLoggingRecordStatus.Empty) {\n const dateSegments = {\n year: raw.payload.readUInt16BE(1),\n month: raw.payload[3],\n day: raw.payload[4],\n hour: raw.payload[5] & 0b11111,\n minute: raw.payload[6],\n second: raw.payload[7],\n };\n const eventType = raw.payload[8];\n const recordUserID = raw.payload[9];\n const userCodeLength = raw.payload[10];\n validatePayload(userCodeLength <= 10, raw.payload.length >= 11 + userCodeLength);\n const userCodeBuffer = raw.payload.subarray(11, 11 + userCodeLength);\n // See User Code CC for a detailed description. We try to parse the code as ASCII if possible\n // and fall back to a buffer otherwise.\n const userCodeString = userCodeBuffer.toString(\"utf8\");\n const userCode = isPrintableASCII(userCodeString)\n ? userCodeString\n : userCodeBuffer;\n record = {\n eventType: eventType,\n label: eventTypeToLabel(eventType),\n timestamp: segmentsToDate(dateSegments).toISOString(),\n userId: recordUserID,\n userCode,\n };\n }\n return new this({\n nodeId: ctx.sourceNodeId,\n recordNumber,\n record,\n });\n }\n public readonly recordNumber: number;\n public readonly record?: DoorLockLoggingRecord;\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n let message: MessageRecord;\n if (!this.record) {\n message = {\n \"record #\": `${this.recordNumber} (empty)`,\n };\n }\n else {\n message = {\n \"record #\": `${this.recordNumber}`,\n \"event type\": this.record.label,\n timestamp: this.record.timestamp,\n };\n if (this.record.userId) {\n message[\"user ID\"] = this.record.userId;\n }\n if (this.record.userCode) {\n message[\"user code\"] = userCodeToLogString(this.record.userCode);\n }\n }\n return {\n ...super.toLogEntry(ctx),\n message,\n };\n }\n}\n// @publicAPI\nexport interface DoorLockLoggingCCRecordGetOptions {\n recordNumber: number;\n}\nfunction testResponseForDoorLockLoggingRecordGet(sent: DoorLockLoggingCCRecordGet, received: DoorLockLoggingCCRecordReport) {\n return (sent.recordNumber === LATEST_RECORD_NUMBER_KEY\n || sent.recordNumber === received.recordNumber);\n}\n@CCCommand(DoorLockLoggingCommand.RecordGet)\n@expectedCCResponse(DoorLockLoggingCCRecordReport, testResponseForDoorLockLoggingRecordGet)\nexport class DoorLockLoggingCCRecordGet extends DoorLockLoggingCC {\n public constructor(options: WithAddress<DoorLockLoggingCCRecordGetOptions>) {\n super(options);\n this.recordNumber = options.recordNumber;\n }\n public static from(_raw: CCRaw, _ctx: CCParsingContext): DoorLockLoggingCCRecordGet {\n throw new ZWaveError(`${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented);\n // return new DoorLockLoggingCCRecordGet({\n // \tnodeId: ctx.sourceNodeId,\n // });\n }\n public recordNumber: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.recordNumber]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: { \"record number\": this.recordNumber },\n };\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAgC;AAEhC,kBAAoM;AACpM,oBAAiD;AACjD,iBAAqC;AACrC,0BAAuH;AACvH,oCAAiH;AAEjH,mBAA2H;AAE3H,wBAAoC;AAgDpC,gCAAwC;AAzDxC,MAAM,EAAE,4CAA2C,IAAK;AAkBxD,SAAS,eAAe,UAAsB;AAC1C,SAAO,IAAI;IAAK,SAAS;IAAM,SAAS,QAAQ;;IAChD,SAAS;IAAK,SAAS;IAAM,SAAS;IAAQ,SAAS;EAAM;AACjE;AAHS;AAIT,MAAM,iBAAiB;EACnB,UAAU;EACV,YAAY;EACZ,YAAY;EACZ,cAAc;EACd,uBAAuB;EACvB,yBAAyB;EACzB,aAAa;EACb,YAAY;EACZ,cAAc;EACd,UAAU;EACV,YAAY;EACZ,gBAAgB;EAChB,kBAAkB;EAClB,YAAY;EACZ,cAAc;EACd,6BAA6B;EAC7B,+BAA+B;EAC/B,mBAAmB;EACnB,aAAa;EACb,eAAe;EACf,aAAa;EACb,eAAe;EACf,eAAe;EACf,iBAAiB;EACjB,qBAAqB;EACrB,kBAAkB;EAClB,iBAAiB;EACjB,WAAW;EACX,sBAAsB;EACtB,YAAY;EACZ,YAAY;EACZ,SAAS;;AAEb,MAAM,2B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U;AACtB,kBAAQ,WAAW,QAAI,uCAAoB,KAAK,OAAO,QAAQ;QACnE;MACJ;AACA,aAAO;QACH,GAAG,MAAM,WAAW,GAAG;QACvB;;IAER;;;;AAMJ,SAAS,wCAAwC,MAAkC,UAAuC;AACtH,SAAQ,KAAK,iBAAiB,4BACvB,KAAK,iBAAiB,SAAS;AAC1C;AAHS;IAMI,8BAA0B,MAAA;8BAFtC,yCAAU,oCAAuB,SAAS,OAC1C,kDAAmB,+BAA+B,uCAAuC,CAAC;;;;oBAC3C;kDAAA,YAAiB;WAAA;;;;;;;;AAAjE,qCAAA,MAAA,mBAAA,EAAA,OAAA,WAAA,GAAA,kBAAA,EAAA,MAAA,SAAA,MAAA,WAAA,MAAA,UAAA,UAAA,GAAA,MAAA,uBAAA;;;AAAa,0CAAA,YAAA,uBAAA;;IACT,YAAmB,SAAuD;AACtE,YAAM,OAAO;AACb,WAAK,eAAe,QAAQ;IAChC;IACO,OAAO,KAAK,MAAa,MAAsB;AAClD,YAAM,IAAI,uBAAW,GAAG,KAAK,IAAI,qCAAqC,4BAAgB,8BAA8B;IAIxH;IACO;IACA,UAAU,KAAsB;AACnC,WAAK,UAAU,oBAAM,KAAK,CAAC,KAAK,YAAY,CAAC;AAC7C,aAAO,MAAM,UAAU,GAAG;IAC9B;IACO,WAAW,KAAgB;AAC9B,aAAO;QACH,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS,EAAE,iBAAiB,KAAK,aAAY;;IAErD;;;;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, type WithAddress } from "@zwave-js/core";
|
|
2
2
|
import { Bytes } from "@zwave-js/shared";
|
|
3
3
|
import { CCAPI, POLL_VALUE, type PollValueImplementation } from "../lib/API.js";
|
|
4
|
-
import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext } from "../lib/CommandClass.js";
|
|
4
|
+
import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext, type RefreshValuesOptions } from "../lib/CommandClass.js";
|
|
5
5
|
import { EnergyProductionCommand, EnergyProductionParameter, type EnergyProductionScale } from "../lib/_Types.js";
|
|
6
6
|
import type { CCEncodingContext, CCParsingContext } from "../lib/traits.js";
|
|
7
7
|
import { EnergyProductionCCValues } from "./_CCValues.generated.js";
|
|
@@ -17,7 +17,7 @@ export declare class EnergyProductionCCAPI extends CCAPI {
|
|
|
17
17
|
export declare class EnergyProductionCC extends CommandClass {
|
|
18
18
|
ccCommand: EnergyProductionCommand;
|
|
19
19
|
interview(ctx: InterviewContext): Promise<void>;
|
|
20
|
-
refreshValues(ctx: RefreshValuesContext): Promise<void>;
|
|
20
|
+
refreshValues(ctx: RefreshValuesContext, options?: RefreshValuesOptions): Promise<void>;
|
|
21
21
|
}
|
|
22
22
|
export interface EnergyProductionCCReportOptions {
|
|
23
23
|
parameter: EnergyProductionParameter;
|
|
@@ -36,6 +36,7 @@ __export(EnergyProductionCC_exports, {
|
|
|
36
36
|
EnergyProductionCCValues: () => import_CCValues_generated.EnergyProductionCCValues
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(EnergyProductionCC_exports);
|
|
39
|
+
var import_tslib = require("tslib");
|
|
39
40
|
var __validateArgs = __toESM(require("./EnergyProductionCC._validateArgs.js"), 1);
|
|
40
41
|
var import_core = require("@zwave-js/core");
|
|
41
42
|
var import_shared = require("@zwave-js/shared");
|
|
@@ -44,46 +45,6 @@ var import_CommandClass = require("../lib/CommandClass.js");
|
|
|
44
45
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
45
46
|
var import_Types = require("../lib/_Types.js");
|
|
46
47
|
var import_CCValues_generated = require("./_CCValues.generated.js");
|
|
47
|
-
var __runInitializers = function(thisArg, initializers, value) {
|
|
48
|
-
var useValue = arguments.length > 2;
|
|
49
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
50
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
51
|
-
}
|
|
52
|
-
return useValue ? value : void 0;
|
|
53
|
-
};
|
|
54
|
-
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
55
|
-
function accept(f) {
|
|
56
|
-
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
57
|
-
return f;
|
|
58
|
-
}
|
|
59
|
-
__name(accept, "accept");
|
|
60
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
61
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
62
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
63
|
-
var _, done = false;
|
|
64
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
65
|
-
var context = {};
|
|
66
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
67
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
68
|
-
context.addInitializer = function(f) {
|
|
69
|
-
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
70
|
-
extraInitializers.push(accept(f || null));
|
|
71
|
-
};
|
|
72
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
73
|
-
if (kind === "accessor") {
|
|
74
|
-
if (result === void 0) continue;
|
|
75
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
76
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
77
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
78
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
79
|
-
} else if (_ = accept(result)) {
|
|
80
|
-
if (kind === "field") initializers.unshift(_);
|
|
81
|
-
else descriptor[key] = _;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
85
|
-
done = true;
|
|
86
|
-
};
|
|
87
48
|
const { validateArgs_EnergyProductionCCAPI_get } = __validateArgs;
|
|
88
49
|
let EnergyProductionCCAPI = (() => {
|
|
89
50
|
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_core.CommandClasses["Energy Production"])];
|
|
@@ -103,11 +64,11 @@ let EnergyProductionCCAPI = (() => {
|
|
|
103
64
|
static {
|
|
104
65
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
105
66
|
_get_decorators = [validateArgs_EnergyProductionCCAPI_get()];
|
|
106
|
-
__esDecorate(this, null, _get_decorators, { kind: "method", name: "get", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "get" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.get, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
107
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
67
|
+
(0, import_tslib.__esDecorate)(this, null, _get_decorators, { kind: "method", name: "get", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "get" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.get, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
68
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
108
69
|
EnergyProductionCCAPI2 = _classThis = _classDescriptor.value;
|
|
109
70
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
110
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
71
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
111
72
|
}
|
|
112
73
|
supportsCommand(cmd) {
|
|
113
74
|
switch (cmd) {
|
|
@@ -143,7 +104,7 @@ let EnergyProductionCCAPI = (() => {
|
|
|
143
104
|
}
|
|
144
105
|
constructor() {
|
|
145
106
|
super(...arguments);
|
|
146
|
-
__runInitializers(this, _instanceExtraInitializers);
|
|
107
|
+
(0, import_tslib.__runInitializers)(this, _instanceExtraInitializers);
|
|
147
108
|
}
|
|
148
109
|
};
|
|
149
110
|
return EnergyProductionCCAPI2 = _classThis;
|
|
@@ -163,10 +124,10 @@ let EnergyProductionCC = (() => {
|
|
|
163
124
|
}
|
|
164
125
|
static {
|
|
165
126
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
166
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
127
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
167
128
|
EnergyProductionCC2 = _classThis = _classDescriptor.value;
|
|
168
129
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
169
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
130
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
170
131
|
}
|
|
171
132
|
async interview(ctx) {
|
|
172
133
|
const node = this.getNode(ctx);
|
|
@@ -178,11 +139,11 @@ let EnergyProductionCC = (() => {
|
|
|
178
139
|
await this.refreshValues(ctx);
|
|
179
140
|
this.setInterviewComplete(ctx, true);
|
|
180
141
|
}
|
|
181
|
-
async refreshValues(ctx) {
|
|
142
|
+
async refreshValues(ctx, options) {
|
|
182
143
|
const node = this.getNode(ctx);
|
|
183
144
|
const endpoint = this.getEndpoint(ctx);
|
|
184
145
|
const api = import_API.CCAPI.create(import_core.CommandClasses["Energy Production"], ctx, endpoint).withOptions({
|
|
185
|
-
priority: import_core.MessagePriority.NodeQuery
|
|
146
|
+
priority: options?.priority ?? import_core.MessagePriority.NodeQuery
|
|
186
147
|
});
|
|
187
148
|
for (const parameter of [
|
|
188
149
|
import_Types.EnergyProductionParameter.Power,
|
|
@@ -216,10 +177,10 @@ let EnergyProductionCCReport = (() => {
|
|
|
216
177
|
}
|
|
217
178
|
static {
|
|
218
179
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
219
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
180
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
220
181
|
EnergyProductionCCReport2 = _classThis = _classDescriptor.value;
|
|
221
182
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
222
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
183
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
223
184
|
}
|
|
224
185
|
constructor(options) {
|
|
225
186
|
super(options);
|
|
@@ -294,10 +255,10 @@ let EnergyProductionCCGet = (() => {
|
|
|
294
255
|
}
|
|
295
256
|
static {
|
|
296
257
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
297
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
258
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
298
259
|
EnergyProductionCCGet2 = _classThis = _classDescriptor.value;
|
|
299
260
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
300
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
261
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
301
262
|
}
|
|
302
263
|
constructor(options) {
|
|
303
264
|
super(options);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src_gen/cc/EnergyProductionCC.ts"],
|
|
4
|
-
"sourcesContent": ["import * as __validateArgs from \"./EnergyProductionCC._validateArgs.js\";\nconst { validateArgs_EnergyProductionCCAPI_get } = __validateArgs;\nimport { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, ValueMetadata, type WithAddress, encodeFloatWithScale, parseFloatWithScale, validatePayload, } from \"@zwave-js/core\";\nimport { Bytes, getEnumMemberName, pick } from \"@zwave-js/shared\";\nimport { CCAPI, POLL_VALUE, type PollValueImplementation, throwUnsupportedProperty, } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValues, commandClass, expectedCCResponse, implementedVersion, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { EnergyProductionCommand, EnergyProductionParameter, type EnergyProductionScale, getEnergyProductionScale, } from \"../lib/_Types.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { EnergyProductionCCValues } from \"./_CCValues.generated.js\";\nexport { EnergyProductionCCValues };\n@API(CommandClasses[\"Energy Production\"])\nexport class EnergyProductionCCAPI extends CCAPI {\n public supportsCommand(cmd: EnergyProductionCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case EnergyProductionCommand.Get:\n return true; // This is mandatory\n }\n return super.supportsCommand(cmd);\n }\n protected get [POLL_VALUE](): PollValueImplementation {\n return async function (this: EnergyProductionCCAPI, { property, propertyKey }) {\n if (EnergyProductionCCValues.value.is({\n commandClass: this.ccId,\n property,\n propertyKey,\n })) {\n return (await this.get(property as EnergyProductionParameter))\n ?.value;\n }\n else {\n throwUnsupportedProperty(this.ccId, property);\n }\n };\n }\n @validateArgs_EnergyProductionCCAPI_get()\n public async get(parameter: EnergyProductionParameter): Promise<MaybeNotKnown<{\n value: number;\n scale: EnergyProductionScale;\n }>> {\n this.assertSupportsCommand(EnergyProductionCommand, EnergyProductionCommand.Get);\n const cc = new EnergyProductionCCGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n parameter,\n });\n const response = await this.host.sendCommand<EnergyProductionCCReport>(cc, this.commandOptions);\n if (response) {\n return pick(response, [\"value\", \"scale\"]);\n }\n }\n}\n@commandClass(CommandClasses[\"Energy Production\"])\n@implementedVersion(1)\n@ccValues(EnergyProductionCCValues)\nexport class EnergyProductionCC extends CommandClass {\n declare ccCommand: EnergyProductionCommand;\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n // Query current values\n await this.refreshValues(ctx);\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n public async refreshValues(ctx: RefreshValuesContext): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Energy Production\"], ctx, endpoint).withOptions({\n priority: MessagePriority.NodeQuery,\n });\n for (const parameter of [\n EnergyProductionParameter.Power,\n EnergyProductionParameter[\"Production Total\"],\n EnergyProductionParameter[\"Production Today\"],\n EnergyProductionParameter[\"Total Time\"],\n ] as const) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `querying energy production (${getEnumMemberName(EnergyProductionParameter, parameter)})...`,\n direction: \"outbound\",\n });\n await api.get(parameter);\n }\n }\n}\n// @publicAPI\nexport interface EnergyProductionCCReportOptions {\n parameter: EnergyProductionParameter;\n scale: EnergyProductionScale;\n value: number;\n}\n@CCCommand(EnergyProductionCommand.Report)\nexport class EnergyProductionCCReport extends EnergyProductionCC {\n public constructor(options: WithAddress<EnergyProductionCCReportOptions>) {\n super(options);\n this.parameter = options.parameter;\n this.value = options.value;\n this.scale = options.scale;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): EnergyProductionCCReport {\n validatePayload(raw.payload.length >= 2);\n const parameter: EnergyProductionParameter = raw.payload[0];\n const { value, scale: rawScale } = parseFloatWithScale(raw.payload.subarray(1));\n const scale: EnergyProductionScale = getEnergyProductionScale(parameter, rawScale);\n return new this({\n nodeId: ctx.sourceNodeId,\n parameter,\n value,\n scale,\n });\n }\n public readonly parameter: EnergyProductionParameter;\n public readonly scale: EnergyProductionScale;\n public readonly value: number;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n const valueValue = EnergyProductionCCValues.value(this.parameter);\n this.setMetadata(ctx, valueValue, {\n ...valueValue.meta,\n unit: this.scale.unit,\n ccSpecific: {\n parameter: this.parameter,\n scale: this.scale.key,\n },\n });\n this.setValue(ctx, valueValue, this.value);\n return true;\n }\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.concat([\n [this.parameter],\n encodeFloatWithScale(this.value, this.scale.key),\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n [getEnumMemberName(EnergyProductionParameter, this.parameter).toLowerCase()]: `${this.value} ${this.scale.unit}`,\n },\n };\n }\n}\n// @publicAPI\nexport interface EnergyProductionCCGetOptions {\n parameter: EnergyProductionParameter;\n}\nfunction testResponseForEnergyProductionGet(sent: EnergyProductionCCGet, received: EnergyProductionCCReport) {\n return received.parameter === sent.parameter;\n}\n@CCCommand(EnergyProductionCommand.Get)\n@expectedCCResponse(EnergyProductionCCReport, testResponseForEnergyProductionGet)\nexport class EnergyProductionCCGet extends EnergyProductionCC {\n public constructor(options: WithAddress<EnergyProductionCCGetOptions>) {\n super(options);\n this.parameter = options.parameter;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): EnergyProductionCCGet {\n validatePayload(raw.payload.length >= 1);\n const parameter: EnergyProductionParameter = raw.payload[0];\n return new this({\n nodeId: ctx.sourceNodeId,\n parameter,\n });\n }\n public parameter: EnergyProductionParameter;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.parameter]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n parameter: getEnumMemberName(EnergyProductionParameter, this.parameter),\n },\n };\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import * as __validateArgs from \"./EnergyProductionCC._validateArgs.js\";\nconst { validateArgs_EnergyProductionCCAPI_get } = __validateArgs;\nimport { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, ValueMetadata, type WithAddress, encodeFloatWithScale, parseFloatWithScale, validatePayload, } from \"@zwave-js/core\";\nimport { Bytes, getEnumMemberName, pick } from \"@zwave-js/shared\";\nimport { CCAPI, POLL_VALUE, type PollValueImplementation, throwUnsupportedProperty, } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext, type RefreshValuesOptions, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValues, commandClass, expectedCCResponse, implementedVersion, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { EnergyProductionCommand, EnergyProductionParameter, type EnergyProductionScale, getEnergyProductionScale, } from \"../lib/_Types.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { EnergyProductionCCValues } from \"./_CCValues.generated.js\";\nexport { EnergyProductionCCValues };\n@API(CommandClasses[\"Energy Production\"])\nexport class EnergyProductionCCAPI extends CCAPI {\n public supportsCommand(cmd: EnergyProductionCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case EnergyProductionCommand.Get:\n return true; // This is mandatory\n }\n return super.supportsCommand(cmd);\n }\n protected get [POLL_VALUE](): PollValueImplementation {\n return async function (this: EnergyProductionCCAPI, { property, propertyKey }) {\n if (EnergyProductionCCValues.value.is({\n commandClass: this.ccId,\n property,\n propertyKey,\n })) {\n return (await this.get(property as EnergyProductionParameter))\n ?.value;\n }\n else {\n throwUnsupportedProperty(this.ccId, property);\n }\n };\n }\n @validateArgs_EnergyProductionCCAPI_get()\n public async get(parameter: EnergyProductionParameter): Promise<MaybeNotKnown<{\n value: number;\n scale: EnergyProductionScale;\n }>> {\n this.assertSupportsCommand(EnergyProductionCommand, EnergyProductionCommand.Get);\n const cc = new EnergyProductionCCGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n parameter,\n });\n const response = await this.host.sendCommand<EnergyProductionCCReport>(cc, this.commandOptions);\n if (response) {\n return pick(response, [\"value\", \"scale\"]);\n }\n }\n}\n@commandClass(CommandClasses[\"Energy Production\"])\n@implementedVersion(1)\n@ccValues(EnergyProductionCCValues)\nexport class EnergyProductionCC extends CommandClass {\n declare ccCommand: EnergyProductionCommand;\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n // Query current values\n await this.refreshValues(ctx);\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n public async refreshValues(ctx: RefreshValuesContext, options?: RefreshValuesOptions): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Energy Production\"], ctx, endpoint).withOptions({\n priority: options?.priority ?? MessagePriority.NodeQuery,\n });\n for (const parameter of [\n EnergyProductionParameter.Power,\n EnergyProductionParameter[\"Production Total\"],\n EnergyProductionParameter[\"Production Today\"],\n EnergyProductionParameter[\"Total Time\"],\n ] as const) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `querying energy production (${getEnumMemberName(EnergyProductionParameter, parameter)})...`,\n direction: \"outbound\",\n });\n await api.get(parameter);\n }\n }\n}\n// @publicAPI\nexport interface EnergyProductionCCReportOptions {\n parameter: EnergyProductionParameter;\n scale: EnergyProductionScale;\n value: number;\n}\n@CCCommand(EnergyProductionCommand.Report)\nexport class EnergyProductionCCReport extends EnergyProductionCC {\n public constructor(options: WithAddress<EnergyProductionCCReportOptions>) {\n super(options);\n this.parameter = options.parameter;\n this.value = options.value;\n this.scale = options.scale;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): EnergyProductionCCReport {\n validatePayload(raw.payload.length >= 2);\n const parameter: EnergyProductionParameter = raw.payload[0];\n const { value, scale: rawScale } = parseFloatWithScale(raw.payload.subarray(1));\n const scale: EnergyProductionScale = getEnergyProductionScale(parameter, rawScale);\n return new this({\n nodeId: ctx.sourceNodeId,\n parameter,\n value,\n scale,\n });\n }\n public readonly parameter: EnergyProductionParameter;\n public readonly scale: EnergyProductionScale;\n public readonly value: number;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n const valueValue = EnergyProductionCCValues.value(this.parameter);\n this.setMetadata(ctx, valueValue, {\n ...valueValue.meta,\n unit: this.scale.unit,\n ccSpecific: {\n parameter: this.parameter,\n scale: this.scale.key,\n },\n });\n this.setValue(ctx, valueValue, this.value);\n return true;\n }\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.concat([\n [this.parameter],\n encodeFloatWithScale(this.value, this.scale.key),\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n [getEnumMemberName(EnergyProductionParameter, this.parameter).toLowerCase()]: `${this.value} ${this.scale.unit}`,\n },\n };\n }\n}\n// @publicAPI\nexport interface EnergyProductionCCGetOptions {\n parameter: EnergyProductionParameter;\n}\nfunction testResponseForEnergyProductionGet(sent: EnergyProductionCCGet, received: EnergyProductionCCReport) {\n return received.parameter === sent.parameter;\n}\n@CCCommand(EnergyProductionCommand.Get)\n@expectedCCResponse(EnergyProductionCCReport, testResponseForEnergyProductionGet)\nexport class EnergyProductionCCGet extends EnergyProductionCC {\n public constructor(options: WithAddress<EnergyProductionCCGetOptions>) {\n super(options);\n this.parameter = options.parameter;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): EnergyProductionCCGet {\n validatePayload(raw.payload.length >= 1);\n const parameter: EnergyProductionParameter = raw.payload[0];\n return new this({\n nodeId: ctx.sourceNodeId,\n parameter,\n });\n }\n public parameter: EnergyProductionParameter;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.parameter]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n parameter: getEnumMemberName(EnergyProductionParameter, this.parameter),\n },\n };\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAgC;AAEhC,kBAA6M;AAC7M,oBAA+C;AAC/C,iBAA2F;AAC3F,0BAAkJ;AAClJ,oCAAgG;AAEhG,mBAA0H;AAE1H,gCAAyC;AATzC,MAAM,EAAE,uCAAsC,IAAK;IAYtC,yBAAqB,MAAA;8BADjC,mCAAI,2BAAe,mBAAmB,CAAC,CAAC;;;;oBACE;;;6CAAA,YAAK;WAAA;;;;;;;;yBAuB3C,uCAAsC,CAAE;AACzC,qCAAA,MAAA,MAAA,iBAAA,EAAA,MAAA,UAAA,MAAA,OAAA,QAAA,OAAA,SAAA,OAAA,QAAA,EAAA,KA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AkD;AACjE,YAAM,OAAO;AACb,WAAK,YAAY,QAAQ;IAC7B;IACO,OAAO,KAAK,KAAY,KAAqB;AAChD,uCAAgB,IAAI,QAAQ,UAAU,CAAC;AACvC,YAAM,YAAuC,IAAI,QAAQ,CAAC;AAC1D,aAAO,IAAI,KAAK;QACZ,QAAQ,IAAI;QACZ;OACH;IACL;IACO;IACA,UAAU,KAAsB;AACnC,WAAK,UAAU,oBAAM,KAAK,CAAC,KAAK,SAAS,CAAC;AAC1C,aAAO,MAAM,UAAU,GAAG;IAC9B;IACO,WAAW,KAAgB;AAC9B,aAAO;QACH,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS;UACL,eAAW,iCAAkB,wCAA2B,KAAK,SAAS;;;IAGlF;;;;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, type SupervisionResult, type WithAddress } from "@zwave-js/core";
|
|
2
2
|
import { Bytes, type BytesView } from "@zwave-js/shared";
|
|
3
3
|
import { CCAPI, POLL_VALUE, type PollValueImplementation, SET_VALUE, type SetValueImplementation } from "../lib/API.js";
|
|
4
|
-
import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext } from "../lib/CommandClass.js";
|
|
4
|
+
import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext, type RefreshValuesOptions } from "../lib/CommandClass.js";
|
|
5
5
|
import { EntryControlCommand, EntryControlDataTypes, EntryControlEventTypes } from "../lib/_Types.js";
|
|
6
6
|
import type { CCEncodingContext, CCParsingContext } from "../lib/traits.js";
|
|
7
7
|
import { EntryControlCCValues } from "./_CCValues.generated.js";
|
|
@@ -19,7 +19,7 @@ export declare class EntryControlCC extends CommandClass {
|
|
|
19
19
|
ccCommand: EntryControlCommand;
|
|
20
20
|
determineRequiredCCInterviews(): readonly CommandClasses[];
|
|
21
21
|
interview(ctx: InterviewContext): Promise<void>;
|
|
22
|
-
refreshValues(ctx: RefreshValuesContext): Promise<void>;
|
|
22
|
+
refreshValues(ctx: RefreshValuesContext, options?: RefreshValuesOptions): Promise<void>;
|
|
23
23
|
}
|
|
24
24
|
export interface EntryControlCCNotificationOptions {
|
|
25
25
|
sequenceNumber: number;
|
|
@@ -42,6 +42,7 @@ __export(EntryControlCC_exports, {
|
|
|
42
42
|
EntryControlCCValues: () => import_CCValues_generated.EntryControlCCValues
|
|
43
43
|
});
|
|
44
44
|
module.exports = __toCommonJS(EntryControlCC_exports);
|
|
45
|
+
var import_tslib = require("tslib");
|
|
45
46
|
var __validateArgs = __toESM(require("./EntryControlCC._validateArgs.js"), 1);
|
|
46
47
|
var import_core = require("@zwave-js/core");
|
|
47
48
|
var import_shared = require("@zwave-js/shared");
|
|
@@ -51,46 +52,6 @@ var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
|
51
52
|
var import_Types = require("../lib/_Types.js");
|
|
52
53
|
var ccUtils = __toESM(require("../lib/utils.js"), 1);
|
|
53
54
|
var import_CCValues_generated = require("./_CCValues.generated.js");
|
|
54
|
-
var __runInitializers = function(thisArg, initializers, value) {
|
|
55
|
-
var useValue = arguments.length > 2;
|
|
56
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
57
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
58
|
-
}
|
|
59
|
-
return useValue ? value : void 0;
|
|
60
|
-
};
|
|
61
|
-
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
62
|
-
function accept(f) {
|
|
63
|
-
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
64
|
-
return f;
|
|
65
|
-
}
|
|
66
|
-
__name(accept, "accept");
|
|
67
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
68
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
69
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
70
|
-
var _, done = false;
|
|
71
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
72
|
-
var context = {};
|
|
73
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
74
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
75
|
-
context.addInitializer = function(f) {
|
|
76
|
-
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
77
|
-
extraInitializers.push(accept(f || null));
|
|
78
|
-
};
|
|
79
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
80
|
-
if (kind === "accessor") {
|
|
81
|
-
if (result === void 0) continue;
|
|
82
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
83
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
84
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
85
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
86
|
-
} else if (_ = accept(result)) {
|
|
87
|
-
if (kind === "field") initializers.unshift(_);
|
|
88
|
-
else descriptor[key] = _;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
92
|
-
done = true;
|
|
93
|
-
};
|
|
94
55
|
const { validateArgs_EntryControlCCAPI_setConfiguration } = __validateArgs;
|
|
95
56
|
let EntryControlCCAPI = (() => {
|
|
96
57
|
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_core.CommandClasses["Entry Control"])];
|
|
@@ -109,11 +70,11 @@ let EntryControlCCAPI = (() => {
|
|
|
109
70
|
}
|
|
110
71
|
static {
|
|
111
72
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
112
|
-
__esDecorate(this, null, _setConfiguration_decorators, { kind: "method", name: "setConfiguration", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setConfiguration" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setConfiguration, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
113
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
73
|
+
(0, import_tslib.__esDecorate)(this, null, _setConfiguration_decorators, { kind: "method", name: "setConfiguration", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setConfiguration" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setConfiguration, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
74
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
114
75
|
EntryControlCCAPI2 = _classThis = _classDescriptor.value;
|
|
115
76
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
116
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
77
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
117
78
|
}
|
|
118
79
|
supportsCommand(cmd) {
|
|
119
80
|
switch (cmd) {
|
|
@@ -214,7 +175,7 @@ let EntryControlCCAPI = (() => {
|
|
|
214
175
|
}
|
|
215
176
|
constructor() {
|
|
216
177
|
super(...arguments);
|
|
217
|
-
__runInitializers(this, _instanceExtraInitializers);
|
|
178
|
+
(0, import_tslib.__runInitializers)(this, _instanceExtraInitializers);
|
|
218
179
|
}
|
|
219
180
|
};
|
|
220
181
|
return EntryControlCCAPI2 = _classThis;
|
|
@@ -234,10 +195,10 @@ let EntryControlCC = (() => {
|
|
|
234
195
|
}
|
|
235
196
|
static {
|
|
236
197
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
237
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
198
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
238
199
|
EntryControlCC2 = _classThis = _classDescriptor.value;
|
|
239
200
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
240
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
201
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
241
202
|
}
|
|
242
203
|
determineRequiredCCInterviews() {
|
|
243
204
|
return [
|
|
@@ -302,11 +263,11 @@ max key cache timeout: ${eventCapabilities.maxKeyCacheTimeout} seconds`,
|
|
|
302
263
|
await this.refreshValues(ctx);
|
|
303
264
|
this.setInterviewComplete(ctx, true);
|
|
304
265
|
}
|
|
305
|
-
async refreshValues(ctx) {
|
|
266
|
+
async refreshValues(ctx, options) {
|
|
306
267
|
const node = this.getNode(ctx);
|
|
307
268
|
const endpoint = this.getEndpoint(ctx);
|
|
308
269
|
const api = import_API.CCAPI.create(import_core.CommandClasses["Entry Control"], ctx, endpoint).withOptions({
|
|
309
|
-
priority: import_core.MessagePriority.NodeQuery
|
|
270
|
+
priority: options?.priority ?? import_core.MessagePriority.NodeQuery
|
|
310
271
|
});
|
|
311
272
|
ctx.logNode(node.id, {
|
|
312
273
|
endpoint: this.endpointIndex,
|
|
@@ -342,10 +303,10 @@ let EntryControlCCNotification = (() => {
|
|
|
342
303
|
}
|
|
343
304
|
static {
|
|
344
305
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
345
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
306
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
346
307
|
EntryControlCCNotification2 = _classThis = _classDescriptor.value;
|
|
347
308
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
348
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
309
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
349
310
|
}
|
|
350
311
|
constructor(options) {
|
|
351
312
|
super(options);
|
|
@@ -443,10 +404,10 @@ let EntryControlCCKeySupportedReport = (() => {
|
|
|
443
404
|
}
|
|
444
405
|
static {
|
|
445
406
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
446
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
407
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
447
408
|
EntryControlCCKeySupportedReport2 = _classThis = _classDescriptor.value;
|
|
448
409
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
449
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
410
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
450
411
|
}
|
|
451
412
|
constructor(options) {
|
|
452
413
|
super(options);
|
|
@@ -487,10 +448,10 @@ let EntryControlCCKeySupportedGet = (() => {
|
|
|
487
448
|
}
|
|
488
449
|
static {
|
|
489
450
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
490
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
451
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
491
452
|
EntryControlCCKeySupportedGet2 = _classThis = _classDescriptor.value;
|
|
492
453
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
493
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
454
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
494
455
|
}
|
|
495
456
|
};
|
|
496
457
|
return EntryControlCCKeySupportedGet2 = _classThis;
|
|
@@ -510,10 +471,10 @@ let EntryControlCCEventSupportedReport = (() => {
|
|
|
510
471
|
}
|
|
511
472
|
static {
|
|
512
473
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
513
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
474
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
514
475
|
EntryControlCCEventSupportedReport2 = _classThis = _classDescriptor.value;
|
|
515
476
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
516
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
477
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
517
478
|
}
|
|
518
479
|
constructor(options) {
|
|
519
480
|
super(options);
|
|
@@ -608,10 +569,10 @@ let EntryControlCCEventSupportedGet = (() => {
|
|
|
608
569
|
}
|
|
609
570
|
static {
|
|
610
571
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
611
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
572
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
612
573
|
EntryControlCCEventSupportedGet2 = _classThis = _classDescriptor.value;
|
|
613
574
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
614
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
575
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
615
576
|
}
|
|
616
577
|
};
|
|
617
578
|
return EntryControlCCEventSupportedGet2 = _classThis;
|
|
@@ -631,10 +592,10 @@ let EntryControlCCConfigurationReport = (() => {
|
|
|
631
592
|
}
|
|
632
593
|
static {
|
|
633
594
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
634
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
595
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
635
596
|
EntryControlCCConfigurationReport2 = _classThis = _classDescriptor.value;
|
|
636
597
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
637
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
598
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
638
599
|
}
|
|
639
600
|
constructor(options) {
|
|
640
601
|
super(options);
|
|
@@ -681,10 +642,10 @@ let EntryControlCCConfigurationGet = (() => {
|
|
|
681
642
|
}
|
|
682
643
|
static {
|
|
683
644
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
684
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
645
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
685
646
|
EntryControlCCConfigurationGet2 = _classThis = _classDescriptor.value;
|
|
686
647
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
687
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
648
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
688
649
|
}
|
|
689
650
|
};
|
|
690
651
|
return EntryControlCCConfigurationGet2 = _classThis;
|
|
@@ -704,10 +665,10 @@ let EntryControlCCConfigurationSet = (() => {
|
|
|
704
665
|
}
|
|
705
666
|
static {
|
|
706
667
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
707
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
668
|
+
(0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
708
669
|
EntryControlCCConfigurationSet2 = _classThis = _classDescriptor.value;
|
|
709
670
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
710
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
671
|
+
(0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
|
|
711
672
|
}
|
|
712
673
|
constructor(options) {
|
|
713
674
|
super(options);
|