@zwave-js/cc 14.0.0-beta.1 → 14.0.0-beta.5
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 +194 -0
- package/build/cjs/cc/AlarmSensorCC.js +510 -0
- package/build/cjs/cc/AlarmSensorCC.js.map +7 -0
- package/build/cjs/cc/AssociationCC.d.ts +253 -0
- package/build/cjs/cc/AssociationCC.js +877 -0
- package/build/cjs/cc/AssociationCC.js.map +7 -0
- package/build/cjs/cc/AssociationGroupInfoCC.d.ts +230 -0
- package/build/cjs/cc/AssociationGroupInfoCC.js +887 -0
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +7 -0
- package/build/cjs/cc/BarrierOperatorCC.d.ts +243 -0
- package/build/cjs/cc/BarrierOperatorCC.js +748 -0
- package/build/cjs/cc/BarrierOperatorCC.js.map +7 -0
- package/build/cjs/cc/BasicCC.d.ts +191 -0
- package/build/cjs/cc/BasicCC.js +478 -0
- package/build/cjs/cc/BasicCC.js.map +7 -0
- package/build/cjs/cc/BatteryCC.d.ts +406 -0
- package/build/cjs/cc/BatteryCC.js +590 -0
- package/build/cjs/cc/BatteryCC.js.map +7 -0
- package/build/cjs/cc/BinarySensorCC.d.ts +122 -0
- package/build/cjs/cc/BinarySensorCC.js +546 -0
- package/build/cjs/cc/BinarySensorCC.js.map +7 -0
- package/build/cjs/cc/BinarySwitchCC.d.ts +139 -0
- package/build/cjs/cc/BinarySwitchCC.js +472 -0
- package/build/cjs/cc/BinarySwitchCC.js.map +7 -0
- package/build/cjs/cc/CRC16CC.d.ts +29 -0
- package/build/cjs/cc/CRC16CC.js +208 -0
- package/build/cjs/cc/CRC16CC.js.map +7 -0
- package/build/cjs/cc/CentralSceneCC.d.ts +210 -0
- package/build/cjs/cc/CentralSceneCC.js +584 -0
- package/build/cjs/cc/CentralSceneCC.js.map +7 -0
- package/build/cjs/cc/ClimateControlScheduleCC.d.ts +177 -0
- package/build/cjs/cc/ClimateControlScheduleCC.js +646 -0
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +7 -0
- package/build/cjs/cc/ClockCC.d.ts +47 -0
- package/build/cjs/cc/ClockCC.js +330 -0
- package/build/cjs/cc/ClockCC.js.map +7 -0
- package/build/cjs/cc/ColorSwitchCC.d.ts +339 -0
- package/build/cjs/cc/ColorSwitchCC.js +1265 -0
- package/build/cjs/cc/ColorSwitchCC.js.map +7 -0
- package/build/cjs/cc/ConfigurationCC.d.ts +396 -0
- package/build/cjs/cc/ConfigurationCC.js +2477 -0
- package/build/cjs/cc/ConfigurationCC.js.map +7 -0
- package/build/cjs/cc/DeviceResetLocallyCC.d.ts +17 -0
- package/build/cjs/cc/DeviceResetLocallyCC.js +168 -0
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +7 -0
- package/build/cjs/cc/DoorLockCC.d.ts +837 -0
- package/build/cjs/cc/DoorLockCC.js +1366 -0
- package/build/cjs/cc/DoorLockCC.js.map +7 -0
- package/build/cjs/cc/DoorLockLoggingCC.d.ts +77 -0
- package/build/cjs/cc/DoorLockLoggingCC.js +458 -0
- package/build/cjs/cc/DoorLockLoggingCC.js.map +7 -0
- package/build/cjs/cc/EnergyProductionCC.d.ts +77 -0
- package/build/cjs/cc/EnergyProductionCC.js +329 -0
- package/build/cjs/cc/EnergyProductionCC.js.map +7 -0
- package/build/cjs/cc/EntryControlCC.d.ts +231 -0
- package/build/cjs/cc/EntryControlCC.js +754 -0
- package/build/cjs/cc/EntryControlCC.js.map +7 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +1322 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +7 -0
- package/build/cjs/cc/HailCC.d.ts +6 -0
- package/build/cjs/cc/HailCC.js +91 -0
- package/build/cjs/cc/HailCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlModeCC.d.ts +111 -0
- package/build/cjs/cc/HumidityControlModeCC.js +449 -0
- package/build/cjs/cc/HumidityControlModeCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +60 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +250 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlSetpointCC.d.ts +209 -0
- package/build/cjs/cc/HumidityControlSetpointCC.js +821 -0
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +7 -0
- package/build/cjs/cc/InclusionControllerCC.d.ts +42 -0
- package/build/cjs/cc/InclusionControllerCC.js +251 -0
- package/build/cjs/cc/InclusionControllerCC.js.map +7 -0
- package/build/cjs/cc/IndicatorCC.d.ts +338 -0
- package/build/cjs/cc/IndicatorCC.js +1395 -0
- package/build/cjs/cc/IndicatorCC.js.map +7 -0
- package/build/cjs/cc/IrrigationCC.d.ts +1496 -0
- package/build/cjs/cc/IrrigationCC.js +2224 -0
- package/build/cjs/cc/IrrigationCC.js.map +7 -0
- package/build/cjs/cc/LanguageCC.d.ts +101 -0
- package/build/cjs/cc/LanguageCC.js +364 -0
- package/build/cjs/cc/LanguageCC.js.map +7 -0
- package/build/cjs/cc/LockCC.d.ts +73 -0
- package/build/cjs/cc/LockCC.js +322 -0
- package/build/cjs/cc/LockCC.js.map +7 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +32 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.js +269 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +7 -0
- package/build/cjs/cc/ManufacturerSpecificCC.d.ts +171 -0
- package/build/cjs/cc/ManufacturerSpecificCC.js +440 -0
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +7 -0
- package/build/cjs/cc/MeterCC.d.ts +318 -0
- package/build/cjs/cc/MeterCC.js +1355 -0
- package/build/cjs/cc/MeterCC.js.map +7 -0
- package/build/cjs/cc/MultiChannelAssociationCC.d.ts +241 -0
- package/build/cjs/cc/MultiChannelAssociationCC.js +1090 -0
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +7 -0
- package/build/cjs/cc/MultiChannelCC.d.ts +394 -0
- package/build/cjs/cc/MultiChannelCC.js +1268 -0
- package/build/cjs/cc/MultiChannelCC.js.map +7 -0
- package/build/cjs/cc/MultiCommandCC.d.ts +27 -0
- package/build/cjs/cc/MultiCommandCC.js +234 -0
- package/build/cjs/cc/MultiCommandCC.js.map +7 -0
- package/build/cjs/cc/MultilevelSensorCC.d.ts +185 -0
- package/build/cjs/cc/MultilevelSensorCC.js +856 -0
- package/build/cjs/cc/MultilevelSensorCC.js.map +7 -0
- package/build/cjs/cc/MultilevelSwitchCC.d.ts +357 -0
- package/build/cjs/cc/MultilevelSwitchCC.js +928 -0
- package/build/cjs/cc/MultilevelSwitchCC.js.map +7 -0
- package/build/cjs/cc/NoOperationCC.d.ts +9 -0
- package/build/cjs/cc/NoOperationCC.js +126 -0
- package/build/cjs/cc/NoOperationCC.js.map +7 -0
- package/build/cjs/cc/NodeNamingCC.d.ts +118 -0
- package/build/cjs/cc/NodeNamingCC.js +504 -0
- package/build/cjs/cc/NodeNamingCC.js.map +7 -0
- package/build/cjs/cc/NotificationCC.d.ts +479 -0
- package/build/cjs/cc/NotificationCC.js +1399 -0
- package/build/cjs/cc/NotificationCC.js.map +7 -0
- package/build/cjs/cc/PowerlevelCC.d.ts +82 -0
- package/build/cjs/cc/PowerlevelCC.js +657 -0
- package/build/cjs/cc/PowerlevelCC.js.map +7 -0
- package/build/cjs/cc/ProtectionCC.d.ts +325 -0
- package/build/cjs/cc/ProtectionCC.js +859 -0
- package/build/cjs/cc/ProtectionCC.js.map +7 -0
- package/build/cjs/cc/SceneActivationCC.d.ts +89 -0
- package/build/cjs/cc/SceneActivationCC.js +261 -0
- package/build/cjs/cc/SceneActivationCC.js.map +7 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +120 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +473 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +7 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +129 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.js +526 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +7 -0
- package/build/cjs/cc/ScheduleEntryLockCC.d.ts +434 -0
- package/build/cjs/cc/ScheduleEntryLockCC.js +2043 -0
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +7 -0
- package/build/cjs/cc/Security2CC.d.ts +251 -0
- package/build/cjs/cc/Security2CC.js +1853 -0
- package/build/cjs/cc/Security2CC.js.map +7 -0
- package/build/cjs/cc/SecurityCC.d.ts +128 -0
- package/build/cjs/cc/SecurityCC.js +977 -0
- package/build/cjs/cc/SecurityCC.js.map +7 -0
- package/build/cjs/cc/SoundSwitchCC.d.ts +232 -0
- package/build/cjs/cc/SoundSwitchCC.js +853 -0
- package/build/cjs/cc/SoundSwitchCC.js.map +7 -0
- package/build/cjs/cc/SupervisionCC.d.ts +104 -0
- package/build/cjs/cc/SupervisionCC.js +398 -0
- package/build/cjs/cc/SupervisionCC.js.map +7 -0
- package/build/cjs/cc/ThermostatFanModeCC.d.ts +141 -0
- package/build/cjs/cc/ThermostatFanModeCC.js +495 -0
- package/build/cjs/cc/ThermostatFanModeCC.js.map +7 -0
- package/build/cjs/cc/ThermostatFanStateCC.d.ts +60 -0
- package/build/cjs/cc/ThermostatFanStateCC.js +252 -0
- package/build/cjs/cc/ThermostatFanStateCC.js.map +7 -0
- package/build/cjs/cc/ThermostatModeCC.d.ts +150 -0
- package/build/cjs/cc/ThermostatModeCC.js +559 -0
- package/build/cjs/cc/ThermostatModeCC.js.map +7 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +61 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.js +248 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +7 -0
- package/build/cjs/cc/ThermostatSetbackCC.d.ts +46 -0
- package/build/cjs/cc/ThermostatSetbackCC.js +366 -0
- package/build/cjs/cc/ThermostatSetbackCC.js.map +7 -0
- package/build/cjs/cc/ThermostatSetpointCC.d.ts +197 -0
- package/build/cjs/cc/ThermostatSetpointCC.js +792 -0
- package/build/cjs/cc/ThermostatSetpointCC.js.map +7 -0
- package/build/cjs/cc/TimeCC.d.ts +88 -0
- package/build/cjs/cc/TimeCC.js +635 -0
- package/build/cjs/cc/TimeCC.js.map +7 -0
- package/build/cjs/cc/TimeParametersCC.d.ts +72 -0
- package/build/cjs/cc/TimeParametersCC.js +413 -0
- package/build/cjs/cc/TimeParametersCC.js.map +7 -0
- package/build/cjs/cc/TransportServiceCC.d.ts +107 -0
- package/build/cjs/cc/TransportServiceCC.js +522 -0
- package/build/cjs/cc/TransportServiceCC.js.map +7 -0
- package/build/cjs/cc/UserCodeCC.d.ts +683 -0
- package/build/cjs/cc/UserCodeCC.js +1903 -0
- package/build/cjs/cc/UserCodeCC.js.map +7 -0
- package/build/cjs/cc/VersionCC.d.ts +469 -0
- package/build/cjs/cc/VersionCC.js +962 -0
- package/build/cjs/cc/VersionCC.js.map +7 -0
- package/build/cjs/cc/WakeUpCC.d.ts +150 -0
- package/build/cjs/cc/WakeUpCC.js +609 -0
- package/build/cjs/cc/WakeUpCC.js.map +7 -0
- package/build/cjs/cc/WindowCoveringCC.d.ts +315 -0
- package/build/cjs/cc/WindowCoveringCC.js +924 -0
- package/build/cjs/cc/WindowCoveringCC.js.map +7 -0
- package/build/cjs/cc/ZWaveLongRangeCC.d.ts +4 -0
- package/build/cjs/cc/ZWaveLongRangeCC.js +90 -0
- package/build/cjs/cc/ZWaveLongRangeCC.js.map +7 -0
- package/build/cjs/cc/ZWavePlusCC.d.ts +163 -0
- package/build/cjs/cc/ZWavePlusCC.js +362 -0
- package/build/cjs/cc/ZWavePlusCC.js.map +7 -0
- package/build/cjs/cc/ZWaveProtocolCC.d.ts +344 -0
- package/build/cjs/cc/ZWaveProtocolCC.js +1638 -0
- package/build/cjs/cc/ZWaveProtocolCC.js.map +7 -0
- package/build/cjs/cc/index.d.ts +132 -0
- package/build/cjs/cc/index.js +1180 -0
- package/build/cjs/cc/index.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +64 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.js +76 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +533 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +7 -0
- package/build/cjs/index.d.ts +15 -0
- package/build/cjs/index.js +77 -0
- package/build/cjs/index.js.map +7 -0
- package/build/cjs/index_safe.d.ts +3 -0
- package/build/cjs/index_safe.js +25 -0
- package/build/cjs/index_safe.js.map +7 -0
- package/build/cjs/lib/API.d.ts +271 -0
- package/build/cjs/lib/API.js +413 -0
- package/build/cjs/lib/API.js.map +7 -0
- package/build/cjs/lib/CommandClass.d.ts +234 -0
- package/build/cjs/lib/CommandClass.js +692 -0
- package/build/cjs/lib/CommandClass.js.map +7 -0
- package/build/cjs/lib/CommandClassDecorators.d.ts +108 -0
- package/build/cjs/lib/CommandClassDecorators.js +181 -0
- package/build/cjs/lib/CommandClassDecorators.js.map +7 -0
- package/build/cjs/lib/EncapsulatingCommandClass.d.ts +22 -0
- package/build/cjs/lib/EncapsulatingCommandClass.js +71 -0
- package/build/cjs/lib/EncapsulatingCommandClass.js.map +7 -0
- package/build/cjs/lib/ICommandClassContainer.js +17 -0
- package/build/cjs/lib/ICommandClassContainer.js.map +7 -0
- package/build/cjs/lib/NotificationEventPayload.d.ts +10 -0
- package/build/cjs/lib/NotificationEventPayload.js +31 -0
- package/build/cjs/lib/NotificationEventPayload.js.map +7 -0
- package/build/cjs/lib/Security2/Extension.d.ts +106 -0
- package/build/cjs/lib/Security2/Extension.js +424 -0
- package/build/cjs/lib/Security2/Extension.js.map +7 -0
- package/build/cjs/lib/Security2/shared.js +69 -0
- package/build/cjs/lib/Security2/shared.js.map +7 -0
- package/build/cjs/lib/SetValueResult.js +65 -0
- package/build/cjs/lib/SetValueResult.js.map +7 -0
- package/build/cjs/lib/Values.d.ts +223 -0
- package/build/cjs/lib/Values.js +191 -0
- package/build/cjs/lib/Values.js.map +7 -0
- package/build/cjs/lib/_Types.js +1676 -0
- package/build/cjs/lib/_Types.js.map +7 -0
- package/build/cjs/lib/serializers.d.ts +34 -0
- package/build/cjs/lib/serializers.js +110 -0
- package/build/cjs/lib/serializers.js.map +7 -0
- package/build/cjs/lib/utils.d.ts +17 -0
- package/build/cjs/lib/utils.js +678 -0
- package/build/cjs/lib/utils.js.map +7 -0
- package/build/cjs/package.json +3 -0
- package/build/esm/cc/AlarmSensorCC.d.ts +194 -0
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -0
- package/build/esm/cc/AlarmSensorCC.js +490 -0
- package/build/esm/cc/AlarmSensorCC.js.map +1 -0
- package/build/esm/cc/AssociationCC.d.ts +253 -0
- package/build/esm/cc/AssociationCC.d.ts.map +1 -0
- package/build/esm/cc/AssociationCC.js +847 -0
- package/build/esm/cc/AssociationCC.js.map +1 -0
- package/build/esm/cc/AssociationGroupInfoCC.d.ts +230 -0
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -0
- package/build/esm/cc/AssociationGroupInfoCC.js +889 -0
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -0
- package/build/esm/cc/BarrierOperatorCC.d.ts +243 -0
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -0
- package/build/esm/cc/BarrierOperatorCC.js +751 -0
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -0
- package/build/esm/cc/BasicCC.d.ts +191 -0
- package/build/esm/cc/BasicCC.d.ts.map +1 -0
- package/build/esm/cc/BasicCC.js +468 -0
- package/build/esm/cc/BasicCC.js.map +1 -0
- package/build/esm/cc/BatteryCC.d.ts +406 -0
- package/build/esm/cc/BatteryCC.d.ts.map +1 -0
- package/build/esm/cc/BatteryCC.js +578 -0
- package/build/esm/cc/BatteryCC.js.map +1 -0
- package/build/esm/cc/BinarySensorCC.d.ts +122 -0
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -0
- package/build/esm/cc/BinarySensorCC.js +515 -0
- package/build/esm/cc/BinarySensorCC.js.map +1 -0
- package/build/esm/cc/BinarySwitchCC.d.ts +139 -0
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -0
- package/build/esm/cc/BinarySwitchCC.js +441 -0
- package/build/esm/cc/BinarySwitchCC.js.map +1 -0
- package/build/esm/cc/CRC16CC.d.ts +29 -0
- package/build/esm/cc/CRC16CC.d.ts.map +1 -0
- package/build/esm/cc/CRC16CC.js +187 -0
- package/build/esm/cc/CRC16CC.js.map +1 -0
- package/build/esm/cc/CentralSceneCC.d.ts +210 -0
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -0
- package/build/esm/cc/CentralSceneCC.js +541 -0
- package/build/esm/cc/CentralSceneCC.js.map +1 -0
- package/build/esm/cc/ClimateControlScheduleCC.d.ts +177 -0
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -0
- package/build/esm/cc/ClimateControlScheduleCC.js +607 -0
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -0
- package/build/esm/cc/ClockCC.d.ts +47 -0
- package/build/esm/cc/ClockCC.d.ts.map +1 -0
- package/build/esm/cc/ClockCC.js +294 -0
- package/build/esm/cc/ClockCC.js.map +1 -0
- package/build/esm/cc/ColorSwitchCC.d.ts +339 -0
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/ColorSwitchCC.js +1274 -0
- package/build/esm/cc/ColorSwitchCC.js.map +1 -0
- package/build/esm/cc/ConfigurationCC.d.ts +396 -0
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/ConfigurationCC.js +2666 -0
- package/build/esm/cc/ConfigurationCC.js.map +1 -0
- package/build/esm/cc/DeviceResetLocallyCC.d.ts +17 -0
- package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -0
- package/build/esm/cc/DeviceResetLocallyCC.js +138 -0
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -0
- package/build/esm/cc/DoorLockCC.d.ts +837 -0
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -0
- package/build/esm/cc/DoorLockCC.js +1372 -0
- package/build/esm/cc/DoorLockCC.js.map +1 -0
- package/build/esm/cc/DoorLockLoggingCC.d.ts +77 -0
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -0
- package/build/esm/cc/DoorLockLoggingCC.js +414 -0
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -0
- package/build/esm/cc/EnergyProductionCC.d.ts +77 -0
- package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -0
- package/build/esm/cc/EnergyProductionCC.js +289 -0
- package/build/esm/cc/EnergyProductionCC.js.map +1 -0
- package/build/esm/cc/EntryControlCC.d.ts +231 -0
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -0
- package/build/esm/cc/EntryControlCC.js +717 -0
- package/build/esm/cc/EntryControlCC.js.map +1 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +1311 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -0
- package/build/esm/cc/HailCC.d.ts +6 -0
- package/build/esm/cc/HailCC.d.ts.map +1 -0
- package/build/esm/cc/HailCC.js +60 -0
- package/build/esm/cc/HailCC.js.map +1 -0
- package/build/esm/cc/HumidityControlModeCC.d.ts +111 -0
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlModeCC.js +412 -0
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +60 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.js +210 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -0
- package/build/esm/cc/HumidityControlSetpointCC.d.ts +209 -0
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlSetpointCC.js +805 -0
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -0
- package/build/esm/cc/InclusionControllerCC.d.ts +42 -0
- package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -0
- package/build/esm/cc/InclusionControllerCC.js +211 -0
- package/build/esm/cc/InclusionControllerCC.js.map +1 -0
- package/build/esm/cc/IndicatorCC.d.ts +338 -0
- package/build/esm/cc/IndicatorCC.d.ts.map +1 -0
- package/build/esm/cc/IndicatorCC.js +1455 -0
- package/build/esm/cc/IndicatorCC.js.map +1 -0
- package/build/esm/cc/IrrigationCC.d.ts +1496 -0
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -0
- package/build/esm/cc/IrrigationCC.js +2239 -0
- package/build/esm/cc/IrrigationCC.js.map +1 -0
- package/build/esm/cc/LanguageCC.d.ts +101 -0
- package/build/esm/cc/LanguageCC.d.ts.map +1 -0
- package/build/esm/cc/LanguageCC.js +325 -0
- package/build/esm/cc/LanguageCC.js.map +1 -0
- package/build/esm/cc/LockCC.d.ts +73 -0
- package/build/esm/cc/LockCC.d.ts.map +1 -0
- package/build/esm/cc/LockCC.js +282 -0
- package/build/esm/cc/LockCC.js.map +1 -0
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts +32 -0
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -0
- package/build/esm/cc/ManufacturerProprietaryCC.js +252 -0
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -0
- package/build/esm/cc/ManufacturerSpecificCC.d.ts +171 -0
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -0
- package/build/esm/cc/ManufacturerSpecificCC.js +404 -0
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -0
- package/build/esm/cc/MeterCC.d.ts +318 -0
- package/build/esm/cc/MeterCC.d.ts.map +1 -0
- package/build/esm/cc/MeterCC.js +1409 -0
- package/build/esm/cc/MeterCC.js.map +1 -0
- package/build/esm/cc/MultiChannelAssociationCC.d.ts +241 -0
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -0
- package/build/esm/cc/MultiChannelAssociationCC.js +1094 -0
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -0
- package/build/esm/cc/MultiChannelCC.d.ts +394 -0
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -0
- package/build/esm/cc/MultiChannelCC.js +1312 -0
- package/build/esm/cc/MultiChannelCC.js.map +1 -0
- package/build/esm/cc/MultiCommandCC.d.ts +27 -0
- package/build/esm/cc/MultiCommandCC.d.ts.map +1 -0
- package/build/esm/cc/MultiCommandCC.js +206 -0
- package/build/esm/cc/MultiCommandCC.js.map +1 -0
- package/build/esm/cc/MultilevelSensorCC.d.ts +185 -0
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -0
- package/build/esm/cc/MultilevelSensorCC.js +872 -0
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -0
- package/build/esm/cc/MultilevelSwitchCC.d.ts +357 -0
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/MultilevelSwitchCC.js +935 -0
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -0
- package/build/esm/cc/NoOperationCC.d.ts +9 -0
- package/build/esm/cc/NoOperationCC.d.ts.map +1 -0
- package/build/esm/cc/NoOperationCC.js +92 -0
- package/build/esm/cc/NoOperationCC.js.map +1 -0
- package/build/esm/cc/NodeNamingCC.d.ts +118 -0
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -0
- package/build/esm/cc/NodeNamingCC.js +464 -0
- package/build/esm/cc/NodeNamingCC.js.map +1 -0
- package/build/esm/cc/NotificationCC.d.ts +479 -0
- package/build/esm/cc/NotificationCC.d.ts.map +1 -0
- package/build/esm/cc/NotificationCC.js +1481 -0
- package/build/esm/cc/NotificationCC.js.map +1 -0
- package/build/esm/cc/PowerlevelCC.d.ts +82 -0
- package/build/esm/cc/PowerlevelCC.d.ts.map +1 -0
- package/build/esm/cc/PowerlevelCC.js +611 -0
- package/build/esm/cc/PowerlevelCC.js.map +1 -0
- package/build/esm/cc/ProtectionCC.d.ts +325 -0
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -0
- package/build/esm/cc/ProtectionCC.js +830 -0
- package/build/esm/cc/ProtectionCC.js.map +1 -0
- package/build/esm/cc/SceneActivationCC.d.ts +89 -0
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneActivationCC.js +223 -0
- package/build/esm/cc/SceneActivationCC.js.map +1 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +120 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.js +462 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -0
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts +129 -0
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneControllerConfigurationCC.js +534 -0
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -0
- package/build/esm/cc/ScheduleEntryLockCC.d.ts +434 -0
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -0
- package/build/esm/cc/ScheduleEntryLockCC.js +2065 -0
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -0
- package/build/esm/cc/Security2CC.d.ts +251 -0
- package/build/esm/cc/Security2CC.d.ts.map +1 -0
- package/build/esm/cc/Security2CC.js +2041 -0
- package/build/esm/cc/Security2CC.js.map +1 -0
- package/build/esm/cc/SecurityCC.d.ts +128 -0
- package/build/esm/cc/SecurityCC.d.ts.map +1 -0
- package/build/esm/cc/SecurityCC.js +989 -0
- package/build/esm/cc/SecurityCC.js.map +1 -0
- package/build/esm/cc/SoundSwitchCC.d.ts +232 -0
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/SoundSwitchCC.js +796 -0
- package/build/esm/cc/SoundSwitchCC.js.map +1 -0
- package/build/esm/cc/SupervisionCC.d.ts +104 -0
- package/build/esm/cc/SupervisionCC.d.ts.map +1 -0
- package/build/esm/cc/SupervisionCC.js +396 -0
- package/build/esm/cc/SupervisionCC.js.map +1 -0
- package/build/esm/cc/ThermostatFanModeCC.d.ts +141 -0
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatFanModeCC.js +463 -0
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -0
- package/build/esm/cc/ThermostatFanStateCC.d.ts +60 -0
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatFanStateCC.js +212 -0
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -0
- package/build/esm/cc/ThermostatModeCC.d.ts +150 -0
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatModeCC.js +530 -0
- package/build/esm/cc/ThermostatModeCC.js.map +1 -0
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts +61 -0
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatOperatingStateCC.js +208 -0
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -0
- package/build/esm/cc/ThermostatSetbackCC.d.ts +46 -0
- package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatSetbackCC.js +333 -0
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -0
- package/build/esm/cc/ThermostatSetpointCC.d.ts +197 -0
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatSetpointCC.js +786 -0
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -0
- package/build/esm/cc/TimeCC.d.ts +88 -0
- package/build/esm/cc/TimeCC.d.ts.map +1 -0
- package/build/esm/cc/TimeCC.js +590 -0
- package/build/esm/cc/TimeCC.js.map +1 -0
- package/build/esm/cc/TimeParametersCC.d.ts +72 -0
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -0
- package/build/esm/cc/TimeParametersCC.js +385 -0
- package/build/esm/cc/TimeParametersCC.js.map +1 -0
- package/build/esm/cc/TransportServiceCC.d.ts +107 -0
- package/build/esm/cc/TransportServiceCC.d.ts.map +1 -0
- package/build/esm/cc/TransportServiceCC.js +523 -0
- package/build/esm/cc/TransportServiceCC.js.map +1 -0
- package/build/esm/cc/UserCodeCC.d.ts +683 -0
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -0
- package/build/esm/cc/UserCodeCC.js +1933 -0
- package/build/esm/cc/UserCodeCC.js.map +1 -0
- package/build/esm/cc/VersionCC.d.ts +469 -0
- package/build/esm/cc/VersionCC.d.ts.map +1 -0
- package/build/esm/cc/VersionCC.js +971 -0
- package/build/esm/cc/VersionCC.js.map +1 -0
- package/build/esm/cc/WakeUpCC.d.ts +150 -0
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -0
- package/build/esm/cc/WakeUpCC.js +568 -0
- package/build/esm/cc/WakeUpCC.js.map +1 -0
- package/build/esm/cc/WindowCoveringCC.d.ts +315 -0
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -0
- package/build/esm/cc/WindowCoveringCC.js +905 -0
- package/build/esm/cc/WindowCoveringCC.js.map +1 -0
- package/build/esm/cc/ZWaveLongRangeCC.d.ts +4 -0
- package/build/esm/cc/ZWaveLongRangeCC.d.ts.map +1 -0
- package/build/esm/cc/ZWaveLongRangeCC.js +57 -0
- package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -0
- package/build/esm/cc/ZWavePlusCC.d.ts +163 -0
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -0
- package/build/esm/cc/ZWavePlusCC.js +328 -0
- package/build/esm/cc/ZWavePlusCC.js.map +1 -0
- package/build/esm/cc/ZWaveProtocolCC.d.ts +344 -0
- package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -0
- package/build/esm/cc/ZWaveProtocolCC.js +1520 -0
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -0
- package/build/esm/cc/index.d.ts +132 -0
- package/build/esm/cc/index.d.ts.map +1 -0
- package/build/esm/cc/index.js +71 -0
- package/build/esm/cc/index.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +64 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.js +79 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +489 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -0
- package/build/esm/index.d.ts +15 -0
- package/build/esm/index.d.ts.map +1 -0
- package/build/esm/index.js +14 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/index_safe.d.ts +3 -0
- package/build/esm/index_safe.d.ts.map +1 -0
- package/build/esm/index_safe.js +4 -0
- package/build/esm/index_safe.js.map +1 -0
- package/build/esm/lib/API.d.ts +271 -0
- package/build/esm/lib/API.d.ts.map +1 -0
- package/build/esm/lib/API.js +448 -0
- package/build/esm/lib/API.js.map +1 -0
- package/build/esm/lib/CommandClass.d.ts +234 -0
- package/build/esm/lib/CommandClass.d.ts.map +1 -0
- package/build/esm/lib/CommandClass.js +781 -0
- package/build/esm/lib/CommandClass.js.map +1 -0
- package/build/esm/lib/CommandClassDecorators.d.ts +108 -0
- package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -0
- package/build/esm/lib/CommandClassDecorators.js +229 -0
- package/build/esm/lib/CommandClassDecorators.js.map +1 -0
- package/build/esm/lib/EncapsulatingCommandClass.d.ts +22 -0
- package/build/esm/lib/EncapsulatingCommandClass.d.ts.map +1 -0
- package/build/esm/lib/EncapsulatingCommandClass.js +56 -0
- package/build/esm/lib/EncapsulatingCommandClass.js.map +1 -0
- package/build/esm/lib/ICommandClassContainer.d.ts +2 -0
- package/build/esm/lib/ICommandClassContainer.d.ts.map +1 -0
- package/build/esm/lib/ICommandClassContainer.js +2 -0
- package/build/esm/lib/ICommandClassContainer.js.map +1 -0
- package/build/esm/lib/NotificationEventPayload.d.ts +10 -0
- package/build/esm/lib/NotificationEventPayload.d.ts.map +1 -0
- package/build/esm/lib/NotificationEventPayload.js +7 -0
- package/build/esm/lib/NotificationEventPayload.js.map +1 -0
- package/build/esm/lib/Security2/Extension.d.ts +106 -0
- package/build/esm/lib/Security2/Extension.d.ts.map +1 -0
- package/build/esm/lib/Security2/Extension.js +380 -0
- package/build/esm/lib/Security2/Extension.js.map +1 -0
- package/build/esm/lib/Security2/shared.d.ts +37 -0
- package/build/esm/lib/Security2/shared.d.ts.map +1 -0
- package/build/esm/lib/Security2/shared.js +40 -0
- package/build/esm/lib/Security2/shared.js.map +1 -0
- package/build/esm/lib/SetValueResult.d.ts +55 -0
- package/build/esm/lib/SetValueResult.d.ts.map +1 -0
- package/build/esm/lib/SetValueResult.js +53 -0
- package/build/esm/lib/SetValueResult.js.map +1 -0
- package/build/esm/lib/Values.d.ts +223 -0
- package/build/esm/lib/Values.d.ts.map +1 -0
- package/build/esm/lib/Values.js +169 -0
- package/build/esm/lib/Values.js.map +1 -0
- package/build/esm/lib/_Types.d.ts +1461 -0
- package/build/esm/lib/_Types.d.ts.map +1 -0
- package/build/esm/lib/_Types.js +1432 -0
- package/build/esm/lib/_Types.js.map +1 -0
- package/build/esm/lib/serializers.d.ts +34 -0
- package/build/esm/lib/serializers.d.ts.map +1 -0
- package/build/esm/lib/serializers.js +98 -0
- package/build/esm/lib/serializers.js.map +1 -0
- package/build/esm/lib/utils.d.ts +17 -0
- package/build/esm/lib/utils.d.ts.map +1 -0
- package/build/esm/lib/utils.js +847 -0
- package/build/esm/lib/utils.js.map +1 -0
- package/build/esm/package.json +3 -0
- package/package.json +28 -23
- package/build/cc/AlarmSensorCC.d.ts +0 -194
- package/build/cc/AlarmSensorCC.d.ts.map +0 -1
- package/build/cc/AlarmSensorCC.js +0 -395
- package/build/cc/AlarmSensorCC.js.map +0 -1
- package/build/cc/AssociationCC.d.ts +0 -253
- package/build/cc/AssociationCC.d.ts.map +0 -1
- package/build/cc/AssociationCC.js +0 -732
- package/build/cc/AssociationCC.js.map +0 -1
- package/build/cc/AssociationGroupInfoCC.d.ts +0 -230
- package/build/cc/AssociationGroupInfoCC.d.ts.map +0 -1
- package/build/cc/AssociationGroupInfoCC.js +0 -772
- package/build/cc/AssociationGroupInfoCC.js.map +0 -1
- package/build/cc/BarrierOperatorCC.d.ts +0 -243
- package/build/cc/BarrierOperatorCC.d.ts.map +0 -1
- package/build/cc/BarrierOperatorCC.js +0 -613
- package/build/cc/BarrierOperatorCC.js.map +0 -1
- package/build/cc/BasicCC.d.ts +0 -191
- package/build/cc/BasicCC.d.ts.map +0 -1
- package/build/cc/BasicCC.js +0 -393
- package/build/cc/BasicCC.js.map +0 -1
- package/build/cc/BatteryCC.d.ts +0 -406
- package/build/cc/BatteryCC.d.ts.map +0 -1
- package/build/cc/BatteryCC.js +0 -516
- package/build/cc/BatteryCC.js.map +0 -1
- package/build/cc/BinarySensorCC.d.ts +0 -122
- package/build/cc/BinarySensorCC.d.ts.map +0 -1
- package/build/cc/BinarySensorCC.js +0 -420
- package/build/cc/BinarySensorCC.js.map +0 -1
- package/build/cc/BinarySwitchCC.d.ts +0 -139
- package/build/cc/BinarySwitchCC.d.ts.map +0 -1
- package/build/cc/BinarySwitchCC.js +0 -365
- package/build/cc/BinarySwitchCC.js.map +0 -1
- package/build/cc/CRC16CC.d.ts +0 -29
- package/build/cc/CRC16CC.d.ts.map +0 -1
- package/build/cc/CRC16CC.js +0 -126
- package/build/cc/CRC16CC.js.map +0 -1
- package/build/cc/CentralSceneCC.d.ts +0 -210
- package/build/cc/CentralSceneCC.d.ts.map +0 -1
- package/build/cc/CentralSceneCC.js +0 -453
- package/build/cc/CentralSceneCC.js.map +0 -1
- package/build/cc/ClimateControlScheduleCC.d.ts +0 -177
- package/build/cc/ClimateControlScheduleCC.d.ts.map +0 -1
- package/build/cc/ClimateControlScheduleCC.js +0 -469
- package/build/cc/ClimateControlScheduleCC.js.map +0 -1
- package/build/cc/ClockCC.d.ts +0 -47
- package/build/cc/ClockCC.d.ts.map +0 -1
- package/build/cc/ClockCC.js +0 -208
- package/build/cc/ClockCC.js.map +0 -1
- package/build/cc/ColorSwitchCC.d.ts +0 -339
- package/build/cc/ColorSwitchCC.d.ts.map +0 -1
- package/build/cc/ColorSwitchCC.js +0 -1152
- package/build/cc/ColorSwitchCC.js.map +0 -1
- package/build/cc/ConfigurationCC.d.ts +0 -396
- package/build/cc/ConfigurationCC.d.ts.map +0 -1
- package/build/cc/ConfigurationCC.js +0 -2458
- package/build/cc/ConfigurationCC.js.map +0 -1
- package/build/cc/DeviceResetLocallyCC.d.ts +0 -17
- package/build/cc/DeviceResetLocallyCC.d.ts.map +0 -1
- package/build/cc/DeviceResetLocallyCC.js +0 -76
- package/build/cc/DeviceResetLocallyCC.js.map +0 -1
- package/build/cc/DoorLockCC.d.ts +0 -837
- package/build/cc/DoorLockCC.d.ts.map +0 -1
- package/build/cc/DoorLockCC.js +0 -1273
- package/build/cc/DoorLockCC.js.map +0 -1
- package/build/cc/DoorLockLoggingCC.d.ts +0 -77
- package/build/cc/DoorLockLoggingCC.d.ts.map +0 -1
- package/build/cc/DoorLockLoggingCC.js +0 -319
- package/build/cc/DoorLockLoggingCC.js.map +0 -1
- package/build/cc/EnergyProductionCC.d.ts +0 -77
- package/build/cc/EnergyProductionCC.d.ts.map +0 -1
- package/build/cc/EnergyProductionCC.js +0 -216
- package/build/cc/EnergyProductionCC.js.map +0 -1
- package/build/cc/EntryControlCC.d.ts +0 -231
- package/build/cc/EntryControlCC.d.ts.map +0 -1
- package/build/cc/EntryControlCC.js +0 -607
- package/build/cc/EntryControlCC.js.map +0 -1
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts +0 -359
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts.map +0 -1
- package/build/cc/FirmwareUpdateMetaDataCC.js +0 -1145
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +0 -1
- package/build/cc/HailCC.d.ts +0 -6
- package/build/cc/HailCC.d.ts.map +0 -1
- package/build/cc/HailCC.js +0 -24
- package/build/cc/HailCC.js.map +0 -1
- package/build/cc/HumidityControlModeCC.d.ts +0 -111
- package/build/cc/HumidityControlModeCC.d.ts.map +0 -1
- package/build/cc/HumidityControlModeCC.js +0 -308
- package/build/cc/HumidityControlModeCC.js.map +0 -1
- package/build/cc/HumidityControlOperatingStateCC.d.ts +0 -60
- package/build/cc/HumidityControlOperatingStateCC.d.ts.map +0 -1
- package/build/cc/HumidityControlOperatingStateCC.js +0 -140
- package/build/cc/HumidityControlOperatingStateCC.js.map +0 -1
- package/build/cc/HumidityControlSetpointCC.d.ts +0 -209
- package/build/cc/HumidityControlSetpointCC.d.ts.map +0 -1
- package/build/cc/HumidityControlSetpointCC.js +0 -648
- package/build/cc/HumidityControlSetpointCC.js.map +0 -1
- package/build/cc/InclusionControllerCC.d.ts +0 -42
- package/build/cc/InclusionControllerCC.d.ts.map +0 -1
- package/build/cc/InclusionControllerCC.js +0 -136
- package/build/cc/InclusionControllerCC.js.map +0 -1
- package/build/cc/IndicatorCC.d.ts +0 -338
- package/build/cc/IndicatorCC.d.ts.map +0 -1
- package/build/cc/IndicatorCC.js +0 -1320
- package/build/cc/IndicatorCC.js.map +0 -1
- package/build/cc/IrrigationCC.d.ts +0 -1496
- package/build/cc/IrrigationCC.d.ts.map +0 -1
- package/build/cc/IrrigationCC.js +0 -2041
- package/build/cc/IrrigationCC.js.map +0 -1
- package/build/cc/LanguageCC.d.ts +0 -101
- package/build/cc/LanguageCC.d.ts.map +0 -1
- package/build/cc/LanguageCC.js +0 -246
- package/build/cc/LanguageCC.js.map +0 -1
- package/build/cc/LockCC.d.ts +0 -73
- package/build/cc/LockCC.d.ts.map +0 -1
- package/build/cc/LockCC.js +0 -200
- package/build/cc/LockCC.js.map +0 -1
- package/build/cc/ManufacturerProprietaryCC.d.ts +0 -32
- package/build/cc/ManufacturerProprietaryCC.d.ts.map +0 -1
- package/build/cc/ManufacturerProprietaryCC.js +0 -204
- package/build/cc/ManufacturerProprietaryCC.js.map +0 -1
- package/build/cc/ManufacturerSpecificCC.d.ts +0 -171
- package/build/cc/ManufacturerSpecificCC.d.ts.map +0 -1
- package/build/cc/ManufacturerSpecificCC.js +0 -318
- package/build/cc/ManufacturerSpecificCC.js.map +0 -1
- package/build/cc/MeterCC.d.ts +0 -318
- package/build/cc/MeterCC.d.ts.map +0 -1
- package/build/cc/MeterCC.js +0 -1312
- package/build/cc/MeterCC.js.map +0 -1
- package/build/cc/MultiChannelAssociationCC.d.ts +0 -241
- package/build/cc/MultiChannelAssociationCC.d.ts.map +0 -1
- package/build/cc/MultiChannelAssociationCC.js +0 -1007
- package/build/cc/MultiChannelAssociationCC.js.map +0 -1
- package/build/cc/MultiChannelCC.d.ts +0 -394
- package/build/cc/MultiChannelCC.d.ts.map +0 -1
- package/build/cc/MultiChannelCC.js +0 -1130
- package/build/cc/MultiChannelCC.js.map +0 -1
- package/build/cc/MultiCommandCC.d.ts +0 -27
- package/build/cc/MultiCommandCC.d.ts.map +0 -1
- package/build/cc/MultiCommandCC.js +0 -145
- package/build/cc/MultiCommandCC.js.map +0 -1
- package/build/cc/MultilevelSensorCC.d.ts +0 -185
- package/build/cc/MultilevelSensorCC.d.ts.map +0 -1
- package/build/cc/MultilevelSensorCC.js +0 -756
- package/build/cc/MultilevelSensorCC.js.map +0 -1
- package/build/cc/MultilevelSwitchCC.d.ts +0 -357
- package/build/cc/MultilevelSwitchCC.d.ts.map +0 -1
- package/build/cc/MultilevelSwitchCC.js +0 -813
- package/build/cc/MultilevelSwitchCC.js.map +0 -1
- package/build/cc/NoOperationCC.d.ts +0 -9
- package/build/cc/NoOperationCC.d.ts.map +0 -1
- package/build/cc/NoOperationCC.js +0 -42
- package/build/cc/NoOperationCC.js.map +0 -1
- package/build/cc/NodeNamingCC.d.ts +0 -118
- package/build/cc/NodeNamingCC.d.ts.map +0 -1
- package/build/cc/NodeNamingCC.js +0 -348
- package/build/cc/NodeNamingCC.js.map +0 -1
- package/build/cc/NotificationCC.d.ts +0 -479
- package/build/cc/NotificationCC.d.ts.map +0 -1
- package/build/cc/NotificationCC.js +0 -1379
- package/build/cc/NotificationCC.js.map +0 -1
- package/build/cc/PowerlevelCC.d.ts +0 -82
- package/build/cc/PowerlevelCC.d.ts.map +0 -1
- package/build/cc/PowerlevelCC.js +0 -488
- package/build/cc/PowerlevelCC.js.map +0 -1
- package/build/cc/ProtectionCC.d.ts +0 -325
- package/build/cc/ProtectionCC.d.ts.map +0 -1
- package/build/cc/ProtectionCC.js +0 -672
- package/build/cc/ProtectionCC.js.map +0 -1
- package/build/cc/SceneActivationCC.d.ts +0 -89
- package/build/cc/SceneActivationCC.d.ts.map +0 -1
- package/build/cc/SceneActivationCC.js +0 -169
- package/build/cc/SceneActivationCC.js.map +0 -1
- package/build/cc/SceneActuatorConfigurationCC.d.ts +0 -120
- package/build/cc/SceneActuatorConfigurationCC.d.ts.map +0 -1
- package/build/cc/SceneActuatorConfigurationCC.js +0 -377
- package/build/cc/SceneActuatorConfigurationCC.js.map +0 -1
- package/build/cc/SceneControllerConfigurationCC.d.ts +0 -129
- package/build/cc/SceneControllerConfigurationCC.d.ts.map +0 -1
- package/build/cc/SceneControllerConfigurationCC.js +0 -449
- package/build/cc/SceneControllerConfigurationCC.js.map +0 -1
- package/build/cc/ScheduleEntryLockCC.d.ts +0 -434
- package/build/cc/ScheduleEntryLockCC.d.ts.map +0 -1
- package/build/cc/ScheduleEntryLockCC.js +0 -1829
- package/build/cc/ScheduleEntryLockCC.js.map +0 -1
- package/build/cc/Security2CC.d.ts +0 -251
- package/build/cc/Security2CC.d.ts.map +0 -1
- package/build/cc/Security2CC.js +0 -1817
- package/build/cc/Security2CC.js.map +0 -1
- package/build/cc/SecurityCC.d.ts +0 -128
- package/build/cc/SecurityCC.d.ts.map +0 -1
- package/build/cc/SecurityCC.js +0 -803
- package/build/cc/SecurityCC.js.map +0 -1
- package/build/cc/SoundSwitchCC.d.ts +0 -232
- package/build/cc/SoundSwitchCC.d.ts.map +0 -1
- package/build/cc/SoundSwitchCC.js +0 -636
- package/build/cc/SoundSwitchCC.js.map +0 -1
- package/build/cc/SupervisionCC.d.ts +0 -104
- package/build/cc/SupervisionCC.d.ts.map +0 -1
- package/build/cc/SupervisionCC.js +0 -322
- package/build/cc/SupervisionCC.js.map +0 -1
- package/build/cc/ThermostatFanModeCC.d.ts +0 -141
- package/build/cc/ThermostatFanModeCC.d.ts.map +0 -1
- package/build/cc/ThermostatFanModeCC.js +0 -362
- package/build/cc/ThermostatFanModeCC.js.map +0 -1
- package/build/cc/ThermostatFanStateCC.d.ts +0 -60
- package/build/cc/ThermostatFanStateCC.d.ts.map +0 -1
- package/build/cc/ThermostatFanStateCC.js +0 -142
- package/build/cc/ThermostatFanStateCC.js.map +0 -1
- package/build/cc/ThermostatModeCC.d.ts +0 -150
- package/build/cc/ThermostatModeCC.d.ts.map +0 -1
- package/build/cc/ThermostatModeCC.js +0 -429
- package/build/cc/ThermostatModeCC.js.map +0 -1
- package/build/cc/ThermostatOperatingStateCC.d.ts +0 -61
- package/build/cc/ThermostatOperatingStateCC.d.ts.map +0 -1
- package/build/cc/ThermostatOperatingStateCC.js +0 -138
- package/build/cc/ThermostatOperatingStateCC.js.map +0 -1
- package/build/cc/ThermostatSetbackCC.d.ts +0 -46
- package/build/cc/ThermostatSetbackCC.d.ts.map +0 -1
- package/build/cc/ThermostatSetbackCC.js +0 -247
- package/build/cc/ThermostatSetbackCC.js.map +0 -1
- package/build/cc/ThermostatSetpointCC.d.ts +0 -197
- package/build/cc/ThermostatSetpointCC.d.ts.map +0 -1
- package/build/cc/ThermostatSetpointCC.js +0 -658
- package/build/cc/ThermostatSetpointCC.js.map +0 -1
- package/build/cc/TimeCC.d.ts +0 -88
- package/build/cc/TimeCC.d.ts.map +0 -1
- package/build/cc/TimeCC.js +0 -454
- package/build/cc/TimeCC.js.map +0 -1
- package/build/cc/TimeParametersCC.d.ts +0 -72
- package/build/cc/TimeParametersCC.d.ts.map +0 -1
- package/build/cc/TimeParametersCC.js +0 -303
- package/build/cc/TimeParametersCC.js.map +0 -1
- package/build/cc/TransportServiceCC.d.ts +0 -107
- package/build/cc/TransportServiceCC.d.ts.map +0 -1
- package/build/cc/TransportServiceCC.js +0 -426
- package/build/cc/TransportServiceCC.js.map +0 -1
- package/build/cc/UserCodeCC.d.ts +0 -683
- package/build/cc/UserCodeCC.d.ts.map +0 -1
- package/build/cc/UserCodeCC.js +0 -1699
- package/build/cc/UserCodeCC.js.map +0 -1
- package/build/cc/VersionCC.d.ts +0 -469
- package/build/cc/VersionCC.d.ts.map +0 -1
- package/build/cc/VersionCC.js +0 -865
- package/build/cc/VersionCC.js.map +0 -1
- package/build/cc/WakeUpCC.d.ts +0 -150
- package/build/cc/WakeUpCC.d.ts.map +0 -1
- package/build/cc/WakeUpCC.js +0 -441
- package/build/cc/WakeUpCC.js.map +0 -1
- package/build/cc/WindowCoveringCC.d.ts +0 -315
- package/build/cc/WindowCoveringCC.d.ts.map +0 -1
- package/build/cc/WindowCoveringCC.js +0 -783
- package/build/cc/WindowCoveringCC.js.map +0 -1
- package/build/cc/ZWaveLongRangeCC.d.ts +0 -4
- package/build/cc/ZWaveLongRangeCC.d.ts.map +0 -1
- package/build/cc/ZWaveLongRangeCC.js +0 -20
- package/build/cc/ZWaveLongRangeCC.js.map +0 -1
- package/build/cc/ZWavePlusCC.d.ts +0 -163
- package/build/cc/ZWavePlusCC.d.ts.map +0 -1
- package/build/cc/ZWavePlusCC.js +0 -270
- package/build/cc/ZWavePlusCC.js.map +0 -1
- package/build/cc/ZWaveProtocolCC.d.ts +0 -344
- package/build/cc/ZWaveProtocolCC.d.ts.map +0 -1
- package/build/cc/ZWaveProtocolCC.js +0 -1033
- package/build/cc/ZWaveProtocolCC.js.map +0 -1
- package/build/cc/index.d.ts +0 -132
- package/build/cc/index.d.ts.map +0 -1
- package/build/cc/index.js +0 -627
- package/build/cc/index.js.map +0 -1
- package/build/cc/manufacturerProprietary/Decorators.d.ts +0 -64
- package/build/cc/manufacturerProprietary/Decorators.d.ts.map +0 -1
- package/build/cc/manufacturerProprietary/Decorators.js +0 -83
- package/build/cc/manufacturerProprietary/Decorators.js.map +0 -1
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts +0 -79
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts.map +0 -1
- package/build/cc/manufacturerProprietary/FibaroCC.js +0 -392
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +0 -1
- package/build/index.d.ts +0 -15
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -52
- package/build/index.js.map +0 -1
- package/build/index_safe.d.ts +0 -3
- package/build/index_safe.d.ts.map +0 -1
- package/build/index_safe.js +0 -20
- package/build/index_safe.js.map +0 -1
- package/build/lib/API.d.ts +0 -271
- package/build/lib/API.d.ts.map +0 -1
- package/build/lib/API.js +0 -458
- package/build/lib/API.js.map +0 -1
- package/build/lib/CommandClass.d.ts +0 -234
- package/build/lib/CommandClass.d.ts.map +0 -1
- package/build/lib/CommandClass.js +0 -788
- package/build/lib/CommandClass.js.map +0 -1
- package/build/lib/CommandClassDecorators.d.ts +0 -112
- package/build/lib/CommandClassDecorators.d.ts.map +0 -1
- package/build/lib/CommandClassDecorators.js +0 -243
- package/build/lib/CommandClassDecorators.js.map +0 -1
- package/build/lib/EncapsulatingCommandClass.d.ts +0 -22
- package/build/lib/EncapsulatingCommandClass.d.ts.map +0 -1
- package/build/lib/EncapsulatingCommandClass.js +0 -61
- package/build/lib/EncapsulatingCommandClass.js.map +0 -1
- package/build/lib/ICommandClassContainer.d.ts.map +0 -1
- package/build/lib/ICommandClassContainer.js +0 -3
- package/build/lib/ICommandClassContainer.js.map +0 -1
- package/build/lib/NotificationEventPayload.d.ts +0 -10
- package/build/lib/NotificationEventPayload.d.ts.map +0 -1
- package/build/lib/NotificationEventPayload.js +0 -10
- package/build/lib/NotificationEventPayload.js.map +0 -1
- package/build/lib/Security2/Extension.d.ts +0 -106
- package/build/lib/Security2/Extension.d.ts.map +0 -1
- package/build/lib/Security2/Extension.js +0 -303
- package/build/lib/Security2/Extension.js.map +0 -1
- package/build/lib/Security2/shared.d.ts.map +0 -1
- package/build/lib/Security2/shared.js +0 -43
- package/build/lib/Security2/shared.js.map +0 -1
- package/build/lib/SetValueResult.d.ts.map +0 -1
- package/build/lib/SetValueResult.js +0 -60
- package/build/lib/SetValueResult.js.map +0 -1
- package/build/lib/Values.d.ts +0 -223
- package/build/lib/Values.d.ts.map +0 -1
- package/build/lib/Values.js +0 -172
- package/build/lib/Values.js.map +0 -1
- package/build/lib/_Types.d.ts.map +0 -1
- package/build/lib/_Types.js +0 -1443
- package/build/lib/_Types.js.map +0 -1
- package/build/lib/serializers.d.ts +0 -34
- package/build/lib/serializers.d.ts.map +0 -1
- package/build/lib/serializers.js +0 -107
- package/build/lib/serializers.js.map +0 -1
- package/build/lib/utils.d.ts +0 -17
- package/build/lib/utils.d.ts.map +0 -1
- package/build/lib/utils.js +0 -860
- package/build/lib/utils.js.map +0 -1
- /package/build/{lib → cjs/lib}/ICommandClassContainer.d.ts +0 -0
- /package/build/{lib → cjs/lib}/Security2/shared.d.ts +0 -0
- /package/build/{lib → cjs/lib}/SetValueResult.d.ts +0 -0
- /package/build/{lib → cjs/lib}/_Types.d.ts +0 -0
|
@@ -0,0 +1,2043 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var ScheduleEntryLockCC_exports = {};
|
|
20
|
+
__export(ScheduleEntryLockCC_exports, {
|
|
21
|
+
ScheduleEntryLockCC: () => ScheduleEntryLockCC,
|
|
22
|
+
ScheduleEntryLockCCAPI: () => ScheduleEntryLockCCAPI,
|
|
23
|
+
ScheduleEntryLockCCDailyRepeatingScheduleGet: () => ScheduleEntryLockCCDailyRepeatingScheduleGet,
|
|
24
|
+
ScheduleEntryLockCCDailyRepeatingScheduleReport: () => ScheduleEntryLockCCDailyRepeatingScheduleReport,
|
|
25
|
+
ScheduleEntryLockCCDailyRepeatingScheduleSet: () => ScheduleEntryLockCCDailyRepeatingScheduleSet,
|
|
26
|
+
ScheduleEntryLockCCEnableAllSet: () => ScheduleEntryLockCCEnableAllSet,
|
|
27
|
+
ScheduleEntryLockCCEnableSet: () => ScheduleEntryLockCCEnableSet,
|
|
28
|
+
ScheduleEntryLockCCSupportedGet: () => ScheduleEntryLockCCSupportedGet,
|
|
29
|
+
ScheduleEntryLockCCSupportedReport: () => ScheduleEntryLockCCSupportedReport,
|
|
30
|
+
ScheduleEntryLockCCTimeOffsetGet: () => ScheduleEntryLockCCTimeOffsetGet,
|
|
31
|
+
ScheduleEntryLockCCTimeOffsetReport: () => ScheduleEntryLockCCTimeOffsetReport,
|
|
32
|
+
ScheduleEntryLockCCTimeOffsetSet: () => ScheduleEntryLockCCTimeOffsetSet,
|
|
33
|
+
ScheduleEntryLockCCValues: () => ScheduleEntryLockCCValues,
|
|
34
|
+
ScheduleEntryLockCCWeekDayScheduleGet: () => ScheduleEntryLockCCWeekDayScheduleGet,
|
|
35
|
+
ScheduleEntryLockCCWeekDayScheduleReport: () => ScheduleEntryLockCCWeekDayScheduleReport,
|
|
36
|
+
ScheduleEntryLockCCWeekDayScheduleSet: () => ScheduleEntryLockCCWeekDayScheduleSet,
|
|
37
|
+
ScheduleEntryLockCCYearDayScheduleGet: () => ScheduleEntryLockCCYearDayScheduleGet,
|
|
38
|
+
ScheduleEntryLockCCYearDayScheduleReport: () => ScheduleEntryLockCCYearDayScheduleReport,
|
|
39
|
+
ScheduleEntryLockCCYearDayScheduleSet: () => ScheduleEntryLockCCYearDayScheduleSet
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(ScheduleEntryLockCC_exports);
|
|
42
|
+
var import_core = require("@zwave-js/core");
|
|
43
|
+
var import_shared = require("@zwave-js/shared");
|
|
44
|
+
var import_API = require("../lib/API.js");
|
|
45
|
+
var import_CommandClass = require("../lib/CommandClass.js");
|
|
46
|
+
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
47
|
+
var import_Values = require("../lib/Values.js");
|
|
48
|
+
var import_Types = require("../lib/_Types.js");
|
|
49
|
+
var import_serializers = require("../lib/serializers.js");
|
|
50
|
+
var import_UserCodeCC = require("./UserCodeCC.js");
|
|
51
|
+
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
52
|
+
function accept(f) {
|
|
53
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
54
|
+
return f;
|
|
55
|
+
}
|
|
56
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
57
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
58
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
59
|
+
var _, done = false;
|
|
60
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
61
|
+
var context = {};
|
|
62
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
63
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
64
|
+
context.addInitializer = function(f) {
|
|
65
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
66
|
+
extraInitializers.push(accept(f || null));
|
|
67
|
+
};
|
|
68
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
69
|
+
if (kind === "accessor") {
|
|
70
|
+
if (result === void 0) continue;
|
|
71
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
72
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
73
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
74
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
75
|
+
} else if (_ = accept(result)) {
|
|
76
|
+
if (kind === "field") initializers.unshift(_);
|
|
77
|
+
else descriptor[key] = _;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
81
|
+
done = true;
|
|
82
|
+
};
|
|
83
|
+
var __runInitializers = function(thisArg, initializers, value) {
|
|
84
|
+
var useValue = arguments.length > 2;
|
|
85
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
86
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
87
|
+
}
|
|
88
|
+
return useValue ? value : void 0;
|
|
89
|
+
};
|
|
90
|
+
function __assertType(argName, typeName, boundHasError) {
|
|
91
|
+
const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
|
|
92
|
+
if (boundHasError()) {
|
|
93
|
+
throw new ZWaveError2(typeName ? `${argName} is not a ${typeName}` : `${argName} has the wrong type`, ZWaveErrorCodes2.Argument_Invalid);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
const __assertType__boolean = ($o) => {
|
|
97
|
+
function _boolean($o2) {
|
|
98
|
+
return typeof $o2 !== "boolean" ? {} : null;
|
|
99
|
+
}
|
|
100
|
+
return _boolean($o);
|
|
101
|
+
};
|
|
102
|
+
const __assertType__optional_number = ($o) => {
|
|
103
|
+
function _number($o2) {
|
|
104
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
105
|
+
}
|
|
106
|
+
function optional__number($o2) {
|
|
107
|
+
if ($o2 !== void 0) {
|
|
108
|
+
const error = _number($o2);
|
|
109
|
+
if (error)
|
|
110
|
+
return error;
|
|
111
|
+
}
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
return optional__number($o);
|
|
115
|
+
};
|
|
116
|
+
const __assertType__ScheduleEntryLockSlotId = ($o) => {
|
|
117
|
+
function _number($o2) {
|
|
118
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
119
|
+
}
|
|
120
|
+
function _0($o2) {
|
|
121
|
+
if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
|
|
122
|
+
return {};
|
|
123
|
+
if ("userId" in $o2 && $o2["userId"] !== void 0) {
|
|
124
|
+
const error = _number($o2["userId"]);
|
|
125
|
+
if (error)
|
|
126
|
+
return error;
|
|
127
|
+
} else
|
|
128
|
+
return {};
|
|
129
|
+
if ("slotId" in $o2 && $o2["slotId"] !== void 0) {
|
|
130
|
+
const error = _number($o2["slotId"]);
|
|
131
|
+
if (error)
|
|
132
|
+
return error;
|
|
133
|
+
} else
|
|
134
|
+
return {};
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
return _0($o);
|
|
138
|
+
};
|
|
139
|
+
const __assertType__optional_ScheduleEntryLockWeekDaySchedule = ($o) => {
|
|
140
|
+
function su__2__3__4__5__6__7__8_eu($o2) {
|
|
141
|
+
return ![0, 1, 2, 3, 4, 5, 6].includes($o2) ? {} : null;
|
|
142
|
+
}
|
|
143
|
+
function _number($o2) {
|
|
144
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
145
|
+
}
|
|
146
|
+
function _0($o2) {
|
|
147
|
+
if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
|
|
148
|
+
return {};
|
|
149
|
+
if ("weekday" in $o2 && $o2["weekday"] !== void 0) {
|
|
150
|
+
const error = su__2__3__4__5__6__7__8_eu($o2["weekday"]);
|
|
151
|
+
if (error)
|
|
152
|
+
return error;
|
|
153
|
+
} else
|
|
154
|
+
return {};
|
|
155
|
+
if ("startHour" in $o2 && $o2["startHour"] !== void 0) {
|
|
156
|
+
const error = _number($o2["startHour"]);
|
|
157
|
+
if (error)
|
|
158
|
+
return error;
|
|
159
|
+
} else
|
|
160
|
+
return {};
|
|
161
|
+
if ("startMinute" in $o2 && $o2["startMinute"] !== void 0) {
|
|
162
|
+
const error = _number($o2["startMinute"]);
|
|
163
|
+
if (error)
|
|
164
|
+
return error;
|
|
165
|
+
} else
|
|
166
|
+
return {};
|
|
167
|
+
if ("stopHour" in $o2 && $o2["stopHour"] !== void 0) {
|
|
168
|
+
const error = _number($o2["stopHour"]);
|
|
169
|
+
if (error)
|
|
170
|
+
return error;
|
|
171
|
+
} else
|
|
172
|
+
return {};
|
|
173
|
+
if ("stopMinute" in $o2 && $o2["stopMinute"] !== void 0) {
|
|
174
|
+
const error = _number($o2["stopMinute"]);
|
|
175
|
+
if (error)
|
|
176
|
+
return error;
|
|
177
|
+
} else
|
|
178
|
+
return {};
|
|
179
|
+
return null;
|
|
180
|
+
}
|
|
181
|
+
function optional__0($o2) {
|
|
182
|
+
if ($o2 !== void 0) {
|
|
183
|
+
const error = _0($o2);
|
|
184
|
+
if (error)
|
|
185
|
+
return error;
|
|
186
|
+
}
|
|
187
|
+
return null;
|
|
188
|
+
}
|
|
189
|
+
return optional__0($o);
|
|
190
|
+
};
|
|
191
|
+
const __assertType__optional_ScheduleEntryLockYearDaySchedule = ($o) => {
|
|
192
|
+
function _number($o2) {
|
|
193
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
194
|
+
}
|
|
195
|
+
function _0($o2) {
|
|
196
|
+
if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
|
|
197
|
+
return {};
|
|
198
|
+
if ("startYear" in $o2 && $o2["startYear"] !== void 0) {
|
|
199
|
+
const error = _number($o2["startYear"]);
|
|
200
|
+
if (error)
|
|
201
|
+
return error;
|
|
202
|
+
} else
|
|
203
|
+
return {};
|
|
204
|
+
if ("startMonth" in $o2 && $o2["startMonth"] !== void 0) {
|
|
205
|
+
const error = _number($o2["startMonth"]);
|
|
206
|
+
if (error)
|
|
207
|
+
return error;
|
|
208
|
+
} else
|
|
209
|
+
return {};
|
|
210
|
+
if ("startDay" in $o2 && $o2["startDay"] !== void 0) {
|
|
211
|
+
const error = _number($o2["startDay"]);
|
|
212
|
+
if (error)
|
|
213
|
+
return error;
|
|
214
|
+
} else
|
|
215
|
+
return {};
|
|
216
|
+
if ("startHour" in $o2 && $o2["startHour"] !== void 0) {
|
|
217
|
+
const error = _number($o2["startHour"]);
|
|
218
|
+
if (error)
|
|
219
|
+
return error;
|
|
220
|
+
} else
|
|
221
|
+
return {};
|
|
222
|
+
if ("startMinute" in $o2 && $o2["startMinute"] !== void 0) {
|
|
223
|
+
const error = _number($o2["startMinute"]);
|
|
224
|
+
if (error)
|
|
225
|
+
return error;
|
|
226
|
+
} else
|
|
227
|
+
return {};
|
|
228
|
+
if ("stopYear" in $o2 && $o2["stopYear"] !== void 0) {
|
|
229
|
+
const error = _number($o2["stopYear"]);
|
|
230
|
+
if (error)
|
|
231
|
+
return error;
|
|
232
|
+
} else
|
|
233
|
+
return {};
|
|
234
|
+
if ("stopMonth" in $o2 && $o2["stopMonth"] !== void 0) {
|
|
235
|
+
const error = _number($o2["stopMonth"]);
|
|
236
|
+
if (error)
|
|
237
|
+
return error;
|
|
238
|
+
} else
|
|
239
|
+
return {};
|
|
240
|
+
if ("stopDay" in $o2 && $o2["stopDay"] !== void 0) {
|
|
241
|
+
const error = _number($o2["stopDay"]);
|
|
242
|
+
if (error)
|
|
243
|
+
return error;
|
|
244
|
+
} else
|
|
245
|
+
return {};
|
|
246
|
+
if ("stopHour" in $o2 && $o2["stopHour"] !== void 0) {
|
|
247
|
+
const error = _number($o2["stopHour"]);
|
|
248
|
+
if (error)
|
|
249
|
+
return error;
|
|
250
|
+
} else
|
|
251
|
+
return {};
|
|
252
|
+
if ("stopMinute" in $o2 && $o2["stopMinute"] !== void 0) {
|
|
253
|
+
const error = _number($o2["stopMinute"]);
|
|
254
|
+
if (error)
|
|
255
|
+
return error;
|
|
256
|
+
} else
|
|
257
|
+
return {};
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
function optional__0($o2) {
|
|
261
|
+
if ($o2 !== void 0) {
|
|
262
|
+
const error = _0($o2);
|
|
263
|
+
if (error)
|
|
264
|
+
return error;
|
|
265
|
+
}
|
|
266
|
+
return null;
|
|
267
|
+
}
|
|
268
|
+
return optional__0($o);
|
|
269
|
+
};
|
|
270
|
+
const __assertType__optional_ScheduleEntryLockDailyRepeatingSchedule = ($o) => {
|
|
271
|
+
function su__4__5__6__7__8__9__10_eu($o2) {
|
|
272
|
+
return ![0, 1, 2, 3, 4, 5, 6].includes($o2) ? {} : null;
|
|
273
|
+
}
|
|
274
|
+
function sa_su__4__5__6__7__8__9__10_eu_ea_3($o2) {
|
|
275
|
+
if (!Array.isArray($o2))
|
|
276
|
+
return {};
|
|
277
|
+
for (let i = 0; i < $o2.length; i++) {
|
|
278
|
+
const error = su__4__5__6__7__8__9__10_eu($o2[i]);
|
|
279
|
+
if (error)
|
|
280
|
+
return error;
|
|
281
|
+
}
|
|
282
|
+
return null;
|
|
283
|
+
}
|
|
284
|
+
function _number($o2) {
|
|
285
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
286
|
+
}
|
|
287
|
+
function _0($o2) {
|
|
288
|
+
if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
|
|
289
|
+
return {};
|
|
290
|
+
if ("weekdays" in $o2 && $o2["weekdays"] !== void 0) {
|
|
291
|
+
const error = sa_su__4__5__6__7__8__9__10_eu_ea_3($o2["weekdays"]);
|
|
292
|
+
if (error)
|
|
293
|
+
return error;
|
|
294
|
+
} else
|
|
295
|
+
return {};
|
|
296
|
+
if ("startHour" in $o2 && $o2["startHour"] !== void 0) {
|
|
297
|
+
const error = _number($o2["startHour"]);
|
|
298
|
+
if (error)
|
|
299
|
+
return error;
|
|
300
|
+
} else
|
|
301
|
+
return {};
|
|
302
|
+
if ("startMinute" in $o2 && $o2["startMinute"] !== void 0) {
|
|
303
|
+
const error = _number($o2["startMinute"]);
|
|
304
|
+
if (error)
|
|
305
|
+
return error;
|
|
306
|
+
} else
|
|
307
|
+
return {};
|
|
308
|
+
if ("durationHour" in $o2 && $o2["durationHour"] !== void 0) {
|
|
309
|
+
const error = _number($o2["durationHour"]);
|
|
310
|
+
if (error)
|
|
311
|
+
return error;
|
|
312
|
+
} else
|
|
313
|
+
return {};
|
|
314
|
+
if ("durationMinute" in $o2 && $o2["durationMinute"] !== void 0) {
|
|
315
|
+
const error = _number($o2["durationMinute"]);
|
|
316
|
+
if (error)
|
|
317
|
+
return error;
|
|
318
|
+
} else
|
|
319
|
+
return {};
|
|
320
|
+
return null;
|
|
321
|
+
}
|
|
322
|
+
function optional__0($o2) {
|
|
323
|
+
if ($o2 !== void 0) {
|
|
324
|
+
const error = _0($o2);
|
|
325
|
+
if (error)
|
|
326
|
+
return error;
|
|
327
|
+
}
|
|
328
|
+
return null;
|
|
329
|
+
}
|
|
330
|
+
return optional__0($o);
|
|
331
|
+
};
|
|
332
|
+
const __assertType__Timezone = ($o) => {
|
|
333
|
+
function _number($o2) {
|
|
334
|
+
return typeof $o2 !== "number" ? {} : null;
|
|
335
|
+
}
|
|
336
|
+
function _0($o2) {
|
|
337
|
+
if (typeof $o2 !== "object" || $o2 === null || Array.isArray($o2))
|
|
338
|
+
return {};
|
|
339
|
+
if ("standardOffset" in $o2 && $o2["standardOffset"] !== void 0) {
|
|
340
|
+
const error = _number($o2["standardOffset"]);
|
|
341
|
+
if (error)
|
|
342
|
+
return error;
|
|
343
|
+
} else
|
|
344
|
+
return {};
|
|
345
|
+
if ("dstOffset" in $o2 && $o2["dstOffset"] !== void 0) {
|
|
346
|
+
const error = _number($o2["dstOffset"]);
|
|
347
|
+
if (error)
|
|
348
|
+
return error;
|
|
349
|
+
} else
|
|
350
|
+
return {};
|
|
351
|
+
return null;
|
|
352
|
+
}
|
|
353
|
+
return _0($o);
|
|
354
|
+
};
|
|
355
|
+
const ScheduleEntryLockCCValues = Object.freeze({
|
|
356
|
+
...import_Values.V.defineStaticCCValues(import_core.CommandClasses["Schedule Entry Lock"], {
|
|
357
|
+
...import_Values.V.staticProperty("numWeekDaySlots", void 0, { internal: true }),
|
|
358
|
+
...import_Values.V.staticProperty("numYearDaySlots", void 0, { internal: true }),
|
|
359
|
+
...import_Values.V.staticProperty("numDailyRepeatingSlots", void 0, {
|
|
360
|
+
internal: true
|
|
361
|
+
})
|
|
362
|
+
}),
|
|
363
|
+
...import_Values.V.defineDynamicCCValues(import_core.CommandClasses["Schedule Entry Lock"], {
|
|
364
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("userEnabled", "userEnabled", (userId) => userId, ({ property, propertyKey }) => property === "userEnabled" && typeof propertyKey === "number", void 0, { internal: true }),
|
|
365
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("scheduleKind", "scheduleKind", (userId) => userId, ({ property, propertyKey }) => property === "scheduleKind" && typeof propertyKey === "number", void 0, { internal: true }),
|
|
366
|
+
...import_Values.V.dynamicPropertyAndKeyWithName("schedule", "schedule", (scheduleKind, userId, slotId) => toPropertyKey(scheduleKind, userId, slotId), ({ property, propertyKey }) => property === "schedule" && typeof propertyKey === "number", void 0, { internal: true })
|
|
367
|
+
})
|
|
368
|
+
});
|
|
369
|
+
function toPropertyKey(scheduleKind, userId, slotId) {
|
|
370
|
+
return scheduleKind << 16 | userId << 8 | slotId;
|
|
371
|
+
}
|
|
372
|
+
function persistSchedule(ctx, scheduleKind, userId, slotId, schedule) {
|
|
373
|
+
const scheduleValue = ScheduleEntryLockCCValues.schedule(scheduleKind, userId, slotId);
|
|
374
|
+
if (schedule != void 0) {
|
|
375
|
+
this.setValue(ctx, scheduleValue, schedule);
|
|
376
|
+
} else {
|
|
377
|
+
this.removeValue(ctx, scheduleValue);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
function setUserCodeScheduleKindCached(ctx, endpoint, userId, scheduleKind) {
|
|
381
|
+
ctx.getValueDB(endpoint.nodeId).setValue(ScheduleEntryLockCCValues.scheduleKind(userId).endpoint(endpoint.index), scheduleKind);
|
|
382
|
+
}
|
|
383
|
+
function setUserCodeScheduleEnabledCached(ctx, endpoint, userId, enabled) {
|
|
384
|
+
const setEnabled = (userId2) => {
|
|
385
|
+
ctx.getValueDB(endpoint.nodeId).setValue(ScheduleEntryLockCCValues.userEnabled(userId2).endpoint(endpoint.index), enabled);
|
|
386
|
+
};
|
|
387
|
+
if (userId == void 0) {
|
|
388
|
+
const numUsers = import_UserCodeCC.UserCodeCC.getSupportedUsersCached(ctx, endpoint) ?? 0;
|
|
389
|
+
for (let userId2 = 1; userId2 <= numUsers; userId2++) {
|
|
390
|
+
setEnabled(userId2);
|
|
391
|
+
}
|
|
392
|
+
} else {
|
|
393
|
+
setEnabled(userId);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
let ScheduleEntryLockCCAPI = (() => {
|
|
397
|
+
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_core.CommandClasses["Schedule Entry Lock"])];
|
|
398
|
+
let _classDescriptor;
|
|
399
|
+
let _classExtraInitializers = [];
|
|
400
|
+
let _classThis;
|
|
401
|
+
let _classSuper = import_API.CCAPI;
|
|
402
|
+
var ScheduleEntryLockCCAPI2 = class extends _classSuper {
|
|
403
|
+
static {
|
|
404
|
+
_classThis = this;
|
|
405
|
+
}
|
|
406
|
+
static {
|
|
407
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
408
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
409
|
+
ScheduleEntryLockCCAPI2 = _classThis = _classDescriptor.value;
|
|
410
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
411
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
412
|
+
}
|
|
413
|
+
supportsCommand(cmd) {
|
|
414
|
+
switch (cmd) {
|
|
415
|
+
case import_Types.ScheduleEntryLockCommand.EnableSet:
|
|
416
|
+
case import_Types.ScheduleEntryLockCommand.EnableAllSet:
|
|
417
|
+
case import_Types.ScheduleEntryLockCommand.WeekDayScheduleSet:
|
|
418
|
+
case import_Types.ScheduleEntryLockCommand.WeekDayScheduleGet:
|
|
419
|
+
case import_Types.ScheduleEntryLockCommand.YearDayScheduleSet:
|
|
420
|
+
case import_Types.ScheduleEntryLockCommand.YearDayScheduleGet:
|
|
421
|
+
case import_Types.ScheduleEntryLockCommand.SupportedGet:
|
|
422
|
+
return true;
|
|
423
|
+
// V1
|
|
424
|
+
case import_Types.ScheduleEntryLockCommand.TimeOffsetSet:
|
|
425
|
+
case import_Types.ScheduleEntryLockCommand.TimeOffsetGet:
|
|
426
|
+
return this.version >= 2;
|
|
427
|
+
case import_Types.ScheduleEntryLockCommand.DailyRepeatingScheduleSet:
|
|
428
|
+
case import_Types.ScheduleEntryLockCommand.DailyRepeatingScheduleGet:
|
|
429
|
+
return this.version >= 3;
|
|
430
|
+
}
|
|
431
|
+
return super.supportsCommand(cmd);
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Enables or disables schedules. If a user ID is given, that user's
|
|
435
|
+
* schedules will be enabled or disabled. If no user ID is given, all schedules
|
|
436
|
+
* will be affected.
|
|
437
|
+
*/
|
|
438
|
+
async setEnabled(enabled, userId) {
|
|
439
|
+
__assertType("enabled", "boolean", __assertType__boolean.bind(void 0, enabled));
|
|
440
|
+
__assertType("userId", "(optional) number", __assertType__optional_number.bind(void 0, userId));
|
|
441
|
+
let result;
|
|
442
|
+
if (userId != void 0) {
|
|
443
|
+
this.assertSupportsCommand(import_Types.ScheduleEntryLockCommand, import_Types.ScheduleEntryLockCommand.EnableSet);
|
|
444
|
+
const cc = new ScheduleEntryLockCCEnableSet({
|
|
445
|
+
nodeId: this.endpoint.nodeId,
|
|
446
|
+
endpointIndex: this.endpoint.index,
|
|
447
|
+
userId,
|
|
448
|
+
enabled
|
|
449
|
+
});
|
|
450
|
+
result = await this.host.sendCommand(cc, this.commandOptions);
|
|
451
|
+
} else {
|
|
452
|
+
this.assertSupportsCommand(import_Types.ScheduleEntryLockCommand, import_Types.ScheduleEntryLockCommand.EnableAllSet);
|
|
453
|
+
const cc = new ScheduleEntryLockCCEnableAllSet({
|
|
454
|
+
nodeId: this.endpoint.nodeId,
|
|
455
|
+
endpointIndex: this.endpoint.index,
|
|
456
|
+
enabled
|
|
457
|
+
});
|
|
458
|
+
result = await this.host.sendCommand(cc, this.commandOptions);
|
|
459
|
+
}
|
|
460
|
+
if (this.isSinglecast() && (0, import_core.isUnsupervisedOrSucceeded)(result)) {
|
|
461
|
+
setUserCodeScheduleEnabledCached(this.host, this.endpoint, userId, enabled);
|
|
462
|
+
}
|
|
463
|
+
return result;
|
|
464
|
+
}
|
|
465
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
466
|
+
async getNumSlots() {
|
|
467
|
+
this.assertSupportsCommand(import_Types.ScheduleEntryLockCommand, import_Types.ScheduleEntryLockCommand.SupportedGet);
|
|
468
|
+
const cc = new ScheduleEntryLockCCSupportedGet({
|
|
469
|
+
nodeId: this.endpoint.nodeId,
|
|
470
|
+
endpointIndex: this.endpoint.index
|
|
471
|
+
});
|
|
472
|
+
const result = await this.host.sendCommand(cc, this.commandOptions);
|
|
473
|
+
if (result) {
|
|
474
|
+
return (0, import_shared.pick)(result, [
|
|
475
|
+
"numWeekDaySlots",
|
|
476
|
+
"numYearDaySlots",
|
|
477
|
+
"numDailyRepeatingSlots"
|
|
478
|
+
]);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
async setWeekDaySchedule(slot, schedule) {
|
|
482
|
+
__assertType("slot", "ScheduleEntryLockSlotId", __assertType__ScheduleEntryLockSlotId.bind(void 0, slot));
|
|
483
|
+
__assertType("schedule", "(optional) ScheduleEntryLockWeekDaySchedule", __assertType__optional_ScheduleEntryLockWeekDaySchedule.bind(void 0, schedule));
|
|
484
|
+
this.assertSupportsCommand(import_Types.ScheduleEntryLockCommand, import_Types.ScheduleEntryLockCommand.WeekDayScheduleSet);
|
|
485
|
+
if (this.isSinglecast()) {
|
|
486
|
+
const numSlots = ScheduleEntryLockCC.getNumWeekDaySlotsCached(this.host, this.endpoint);
|
|
487
|
+
if (slot.slotId < 1 || slot.slotId > numSlots) {
|
|
488
|
+
throw new import_core.ZWaveError(`The schedule slot # must be between 1 and the number of supported day-of-week slots ${numSlots}.`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
if (schedule) {
|
|
492
|
+
if (schedule.stopHour < schedule.startHour || schedule.stopHour === schedule.startHour && schedule.stopMinute <= schedule.startMinute) {
|
|
493
|
+
throw new import_core.ZWaveError(`The stop time must be after the start time.`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
const cc = new ScheduleEntryLockCCWeekDayScheduleSet({
|
|
497
|
+
nodeId: this.endpoint.nodeId,
|
|
498
|
+
endpointIndex: this.endpoint.index,
|
|
499
|
+
...slot,
|
|
500
|
+
...schedule ? {
|
|
501
|
+
action: import_Types.ScheduleEntryLockSetAction.Set,
|
|
502
|
+
...schedule
|
|
503
|
+
} : {
|
|
504
|
+
action: import_Types.ScheduleEntryLockSetAction.Erase
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
const result = await this.host.sendCommand(cc, this.commandOptions);
|
|
508
|
+
if (this.isSinglecast() && (0, import_core.isUnsupervisedOrSucceeded)(result)) {
|
|
509
|
+
if (!!schedule) {
|
|
510
|
+
setUserCodeScheduleEnabledCached(this.host, this.endpoint, slot.userId, true);
|
|
511
|
+
setUserCodeScheduleKindCached(this.host, this.endpoint, slot.userId, import_Types.ScheduleEntryLockScheduleKind.WeekDay);
|
|
512
|
+
}
|
|
513
|
+
persistSchedule.call(cc, this.host, import_Types.ScheduleEntryLockScheduleKind.WeekDay, slot.userId, slot.slotId, schedule ?? false);
|
|
514
|
+
}
|
|
515
|
+
return result;
|
|
516
|
+
}
|
|
517
|
+
async getWeekDaySchedule(slot) {
|
|
518
|
+
__assertType("slot", "ScheduleEntryLockSlotId", __assertType__ScheduleEntryLockSlotId.bind(void 0, slot));
|
|
519
|
+
this.assertSupportsCommand(import_Types.ScheduleEntryLockCommand, import_Types.ScheduleEntryLockCommand.WeekDayScheduleSet);
|
|
520
|
+
const cc = new ScheduleEntryLockCCWeekDayScheduleGet({
|
|
521
|
+
nodeId: this.endpoint.nodeId,
|
|
522
|
+
endpointIndex: this.endpoint.index,
|
|
523
|
+
...slot
|
|
524
|
+
});
|
|
525
|
+
const result = await this.host.sendCommand(cc, this.commandOptions);
|
|
526
|
+
if (result?.weekday != void 0) {
|
|
527
|
+
return {
|
|
528
|
+
weekday: result.weekday,
|
|
529
|
+
startHour: result.startHour,
|
|
530
|
+
startMinute: result.startMinute,
|
|
531
|
+
stopHour: result.stopHour,
|
|
532
|
+
stopMinute: result.stopMinute
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
async setYearDaySchedule(slot, schedule) {
|
|
537
|
+
__assertType("slot", "ScheduleEntryLockSlotId", __assertType__ScheduleEntryLockSlotId.bind(void 0, slot));
|
|
538
|
+
__assertType("schedule", "(optional) ScheduleEntryLockYearDaySchedule", __assertType__optional_ScheduleEntryLockYearDaySchedule.bind(void 0, schedule));
|
|
539
|
+
this.assertSupportsCommand(import_Types.ScheduleEntryLockCommand, import_Types.ScheduleEntryLockCommand.YearDayScheduleSet);
|
|
540
|
+
if (this.isSinglecast()) {
|
|
541
|
+
const numSlots = ScheduleEntryLockCC.getNumYearDaySlotsCached(this.host, this.endpoint);
|
|
542
|
+
if (slot.slotId < 1 || slot.slotId > numSlots) {
|
|
543
|
+
throw new import_core.ZWaveError(`The schedule slot # must be between 1 and the number of supported day-of-year slots ${numSlots}.`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
if (schedule) {
|
|
547
|
+
const startDate = new Date(schedule.startYear, schedule.startMonth - 1, schedule.startDay, schedule.startHour, schedule.startMinute);
|
|
548
|
+
const stopDate = new Date(schedule.stopYear, schedule.stopMonth - 1, schedule.stopDay, schedule.stopHour, schedule.stopMinute);
|
|
549
|
+
if (stopDate <= startDate) {
|
|
550
|
+
throw new import_core.ZWaveError(`The stop date must be after the start date.`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
const cc = new ScheduleEntryLockCCYearDayScheduleSet({
|
|
554
|
+
nodeId: this.endpoint.nodeId,
|
|
555
|
+
endpointIndex: this.endpoint.index,
|
|
556
|
+
...slot,
|
|
557
|
+
...schedule ? {
|
|
558
|
+
action: import_Types.ScheduleEntryLockSetAction.Set,
|
|
559
|
+
...schedule
|
|
560
|
+
} : {
|
|
561
|
+
action: import_Types.ScheduleEntryLockSetAction.Erase
|
|
562
|
+
}
|
|
563
|
+
});
|
|
564
|
+
const result = await this.host.sendCommand(cc, this.commandOptions);
|
|
565
|
+
if (this.isSinglecast() && (0, import_core.isUnsupervisedOrSucceeded)(result)) {
|
|
566
|
+
if (!!schedule) {
|
|
567
|
+
setUserCodeScheduleEnabledCached(this.host, this.endpoint, slot.userId, true);
|
|
568
|
+
setUserCodeScheduleKindCached(this.host, this.endpoint, slot.userId, import_Types.ScheduleEntryLockScheduleKind.YearDay);
|
|
569
|
+
}
|
|
570
|
+
persistSchedule.call(cc, this.host, import_Types.ScheduleEntryLockScheduleKind.YearDay, slot.userId, slot.slotId, schedule ?? false);
|
|
571
|
+
}
|
|
572
|
+
return result;
|
|
573
|
+
}
|
|
574
|
+
async getYearDaySchedule(slot) {
|
|
575
|
+
__assertType("slot", "ScheduleEntryLockSlotId", __assertType__ScheduleEntryLockSlotId.bind(void 0, slot));
|
|
576
|
+
this.assertSupportsCommand(import_Types.ScheduleEntryLockCommand, import_Types.ScheduleEntryLockCommand.YearDayScheduleSet);
|
|
577
|
+
const cc = new ScheduleEntryLockCCYearDayScheduleGet({
|
|
578
|
+
nodeId: this.endpoint.nodeId,
|
|
579
|
+
endpointIndex: this.endpoint.index,
|
|
580
|
+
...slot
|
|
581
|
+
});
|
|
582
|
+
const result = await this.host.sendCommand(cc, this.commandOptions);
|
|
583
|
+
if (result?.startYear != void 0) {
|
|
584
|
+
return {
|
|
585
|
+
startYear: result.startYear,
|
|
586
|
+
startMonth: result.startMonth,
|
|
587
|
+
startDay: result.startDay,
|
|
588
|
+
startHour: result.startHour,
|
|
589
|
+
startMinute: result.startMinute,
|
|
590
|
+
stopYear: result.stopYear,
|
|
591
|
+
stopMonth: result.stopMonth,
|
|
592
|
+
stopDay: result.stopDay,
|
|
593
|
+
stopHour: result.stopHour,
|
|
594
|
+
stopMinute: result.stopMinute
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
async setDailyRepeatingSchedule(slot, schedule) {
|
|
599
|
+
__assertType("slot", "ScheduleEntryLockSlotId", __assertType__ScheduleEntryLockSlotId.bind(void 0, slot));
|
|
600
|
+
__assertType("schedule", "(optional) ScheduleEntryLockDailyRepeatingSchedule", __assertType__optional_ScheduleEntryLockDailyRepeatingSchedule.bind(void 0, schedule));
|
|
601
|
+
this.assertSupportsCommand(import_Types.ScheduleEntryLockCommand, import_Types.ScheduleEntryLockCommand.DailyRepeatingScheduleSet);
|
|
602
|
+
if (this.isSinglecast()) {
|
|
603
|
+
const numSlots = ScheduleEntryLockCC.getNumDailyRepeatingSlotsCached(this.host, this.endpoint);
|
|
604
|
+
if (slot.slotId < 1 || slot.slotId > numSlots) {
|
|
605
|
+
throw new import_core.ZWaveError(`The schedule slot # must be between 1 and the number of supported daily repeating slots ${numSlots}.`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
const cc = new ScheduleEntryLockCCDailyRepeatingScheduleSet({
|
|
609
|
+
nodeId: this.endpoint.nodeId,
|
|
610
|
+
endpointIndex: this.endpoint.index,
|
|
611
|
+
...slot,
|
|
612
|
+
...schedule ? {
|
|
613
|
+
action: import_Types.ScheduleEntryLockSetAction.Set,
|
|
614
|
+
...schedule
|
|
615
|
+
} : {
|
|
616
|
+
action: import_Types.ScheduleEntryLockSetAction.Erase
|
|
617
|
+
}
|
|
618
|
+
});
|
|
619
|
+
const result = await this.host.sendCommand(cc, this.commandOptions);
|
|
620
|
+
if (this.isSinglecast() && (0, import_core.isUnsupervisedOrSucceeded)(result)) {
|
|
621
|
+
if (!!schedule) {
|
|
622
|
+
setUserCodeScheduleEnabledCached(this.host, this.endpoint, slot.userId, true);
|
|
623
|
+
setUserCodeScheduleKindCached(this.host, this.endpoint, slot.userId, import_Types.ScheduleEntryLockScheduleKind.DailyRepeating);
|
|
624
|
+
}
|
|
625
|
+
persistSchedule.call(cc, this.host, import_Types.ScheduleEntryLockScheduleKind.DailyRepeating, slot.userId, slot.slotId, schedule ?? false);
|
|
626
|
+
}
|
|
627
|
+
return result;
|
|
628
|
+
}
|
|
629
|
+
async getDailyRepeatingSchedule(slot) {
|
|
630
|
+
__assertType("slot", "ScheduleEntryLockSlotId", __assertType__ScheduleEntryLockSlotId.bind(void 0, slot));
|
|
631
|
+
this.assertSupportsCommand(import_Types.ScheduleEntryLockCommand, import_Types.ScheduleEntryLockCommand.DailyRepeatingScheduleSet);
|
|
632
|
+
const cc = new ScheduleEntryLockCCDailyRepeatingScheduleGet({
|
|
633
|
+
nodeId: this.endpoint.nodeId,
|
|
634
|
+
endpointIndex: this.endpoint.index,
|
|
635
|
+
...slot
|
|
636
|
+
});
|
|
637
|
+
const result = await this.host.sendCommand(cc, this.commandOptions);
|
|
638
|
+
if (result?.weekdays != void 0) {
|
|
639
|
+
return {
|
|
640
|
+
weekdays: result.weekdays,
|
|
641
|
+
startHour: result.startHour,
|
|
642
|
+
startMinute: result.startMinute,
|
|
643
|
+
durationHour: result.durationHour,
|
|
644
|
+
durationMinute: result.durationMinute
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
async getTimezone() {
|
|
649
|
+
this.assertSupportsCommand(import_Types.ScheduleEntryLockCommand, import_Types.ScheduleEntryLockCommand.TimeOffsetGet);
|
|
650
|
+
const cc = new ScheduleEntryLockCCTimeOffsetGet({
|
|
651
|
+
nodeId: this.endpoint.nodeId,
|
|
652
|
+
endpointIndex: this.endpoint.index
|
|
653
|
+
});
|
|
654
|
+
const result = await this.host.sendCommand(cc, this.commandOptions);
|
|
655
|
+
if (result) {
|
|
656
|
+
return (0, import_shared.pick)(result, ["standardOffset", "dstOffset"]);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
async setTimezone(timezone) {
|
|
660
|
+
__assertType("timezone", "Timezone", __assertType__Timezone.bind(void 0, timezone));
|
|
661
|
+
this.assertSupportsCommand(import_Types.ScheduleEntryLockCommand, import_Types.ScheduleEntryLockCommand.TimeOffsetSet);
|
|
662
|
+
const cc = new ScheduleEntryLockCCTimeOffsetSet({
|
|
663
|
+
nodeId: this.endpoint.nodeId,
|
|
664
|
+
endpointIndex: this.endpoint.index,
|
|
665
|
+
...timezone
|
|
666
|
+
});
|
|
667
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
668
|
+
}
|
|
669
|
+
};
|
|
670
|
+
return ScheduleEntryLockCCAPI2 = _classThis;
|
|
671
|
+
})();
|
|
672
|
+
let ScheduleEntryLockCC = (() => {
|
|
673
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_core.CommandClasses["Schedule Entry Lock"]), (0, import_CommandClassDecorators.implementedVersion)(3), (0, import_CommandClassDecorators.ccValues)(ScheduleEntryLockCCValues)];
|
|
674
|
+
let _classDescriptor;
|
|
675
|
+
let _classExtraInitializers = [];
|
|
676
|
+
let _classThis;
|
|
677
|
+
let _classSuper = import_CommandClass.CommandClass;
|
|
678
|
+
var ScheduleEntryLockCC2 = class extends _classSuper {
|
|
679
|
+
static {
|
|
680
|
+
_classThis = this;
|
|
681
|
+
}
|
|
682
|
+
static {
|
|
683
|
+
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);
|
|
685
|
+
ScheduleEntryLockCC2 = _classThis = _classDescriptor.value;
|
|
686
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
687
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
688
|
+
}
|
|
689
|
+
async interview(ctx) {
|
|
690
|
+
const node = this.getNode(ctx);
|
|
691
|
+
const endpoint = this.getEndpoint(ctx);
|
|
692
|
+
const api = import_API.CCAPI.create(import_core.CommandClasses["Schedule Entry Lock"], ctx, endpoint).withOptions({
|
|
693
|
+
priority: import_core.MessagePriority.NodeQuery
|
|
694
|
+
});
|
|
695
|
+
ctx.logNode(node.id, {
|
|
696
|
+
endpoint: this.endpointIndex,
|
|
697
|
+
message: `Interviewing ${this.ccName}...`,
|
|
698
|
+
direction: "none"
|
|
699
|
+
});
|
|
700
|
+
ctx.logNode(node.id, {
|
|
701
|
+
endpoint: this.endpointIndex,
|
|
702
|
+
message: "Querying supported number of schedule slots...",
|
|
703
|
+
direction: "outbound"
|
|
704
|
+
});
|
|
705
|
+
const slotsResp = await api.getNumSlots();
|
|
706
|
+
if (slotsResp) {
|
|
707
|
+
let logMessage = `received supported number of schedule slots:
|
|
708
|
+
day of week: ${slotsResp.numWeekDaySlots}
|
|
709
|
+
day of year: ${slotsResp.numYearDaySlots}`;
|
|
710
|
+
if (slotsResp.numDailyRepeatingSlots != void 0) {
|
|
711
|
+
logMessage += `
|
|
712
|
+
daily repeating: ${slotsResp.numDailyRepeatingSlots}`;
|
|
713
|
+
}
|
|
714
|
+
ctx.logNode(node.id, {
|
|
715
|
+
endpoint: this.endpointIndex,
|
|
716
|
+
message: logMessage,
|
|
717
|
+
direction: "inbound"
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
if (api.supportsCommand(import_Types.ScheduleEntryLockCommand.TimeOffsetSet) && (!endpoint.supportsCC(import_core.CommandClasses.Time) || endpoint.getCCVersion(import_core.CommandClasses.Time) < 2)) {
|
|
721
|
+
ctx.logNode(node.id, {
|
|
722
|
+
endpoint: this.endpointIndex,
|
|
723
|
+
message: "setting timezone information...",
|
|
724
|
+
direction: "outbound"
|
|
725
|
+
});
|
|
726
|
+
const timezone = (0, import_core.getDSTInfo)();
|
|
727
|
+
await api.setTimezone(timezone);
|
|
728
|
+
}
|
|
729
|
+
this.setInterviewComplete(ctx, true);
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Returns the number of supported day-of-week slots.
|
|
733
|
+
* This only works AFTER the interview process
|
|
734
|
+
*/
|
|
735
|
+
static getNumWeekDaySlotsCached(ctx, endpoint) {
|
|
736
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(ScheduleEntryLockCCValues.numWeekDaySlots.endpoint(endpoint.index)) || 0;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Returns the number of supported day-of-year slots.
|
|
740
|
+
* This only works AFTER the interview process
|
|
741
|
+
*/
|
|
742
|
+
static getNumYearDaySlotsCached(ctx, endpoint) {
|
|
743
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(ScheduleEntryLockCCValues.numYearDaySlots.endpoint(endpoint.index)) || 0;
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Returns the number of supported daily-repeating slots.
|
|
747
|
+
* This only works AFTER the interview process
|
|
748
|
+
*/
|
|
749
|
+
static getNumDailyRepeatingSlotsCached(ctx, endpoint) {
|
|
750
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(ScheduleEntryLockCCValues.numDailyRepeatingSlots.endpoint(endpoint.index)) || 0;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Returns whether scheduling for a given user ID (most likely) enabled. Since the Schedule Entry Lock CC
|
|
754
|
+
* provides no way to query the enabled state, Z-Wave JS tracks this in its own cache.
|
|
755
|
+
*
|
|
756
|
+
* This only works AFTER the interview process and is likely to be wrong if a device
|
|
757
|
+
* with existing schedules is queried. To be sure, disable scheduling for all users and enable
|
|
758
|
+
* only the desired ones.
|
|
759
|
+
*/
|
|
760
|
+
static getUserCodeScheduleEnabledCached(ctx, endpoint, userId) {
|
|
761
|
+
return !!ctx.getValueDB(endpoint.nodeId).getValue(ScheduleEntryLockCCValues.userEnabled(userId).endpoint(endpoint.index));
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Returns which scheduling kind is (most likely) enabled for a given user ID . Since the Schedule Entry Lock CC
|
|
765
|
+
* provides no way to query the current state, Z-Wave JS tracks this in its own cache.
|
|
766
|
+
*
|
|
767
|
+
* This only works AFTER the interview process and is likely to be wrong if a device
|
|
768
|
+
* with existing schedules is queried. To be sure, edit a schedule of the desired kind
|
|
769
|
+
* which will automatically switch the user to that scheduling kind.
|
|
770
|
+
*/
|
|
771
|
+
static getUserCodeScheduleKindCached(ctx, endpoint, userId) {
|
|
772
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(ScheduleEntryLockCCValues.scheduleKind(userId).endpoint(endpoint.index));
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* Returns the assumed state of a schedule. Since the Schedule Entry Lock CC
|
|
776
|
+
* provides no way to query the current state, Z-Wave JS tracks this in its own cache.
|
|
777
|
+
*
|
|
778
|
+
* A return value of `false` means the slot is empty, a return value of `undefined` means the information is not cached yet.
|
|
779
|
+
*
|
|
780
|
+
* This only works AFTER the interview process.
|
|
781
|
+
*/
|
|
782
|
+
static getScheduleCached(ctx, endpoint, scheduleKind, userId, slotId) {
|
|
783
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(ScheduleEntryLockCCValues.schedule(scheduleKind, userId, slotId).endpoint(endpoint.index));
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
return ScheduleEntryLockCC2 = _classThis;
|
|
787
|
+
})();
|
|
788
|
+
let ScheduleEntryLockCCEnableSet = (() => {
|
|
789
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.EnableSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
790
|
+
let _classDescriptor;
|
|
791
|
+
let _classExtraInitializers = [];
|
|
792
|
+
let _classThis;
|
|
793
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
794
|
+
var ScheduleEntryLockCCEnableSet2 = class extends _classSuper {
|
|
795
|
+
static {
|
|
796
|
+
_classThis = this;
|
|
797
|
+
}
|
|
798
|
+
static {
|
|
799
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
800
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
801
|
+
ScheduleEntryLockCCEnableSet2 = _classThis = _classDescriptor.value;
|
|
802
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
803
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
804
|
+
}
|
|
805
|
+
constructor(options) {
|
|
806
|
+
super(options);
|
|
807
|
+
this.userId = options.userId;
|
|
808
|
+
this.enabled = options.enabled;
|
|
809
|
+
}
|
|
810
|
+
static from(raw, ctx) {
|
|
811
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
812
|
+
const userId = raw.payload[0];
|
|
813
|
+
const enabled = raw.payload[1] === 1;
|
|
814
|
+
return new this({
|
|
815
|
+
nodeId: ctx.sourceNodeId,
|
|
816
|
+
userId,
|
|
817
|
+
enabled
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
userId;
|
|
821
|
+
enabled;
|
|
822
|
+
serialize(ctx) {
|
|
823
|
+
this.payload = import_shared.Bytes.from([this.userId, this.enabled ? 1 : 0]);
|
|
824
|
+
return super.serialize(ctx);
|
|
825
|
+
}
|
|
826
|
+
toLogEntry(ctx) {
|
|
827
|
+
return {
|
|
828
|
+
...super.toLogEntry(ctx),
|
|
829
|
+
message: {
|
|
830
|
+
"user ID": this.userId,
|
|
831
|
+
action: this.enabled ? "enable" : "disable"
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
return ScheduleEntryLockCCEnableSet2 = _classThis;
|
|
837
|
+
})();
|
|
838
|
+
let ScheduleEntryLockCCEnableAllSet = (() => {
|
|
839
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.EnableAllSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
840
|
+
let _classDescriptor;
|
|
841
|
+
let _classExtraInitializers = [];
|
|
842
|
+
let _classThis;
|
|
843
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
844
|
+
var ScheduleEntryLockCCEnableAllSet2 = class extends _classSuper {
|
|
845
|
+
static {
|
|
846
|
+
_classThis = this;
|
|
847
|
+
}
|
|
848
|
+
static {
|
|
849
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
850
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
851
|
+
ScheduleEntryLockCCEnableAllSet2 = _classThis = _classDescriptor.value;
|
|
852
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
853
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
854
|
+
}
|
|
855
|
+
constructor(options) {
|
|
856
|
+
super(options);
|
|
857
|
+
this.enabled = options.enabled;
|
|
858
|
+
}
|
|
859
|
+
static from(raw, ctx) {
|
|
860
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
861
|
+
const enabled = raw.payload[0] === 1;
|
|
862
|
+
return new this({
|
|
863
|
+
nodeId: ctx.sourceNodeId,
|
|
864
|
+
enabled
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
enabled;
|
|
868
|
+
serialize(ctx) {
|
|
869
|
+
this.payload = import_shared.Bytes.from([this.enabled ? 1 : 0]);
|
|
870
|
+
return super.serialize(ctx);
|
|
871
|
+
}
|
|
872
|
+
toLogEntry(ctx) {
|
|
873
|
+
return {
|
|
874
|
+
...super.toLogEntry(ctx),
|
|
875
|
+
message: {
|
|
876
|
+
action: this.enabled ? "enable all" : "disable all"
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
return ScheduleEntryLockCCEnableAllSet2 = _classThis;
|
|
882
|
+
})();
|
|
883
|
+
let ScheduleEntryLockCCSupportedReport = (() => {
|
|
884
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.SupportedReport), (0, import_CommandClassDecorators.ccValueProperty)("numWeekDaySlots", ScheduleEntryLockCCValues.numWeekDaySlots), (0, import_CommandClassDecorators.ccValueProperty)("numYearDaySlots", ScheduleEntryLockCCValues.numYearDaySlots), (0, import_CommandClassDecorators.ccValueProperty)("numDailyRepeatingSlots", ScheduleEntryLockCCValues.numDailyRepeatingSlots)];
|
|
885
|
+
let _classDescriptor;
|
|
886
|
+
let _classExtraInitializers = [];
|
|
887
|
+
let _classThis;
|
|
888
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
889
|
+
var ScheduleEntryLockCCSupportedReport2 = class extends _classSuper {
|
|
890
|
+
static {
|
|
891
|
+
_classThis = this;
|
|
892
|
+
}
|
|
893
|
+
static {
|
|
894
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
895
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
896
|
+
ScheduleEntryLockCCSupportedReport2 = _classThis = _classDescriptor.value;
|
|
897
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
898
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
899
|
+
}
|
|
900
|
+
constructor(options) {
|
|
901
|
+
super(options);
|
|
902
|
+
this.numWeekDaySlots = options.numWeekDaySlots;
|
|
903
|
+
this.numYearDaySlots = options.numYearDaySlots;
|
|
904
|
+
this.numDailyRepeatingSlots = options.numDailyRepeatingSlots;
|
|
905
|
+
}
|
|
906
|
+
static from(raw, ctx) {
|
|
907
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
908
|
+
const numWeekDaySlots = raw.payload[0];
|
|
909
|
+
const numYearDaySlots = raw.payload[1];
|
|
910
|
+
let numDailyRepeatingSlots;
|
|
911
|
+
if (raw.payload.length >= 3) {
|
|
912
|
+
numDailyRepeatingSlots = raw.payload[2];
|
|
913
|
+
}
|
|
914
|
+
return new this({
|
|
915
|
+
nodeId: ctx.sourceNodeId,
|
|
916
|
+
numWeekDaySlots,
|
|
917
|
+
numYearDaySlots,
|
|
918
|
+
numDailyRepeatingSlots
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
numWeekDaySlots;
|
|
922
|
+
numYearDaySlots;
|
|
923
|
+
numDailyRepeatingSlots;
|
|
924
|
+
serialize(ctx) {
|
|
925
|
+
this.payload = import_shared.Bytes.from([
|
|
926
|
+
this.numWeekDaySlots,
|
|
927
|
+
this.numYearDaySlots,
|
|
928
|
+
this.numDailyRepeatingSlots ?? 0
|
|
929
|
+
]);
|
|
930
|
+
return super.serialize(ctx);
|
|
931
|
+
}
|
|
932
|
+
toLogEntry(ctx) {
|
|
933
|
+
const message = {
|
|
934
|
+
"no. of weekday schedule slots": this.numWeekDaySlots,
|
|
935
|
+
"no. of day-of-year schedule slots": this.numYearDaySlots
|
|
936
|
+
};
|
|
937
|
+
if (this.numDailyRepeatingSlots != void 0) {
|
|
938
|
+
message["no. of daily repeating schedule slots"] = this.numDailyRepeatingSlots;
|
|
939
|
+
}
|
|
940
|
+
return {
|
|
941
|
+
...super.toLogEntry(ctx),
|
|
942
|
+
message
|
|
943
|
+
};
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
return ScheduleEntryLockCCSupportedReport2 = _classThis;
|
|
947
|
+
})();
|
|
948
|
+
let ScheduleEntryLockCCSupportedGet = (() => {
|
|
949
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.SupportedGet), (0, import_CommandClassDecorators.expectedCCResponse)(ScheduleEntryLockCCSupportedReport)];
|
|
950
|
+
let _classDescriptor;
|
|
951
|
+
let _classExtraInitializers = [];
|
|
952
|
+
let _classThis;
|
|
953
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
954
|
+
var ScheduleEntryLockCCSupportedGet2 = class extends _classSuper {
|
|
955
|
+
static {
|
|
956
|
+
_classThis = this;
|
|
957
|
+
}
|
|
958
|
+
static {
|
|
959
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
960
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
961
|
+
ScheduleEntryLockCCSupportedGet2 = _classThis = _classDescriptor.value;
|
|
962
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
963
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
return ScheduleEntryLockCCSupportedGet2 = _classThis;
|
|
967
|
+
})();
|
|
968
|
+
let ScheduleEntryLockCCWeekDayScheduleSet = (() => {
|
|
969
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.WeekDayScheduleSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
970
|
+
let _classDescriptor;
|
|
971
|
+
let _classExtraInitializers = [];
|
|
972
|
+
let _classThis;
|
|
973
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
974
|
+
var ScheduleEntryLockCCWeekDayScheduleSet2 = class extends _classSuper {
|
|
975
|
+
static {
|
|
976
|
+
_classThis = this;
|
|
977
|
+
}
|
|
978
|
+
static {
|
|
979
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
980
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
981
|
+
ScheduleEntryLockCCWeekDayScheduleSet2 = _classThis = _classDescriptor.value;
|
|
982
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
983
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
984
|
+
}
|
|
985
|
+
constructor(options) {
|
|
986
|
+
super(options);
|
|
987
|
+
this.userId = options.userId;
|
|
988
|
+
this.slotId = options.slotId;
|
|
989
|
+
this.action = options.action;
|
|
990
|
+
if (options.action === import_Types.ScheduleEntryLockSetAction.Set) {
|
|
991
|
+
this.weekday = options.weekday;
|
|
992
|
+
this.startHour = options.startHour;
|
|
993
|
+
this.startMinute = options.startMinute;
|
|
994
|
+
this.stopHour = options.stopHour;
|
|
995
|
+
this.stopMinute = options.stopMinute;
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
static from(raw, ctx) {
|
|
999
|
+
(0, import_core.validatePayload)(raw.payload.length >= 3);
|
|
1000
|
+
const action = raw.payload[0];
|
|
1001
|
+
(0, import_core.validatePayload)(action === import_Types.ScheduleEntryLockSetAction.Set || action === import_Types.ScheduleEntryLockSetAction.Erase);
|
|
1002
|
+
const userId = raw.payload[1];
|
|
1003
|
+
const slotId = raw.payload[2];
|
|
1004
|
+
if (action !== import_Types.ScheduleEntryLockSetAction.Set) {
|
|
1005
|
+
return new this({
|
|
1006
|
+
nodeId: ctx.sourceNodeId,
|
|
1007
|
+
action,
|
|
1008
|
+
userId,
|
|
1009
|
+
slotId
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
(0, import_core.validatePayload)(raw.payload.length >= 8);
|
|
1013
|
+
const weekday = raw.payload[3];
|
|
1014
|
+
const startHour = raw.payload[4];
|
|
1015
|
+
const startMinute = raw.payload[5];
|
|
1016
|
+
const stopHour = raw.payload[6];
|
|
1017
|
+
const stopMinute = raw.payload[7];
|
|
1018
|
+
return new this({
|
|
1019
|
+
nodeId: ctx.sourceNodeId,
|
|
1020
|
+
action,
|
|
1021
|
+
userId,
|
|
1022
|
+
slotId,
|
|
1023
|
+
weekday,
|
|
1024
|
+
startHour,
|
|
1025
|
+
startMinute,
|
|
1026
|
+
stopHour,
|
|
1027
|
+
stopMinute
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
userId;
|
|
1031
|
+
slotId;
|
|
1032
|
+
action;
|
|
1033
|
+
weekday;
|
|
1034
|
+
startHour;
|
|
1035
|
+
startMinute;
|
|
1036
|
+
stopHour;
|
|
1037
|
+
stopMinute;
|
|
1038
|
+
serialize(ctx) {
|
|
1039
|
+
this.payload = import_shared.Bytes.from([
|
|
1040
|
+
this.action,
|
|
1041
|
+
this.userId,
|
|
1042
|
+
this.slotId,
|
|
1043
|
+
// The report should have these fields set to 0xff
|
|
1044
|
+
// if the slot is erased. The specs don't mention anything
|
|
1045
|
+
// for the Set command, so we just assume the same is okay
|
|
1046
|
+
this.weekday ?? 255,
|
|
1047
|
+
this.startHour ?? 255,
|
|
1048
|
+
this.startMinute ?? 255,
|
|
1049
|
+
this.stopHour ?? 255,
|
|
1050
|
+
this.stopMinute ?? 255
|
|
1051
|
+
]);
|
|
1052
|
+
return super.serialize(ctx);
|
|
1053
|
+
}
|
|
1054
|
+
toLogEntry(ctx) {
|
|
1055
|
+
let message;
|
|
1056
|
+
if (this.action === import_Types.ScheduleEntryLockSetAction.Erase) {
|
|
1057
|
+
message = {
|
|
1058
|
+
"user ID": this.userId,
|
|
1059
|
+
"slot #": this.slotId,
|
|
1060
|
+
action: "erase"
|
|
1061
|
+
};
|
|
1062
|
+
} else {
|
|
1063
|
+
message = {
|
|
1064
|
+
"user ID": this.userId,
|
|
1065
|
+
"slot #": this.slotId,
|
|
1066
|
+
action: "set",
|
|
1067
|
+
weekday: (0, import_shared.getEnumMemberName)(import_Types.ScheduleEntryLockWeekday, this.weekday),
|
|
1068
|
+
"start time": (0, import_shared.formatTime)(this.startHour ?? 0, this.startMinute ?? 0),
|
|
1069
|
+
"end time": (0, import_shared.formatTime)(this.stopHour ?? 0, this.stopMinute ?? 0)
|
|
1070
|
+
};
|
|
1071
|
+
}
|
|
1072
|
+
return {
|
|
1073
|
+
...super.toLogEntry(ctx),
|
|
1074
|
+
message
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1078
|
+
return ScheduleEntryLockCCWeekDayScheduleSet2 = _classThis;
|
|
1079
|
+
})();
|
|
1080
|
+
let ScheduleEntryLockCCWeekDayScheduleReport = (() => {
|
|
1081
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.WeekDayScheduleReport)];
|
|
1082
|
+
let _classDescriptor;
|
|
1083
|
+
let _classExtraInitializers = [];
|
|
1084
|
+
let _classThis;
|
|
1085
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
1086
|
+
var ScheduleEntryLockCCWeekDayScheduleReport2 = class extends _classSuper {
|
|
1087
|
+
static {
|
|
1088
|
+
_classThis = this;
|
|
1089
|
+
}
|
|
1090
|
+
static {
|
|
1091
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1092
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1093
|
+
ScheduleEntryLockCCWeekDayScheduleReport2 = _classThis = _classDescriptor.value;
|
|
1094
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1095
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1096
|
+
}
|
|
1097
|
+
constructor(options) {
|
|
1098
|
+
super(options);
|
|
1099
|
+
this.userId = options.userId;
|
|
1100
|
+
this.slotId = options.slotId;
|
|
1101
|
+
this.weekday = options.weekday;
|
|
1102
|
+
this.startHour = options.startHour;
|
|
1103
|
+
this.startMinute = options.startMinute;
|
|
1104
|
+
this.stopHour = options.stopHour;
|
|
1105
|
+
this.stopMinute = options.stopMinute;
|
|
1106
|
+
}
|
|
1107
|
+
static from(raw, ctx) {
|
|
1108
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
1109
|
+
const userId = raw.payload[0];
|
|
1110
|
+
const slotId = raw.payload[1];
|
|
1111
|
+
let ccOptions = {
|
|
1112
|
+
userId,
|
|
1113
|
+
slotId
|
|
1114
|
+
};
|
|
1115
|
+
let weekday;
|
|
1116
|
+
let startHour;
|
|
1117
|
+
let startMinute;
|
|
1118
|
+
let stopHour;
|
|
1119
|
+
let stopMinute;
|
|
1120
|
+
if (raw.payload.length >= 7) {
|
|
1121
|
+
if (raw.payload[2] !== 255) {
|
|
1122
|
+
weekday = raw.payload[2];
|
|
1123
|
+
}
|
|
1124
|
+
if (raw.payload[3] !== 255) {
|
|
1125
|
+
startHour = raw.payload[3];
|
|
1126
|
+
}
|
|
1127
|
+
if (raw.payload[4] !== 255) {
|
|
1128
|
+
startMinute = raw.payload[4];
|
|
1129
|
+
}
|
|
1130
|
+
if (raw.payload[5] !== 255) {
|
|
1131
|
+
stopHour = raw.payload[5];
|
|
1132
|
+
}
|
|
1133
|
+
if (raw.payload[6] !== 255) {
|
|
1134
|
+
stopMinute = raw.payload[6];
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
if (weekday != void 0 && startHour != void 0 && startMinute != void 0 && stopHour != void 0 && stopMinute != void 0) {
|
|
1138
|
+
ccOptions = {
|
|
1139
|
+
...ccOptions,
|
|
1140
|
+
weekday,
|
|
1141
|
+
startHour,
|
|
1142
|
+
startMinute,
|
|
1143
|
+
stopHour,
|
|
1144
|
+
stopMinute
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
return new this({
|
|
1148
|
+
nodeId: ctx.sourceNodeId,
|
|
1149
|
+
...ccOptions
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
userId;
|
|
1153
|
+
slotId;
|
|
1154
|
+
weekday;
|
|
1155
|
+
startHour;
|
|
1156
|
+
startMinute;
|
|
1157
|
+
stopHour;
|
|
1158
|
+
stopMinute;
|
|
1159
|
+
persistValues(ctx) {
|
|
1160
|
+
if (!super.persistValues(ctx))
|
|
1161
|
+
return false;
|
|
1162
|
+
persistSchedule.call(this, ctx, import_Types.ScheduleEntryLockScheduleKind.WeekDay, this.userId, this.slotId, this.weekday != void 0 ? {
|
|
1163
|
+
weekday: this.weekday,
|
|
1164
|
+
startHour: this.startHour,
|
|
1165
|
+
startMinute: this.startMinute,
|
|
1166
|
+
stopHour: this.stopHour,
|
|
1167
|
+
stopMinute: this.stopMinute
|
|
1168
|
+
} : false);
|
|
1169
|
+
return true;
|
|
1170
|
+
}
|
|
1171
|
+
serialize(ctx) {
|
|
1172
|
+
this.payload = import_shared.Bytes.from([
|
|
1173
|
+
this.userId,
|
|
1174
|
+
this.slotId,
|
|
1175
|
+
this.weekday ?? 255,
|
|
1176
|
+
this.startHour ?? 255,
|
|
1177
|
+
this.startMinute ?? 255,
|
|
1178
|
+
this.stopHour ?? 255,
|
|
1179
|
+
this.stopMinute ?? 255
|
|
1180
|
+
]);
|
|
1181
|
+
return super.serialize(ctx);
|
|
1182
|
+
}
|
|
1183
|
+
toLogEntry(ctx) {
|
|
1184
|
+
let message;
|
|
1185
|
+
if (this.weekday == void 0) {
|
|
1186
|
+
message = {
|
|
1187
|
+
"user ID": this.userId,
|
|
1188
|
+
"slot #": this.slotId,
|
|
1189
|
+
schedule: "(empty)"
|
|
1190
|
+
};
|
|
1191
|
+
} else {
|
|
1192
|
+
message = {
|
|
1193
|
+
"user ID": this.userId,
|
|
1194
|
+
"slot #": this.slotId,
|
|
1195
|
+
weekday: (0, import_shared.getEnumMemberName)(import_Types.ScheduleEntryLockWeekday, this.weekday),
|
|
1196
|
+
"start time": (0, import_shared.formatTime)(this.startHour ?? 0, this.startMinute ?? 0),
|
|
1197
|
+
"end time": (0, import_shared.formatTime)(this.stopHour ?? 0, this.stopMinute ?? 0)
|
|
1198
|
+
};
|
|
1199
|
+
}
|
|
1200
|
+
return {
|
|
1201
|
+
...super.toLogEntry(ctx),
|
|
1202
|
+
message
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
};
|
|
1206
|
+
return ScheduleEntryLockCCWeekDayScheduleReport2 = _classThis;
|
|
1207
|
+
})();
|
|
1208
|
+
let ScheduleEntryLockCCWeekDayScheduleGet = (() => {
|
|
1209
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.WeekDayScheduleGet), (0, import_CommandClassDecorators.expectedCCResponse)(ScheduleEntryLockCCWeekDayScheduleReport)];
|
|
1210
|
+
let _classDescriptor;
|
|
1211
|
+
let _classExtraInitializers = [];
|
|
1212
|
+
let _classThis;
|
|
1213
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
1214
|
+
var ScheduleEntryLockCCWeekDayScheduleGet2 = class extends _classSuper {
|
|
1215
|
+
static {
|
|
1216
|
+
_classThis = this;
|
|
1217
|
+
}
|
|
1218
|
+
static {
|
|
1219
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1220
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1221
|
+
ScheduleEntryLockCCWeekDayScheduleGet2 = _classThis = _classDescriptor.value;
|
|
1222
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1223
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1224
|
+
}
|
|
1225
|
+
constructor(options) {
|
|
1226
|
+
super(options);
|
|
1227
|
+
this.userId = options.userId;
|
|
1228
|
+
this.slotId = options.slotId;
|
|
1229
|
+
}
|
|
1230
|
+
static from(raw, ctx) {
|
|
1231
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
1232
|
+
const userId = raw.payload[0];
|
|
1233
|
+
const slotId = raw.payload[1];
|
|
1234
|
+
return new this({
|
|
1235
|
+
nodeId: ctx.sourceNodeId,
|
|
1236
|
+
userId,
|
|
1237
|
+
slotId
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
userId;
|
|
1241
|
+
slotId;
|
|
1242
|
+
serialize(ctx) {
|
|
1243
|
+
this.payload = import_shared.Bytes.from([this.userId, this.slotId]);
|
|
1244
|
+
return super.serialize(ctx);
|
|
1245
|
+
}
|
|
1246
|
+
toLogEntry(ctx) {
|
|
1247
|
+
return {
|
|
1248
|
+
...super.toLogEntry(ctx),
|
|
1249
|
+
message: {
|
|
1250
|
+
"user ID": this.userId,
|
|
1251
|
+
"slot #": this.slotId
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
};
|
|
1256
|
+
return ScheduleEntryLockCCWeekDayScheduleGet2 = _classThis;
|
|
1257
|
+
})();
|
|
1258
|
+
let ScheduleEntryLockCCYearDayScheduleSet = (() => {
|
|
1259
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.YearDayScheduleSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
1260
|
+
let _classDescriptor;
|
|
1261
|
+
let _classExtraInitializers = [];
|
|
1262
|
+
let _classThis;
|
|
1263
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
1264
|
+
var ScheduleEntryLockCCYearDayScheduleSet2 = class extends _classSuper {
|
|
1265
|
+
static {
|
|
1266
|
+
_classThis = this;
|
|
1267
|
+
}
|
|
1268
|
+
static {
|
|
1269
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1270
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1271
|
+
ScheduleEntryLockCCYearDayScheduleSet2 = _classThis = _classDescriptor.value;
|
|
1272
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1273
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1274
|
+
}
|
|
1275
|
+
constructor(options) {
|
|
1276
|
+
super(options);
|
|
1277
|
+
this.userId = options.userId;
|
|
1278
|
+
this.slotId = options.slotId;
|
|
1279
|
+
this.action = options.action;
|
|
1280
|
+
if (options.action === import_Types.ScheduleEntryLockSetAction.Set) {
|
|
1281
|
+
this.startYear = options.startYear;
|
|
1282
|
+
this.startMonth = options.startMonth;
|
|
1283
|
+
this.startDay = options.startDay;
|
|
1284
|
+
this.startHour = options.startHour;
|
|
1285
|
+
this.startMinute = options.startMinute;
|
|
1286
|
+
this.stopYear = options.stopYear;
|
|
1287
|
+
this.stopMonth = options.stopMonth;
|
|
1288
|
+
this.stopDay = options.stopDay;
|
|
1289
|
+
this.stopHour = options.stopHour;
|
|
1290
|
+
this.stopMinute = options.stopMinute;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
static from(raw, ctx) {
|
|
1294
|
+
(0, import_core.validatePayload)(raw.payload.length >= 3);
|
|
1295
|
+
const action = raw.payload[0];
|
|
1296
|
+
(0, import_core.validatePayload)(action === import_Types.ScheduleEntryLockSetAction.Set || action === import_Types.ScheduleEntryLockSetAction.Erase);
|
|
1297
|
+
const userId = raw.payload[1];
|
|
1298
|
+
const slotId = raw.payload[2];
|
|
1299
|
+
if (action !== import_Types.ScheduleEntryLockSetAction.Set) {
|
|
1300
|
+
return new this({
|
|
1301
|
+
nodeId: ctx.sourceNodeId,
|
|
1302
|
+
action,
|
|
1303
|
+
userId,
|
|
1304
|
+
slotId
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
(0, import_core.validatePayload)(raw.payload.length >= 13);
|
|
1308
|
+
const startYear = raw.payload[3];
|
|
1309
|
+
const startMonth = raw.payload[4];
|
|
1310
|
+
const startDay = raw.payload[5];
|
|
1311
|
+
const startHour = raw.payload[6];
|
|
1312
|
+
const startMinute = raw.payload[7];
|
|
1313
|
+
const stopYear = raw.payload[8];
|
|
1314
|
+
const stopMonth = raw.payload[9];
|
|
1315
|
+
const stopDay = raw.payload[10];
|
|
1316
|
+
const stopHour = raw.payload[11];
|
|
1317
|
+
const stopMinute = raw.payload[12];
|
|
1318
|
+
return new this({
|
|
1319
|
+
nodeId: ctx.sourceNodeId,
|
|
1320
|
+
action,
|
|
1321
|
+
userId,
|
|
1322
|
+
slotId,
|
|
1323
|
+
startYear,
|
|
1324
|
+
startMonth,
|
|
1325
|
+
startDay,
|
|
1326
|
+
startHour,
|
|
1327
|
+
startMinute,
|
|
1328
|
+
stopYear,
|
|
1329
|
+
stopMonth,
|
|
1330
|
+
stopDay,
|
|
1331
|
+
stopHour,
|
|
1332
|
+
stopMinute
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1335
|
+
userId;
|
|
1336
|
+
slotId;
|
|
1337
|
+
action;
|
|
1338
|
+
startYear;
|
|
1339
|
+
startMonth;
|
|
1340
|
+
startDay;
|
|
1341
|
+
startHour;
|
|
1342
|
+
startMinute;
|
|
1343
|
+
stopYear;
|
|
1344
|
+
stopMonth;
|
|
1345
|
+
stopDay;
|
|
1346
|
+
stopHour;
|
|
1347
|
+
stopMinute;
|
|
1348
|
+
serialize(ctx) {
|
|
1349
|
+
this.payload = import_shared.Bytes.from([
|
|
1350
|
+
this.action,
|
|
1351
|
+
this.userId,
|
|
1352
|
+
this.slotId,
|
|
1353
|
+
// The report should have these fields set to 0xff
|
|
1354
|
+
// if the slot is erased. The specs don't mention anything
|
|
1355
|
+
// for the Set command, so we just assume the same is okay
|
|
1356
|
+
this.startYear ?? 255,
|
|
1357
|
+
this.startMonth ?? 255,
|
|
1358
|
+
this.startDay ?? 255,
|
|
1359
|
+
this.startHour ?? 255,
|
|
1360
|
+
this.startMinute ?? 255,
|
|
1361
|
+
this.stopYear ?? 255,
|
|
1362
|
+
this.stopMonth ?? 255,
|
|
1363
|
+
this.stopDay ?? 255,
|
|
1364
|
+
this.stopHour ?? 255,
|
|
1365
|
+
this.stopMinute ?? 255
|
|
1366
|
+
]);
|
|
1367
|
+
return super.serialize(ctx);
|
|
1368
|
+
}
|
|
1369
|
+
toLogEntry(ctx) {
|
|
1370
|
+
let message;
|
|
1371
|
+
if (this.action === import_Types.ScheduleEntryLockSetAction.Erase) {
|
|
1372
|
+
message = {
|
|
1373
|
+
"user ID": this.userId,
|
|
1374
|
+
"slot #": this.slotId,
|
|
1375
|
+
action: "erase"
|
|
1376
|
+
};
|
|
1377
|
+
} else {
|
|
1378
|
+
message = {
|
|
1379
|
+
"user ID": this.userId,
|
|
1380
|
+
"slot #": this.slotId,
|
|
1381
|
+
action: "set",
|
|
1382
|
+
"start date": `${(0, import_shared.formatDate)(this.startYear ?? 0, this.startMonth ?? 0, this.startDay ?? 0)} ${(0, import_shared.formatTime)(this.startHour ?? 0, this.startMinute ?? 0)}`,
|
|
1383
|
+
"end date": `${(0, import_shared.formatDate)(this.stopYear ?? 0, this.stopMonth ?? 0, this.stopDay ?? 0)} ${(0, import_shared.formatTime)(this.stopHour ?? 0, this.stopMinute ?? 0)}`
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
return {
|
|
1387
|
+
...super.toLogEntry(ctx),
|
|
1388
|
+
message
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
return ScheduleEntryLockCCYearDayScheduleSet2 = _classThis;
|
|
1393
|
+
})();
|
|
1394
|
+
let ScheduleEntryLockCCYearDayScheduleReport = (() => {
|
|
1395
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.YearDayScheduleReport)];
|
|
1396
|
+
let _classDescriptor;
|
|
1397
|
+
let _classExtraInitializers = [];
|
|
1398
|
+
let _classThis;
|
|
1399
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
1400
|
+
var ScheduleEntryLockCCYearDayScheduleReport2 = class extends _classSuper {
|
|
1401
|
+
static {
|
|
1402
|
+
_classThis = this;
|
|
1403
|
+
}
|
|
1404
|
+
static {
|
|
1405
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1406
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1407
|
+
ScheduleEntryLockCCYearDayScheduleReport2 = _classThis = _classDescriptor.value;
|
|
1408
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1409
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1410
|
+
}
|
|
1411
|
+
constructor(options) {
|
|
1412
|
+
super(options);
|
|
1413
|
+
this.userId = options.userId;
|
|
1414
|
+
this.slotId = options.slotId;
|
|
1415
|
+
this.startYear = options.startYear;
|
|
1416
|
+
this.startMonth = options.startMonth;
|
|
1417
|
+
this.startDay = options.startDay;
|
|
1418
|
+
this.startHour = options.startHour;
|
|
1419
|
+
this.startMinute = options.startMinute;
|
|
1420
|
+
this.stopYear = options.stopYear;
|
|
1421
|
+
this.stopMonth = options.stopMonth;
|
|
1422
|
+
this.stopDay = options.stopDay;
|
|
1423
|
+
this.stopHour = options.stopHour;
|
|
1424
|
+
this.stopMinute = options.stopMinute;
|
|
1425
|
+
}
|
|
1426
|
+
static from(raw, ctx) {
|
|
1427
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
1428
|
+
const userId = raw.payload[0];
|
|
1429
|
+
const slotId = raw.payload[1];
|
|
1430
|
+
let ccOptions = {
|
|
1431
|
+
userId,
|
|
1432
|
+
slotId
|
|
1433
|
+
};
|
|
1434
|
+
let startYear;
|
|
1435
|
+
let startMonth;
|
|
1436
|
+
let startDay;
|
|
1437
|
+
let startHour;
|
|
1438
|
+
let startMinute;
|
|
1439
|
+
let stopYear;
|
|
1440
|
+
let stopMonth;
|
|
1441
|
+
let stopDay;
|
|
1442
|
+
let stopHour;
|
|
1443
|
+
let stopMinute;
|
|
1444
|
+
if (raw.payload.length >= 12) {
|
|
1445
|
+
if (raw.payload[2] !== 255) {
|
|
1446
|
+
startYear = raw.payload[2];
|
|
1447
|
+
}
|
|
1448
|
+
if (raw.payload[3] !== 255) {
|
|
1449
|
+
startMonth = raw.payload[3];
|
|
1450
|
+
}
|
|
1451
|
+
if (raw.payload[4] !== 255) {
|
|
1452
|
+
startDay = raw.payload[4];
|
|
1453
|
+
}
|
|
1454
|
+
if (raw.payload[5] !== 255) {
|
|
1455
|
+
startHour = raw.payload[5];
|
|
1456
|
+
}
|
|
1457
|
+
if (raw.payload[6] !== 255) {
|
|
1458
|
+
startMinute = raw.payload[6];
|
|
1459
|
+
}
|
|
1460
|
+
if (raw.payload[7] !== 255) {
|
|
1461
|
+
stopYear = raw.payload[7];
|
|
1462
|
+
}
|
|
1463
|
+
if (raw.payload[8] !== 255) {
|
|
1464
|
+
stopMonth = raw.payload[8];
|
|
1465
|
+
}
|
|
1466
|
+
if (raw.payload[9] !== 255) {
|
|
1467
|
+
stopDay = raw.payload[9];
|
|
1468
|
+
}
|
|
1469
|
+
if (raw.payload[10] !== 255) {
|
|
1470
|
+
stopHour = raw.payload[10];
|
|
1471
|
+
}
|
|
1472
|
+
if (raw.payload[11] !== 255) {
|
|
1473
|
+
stopMinute = raw.payload[11];
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
if (startYear != void 0 && startMonth != void 0 && startDay != void 0 && startHour != void 0 && startMinute != void 0 && stopYear != void 0 && stopMonth != void 0 && stopDay != void 0 && stopHour != void 0 && stopMinute != void 0) {
|
|
1477
|
+
ccOptions = {
|
|
1478
|
+
...ccOptions,
|
|
1479
|
+
startYear,
|
|
1480
|
+
startMonth,
|
|
1481
|
+
startDay,
|
|
1482
|
+
startHour,
|
|
1483
|
+
startMinute,
|
|
1484
|
+
stopYear,
|
|
1485
|
+
stopMonth,
|
|
1486
|
+
stopDay,
|
|
1487
|
+
stopHour,
|
|
1488
|
+
stopMinute
|
|
1489
|
+
};
|
|
1490
|
+
}
|
|
1491
|
+
return new this({
|
|
1492
|
+
nodeId: ctx.sourceNodeId,
|
|
1493
|
+
...ccOptions
|
|
1494
|
+
});
|
|
1495
|
+
}
|
|
1496
|
+
userId;
|
|
1497
|
+
slotId;
|
|
1498
|
+
startYear;
|
|
1499
|
+
startMonth;
|
|
1500
|
+
startDay;
|
|
1501
|
+
startHour;
|
|
1502
|
+
startMinute;
|
|
1503
|
+
stopYear;
|
|
1504
|
+
stopMonth;
|
|
1505
|
+
stopDay;
|
|
1506
|
+
stopHour;
|
|
1507
|
+
stopMinute;
|
|
1508
|
+
persistValues(ctx) {
|
|
1509
|
+
if (!super.persistValues(ctx))
|
|
1510
|
+
return false;
|
|
1511
|
+
persistSchedule.call(this, ctx, import_Types.ScheduleEntryLockScheduleKind.YearDay, this.userId, this.slotId, this.startYear != void 0 ? {
|
|
1512
|
+
startYear: this.startYear,
|
|
1513
|
+
startMonth: this.startMonth,
|
|
1514
|
+
startDay: this.startDay,
|
|
1515
|
+
startHour: this.startHour,
|
|
1516
|
+
startMinute: this.startMinute,
|
|
1517
|
+
stopYear: this.stopYear,
|
|
1518
|
+
stopMonth: this.stopMonth,
|
|
1519
|
+
stopDay: this.stopDay,
|
|
1520
|
+
stopHour: this.stopHour,
|
|
1521
|
+
stopMinute: this.stopMinute
|
|
1522
|
+
} : false);
|
|
1523
|
+
return true;
|
|
1524
|
+
}
|
|
1525
|
+
serialize(ctx) {
|
|
1526
|
+
this.payload = import_shared.Bytes.from([
|
|
1527
|
+
this.userId,
|
|
1528
|
+
this.slotId,
|
|
1529
|
+
this.startYear ?? 255,
|
|
1530
|
+
this.startMonth ?? 255,
|
|
1531
|
+
this.startDay ?? 255,
|
|
1532
|
+
this.startHour ?? 255,
|
|
1533
|
+
this.startMinute ?? 255,
|
|
1534
|
+
this.stopYear ?? 255,
|
|
1535
|
+
this.stopMonth ?? 255,
|
|
1536
|
+
this.stopDay ?? 255,
|
|
1537
|
+
this.stopHour ?? 255,
|
|
1538
|
+
this.stopMinute ?? 255
|
|
1539
|
+
]);
|
|
1540
|
+
return super.serialize(ctx);
|
|
1541
|
+
}
|
|
1542
|
+
toLogEntry(ctx) {
|
|
1543
|
+
let message;
|
|
1544
|
+
if (this.startYear !== void 0) {
|
|
1545
|
+
message = {
|
|
1546
|
+
"user ID": this.userId,
|
|
1547
|
+
"slot #": this.slotId,
|
|
1548
|
+
schedule: "(empty)"
|
|
1549
|
+
};
|
|
1550
|
+
} else {
|
|
1551
|
+
message = {
|
|
1552
|
+
"user ID": this.userId,
|
|
1553
|
+
"slot #": this.slotId,
|
|
1554
|
+
action: "set",
|
|
1555
|
+
"start date": `${(0, import_shared.formatDate)(this.startYear ?? 0, this.startMonth ?? 0, this.startDay ?? 0)} ${(0, import_shared.formatTime)(this.startHour ?? 0, this.startMinute ?? 0)}`,
|
|
1556
|
+
"end date": `${(0, import_shared.formatDate)(this.stopYear ?? 0, this.stopMonth ?? 0, this.stopDay ?? 0)} ${(0, import_shared.formatTime)(this.stopHour ?? 0, this.stopMinute ?? 0)}`
|
|
1557
|
+
};
|
|
1558
|
+
}
|
|
1559
|
+
return {
|
|
1560
|
+
...super.toLogEntry(ctx),
|
|
1561
|
+
message
|
|
1562
|
+
};
|
|
1563
|
+
}
|
|
1564
|
+
};
|
|
1565
|
+
return ScheduleEntryLockCCYearDayScheduleReport2 = _classThis;
|
|
1566
|
+
})();
|
|
1567
|
+
let ScheduleEntryLockCCYearDayScheduleGet = (() => {
|
|
1568
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.YearDayScheduleGet), (0, import_CommandClassDecorators.expectedCCResponse)(ScheduleEntryLockCCYearDayScheduleReport)];
|
|
1569
|
+
let _classDescriptor;
|
|
1570
|
+
let _classExtraInitializers = [];
|
|
1571
|
+
let _classThis;
|
|
1572
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
1573
|
+
var ScheduleEntryLockCCYearDayScheduleGet2 = class extends _classSuper {
|
|
1574
|
+
static {
|
|
1575
|
+
_classThis = this;
|
|
1576
|
+
}
|
|
1577
|
+
static {
|
|
1578
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1579
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1580
|
+
ScheduleEntryLockCCYearDayScheduleGet2 = _classThis = _classDescriptor.value;
|
|
1581
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1582
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1583
|
+
}
|
|
1584
|
+
constructor(options) {
|
|
1585
|
+
super(options);
|
|
1586
|
+
this.userId = options.userId;
|
|
1587
|
+
this.slotId = options.slotId;
|
|
1588
|
+
}
|
|
1589
|
+
static from(raw, ctx) {
|
|
1590
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
1591
|
+
const userId = raw.payload[0];
|
|
1592
|
+
const slotId = raw.payload[1];
|
|
1593
|
+
return new this({
|
|
1594
|
+
nodeId: ctx.sourceNodeId,
|
|
1595
|
+
userId,
|
|
1596
|
+
slotId
|
|
1597
|
+
});
|
|
1598
|
+
}
|
|
1599
|
+
userId;
|
|
1600
|
+
slotId;
|
|
1601
|
+
serialize(ctx) {
|
|
1602
|
+
this.payload = import_shared.Bytes.from([this.userId, this.slotId]);
|
|
1603
|
+
return super.serialize(ctx);
|
|
1604
|
+
}
|
|
1605
|
+
toLogEntry(ctx) {
|
|
1606
|
+
return {
|
|
1607
|
+
...super.toLogEntry(ctx),
|
|
1608
|
+
message: {
|
|
1609
|
+
"user ID": this.userId,
|
|
1610
|
+
"slot #": this.slotId
|
|
1611
|
+
}
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
};
|
|
1615
|
+
return ScheduleEntryLockCCYearDayScheduleGet2 = _classThis;
|
|
1616
|
+
})();
|
|
1617
|
+
let ScheduleEntryLockCCTimeOffsetSet = (() => {
|
|
1618
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.TimeOffsetSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
1619
|
+
let _classDescriptor;
|
|
1620
|
+
let _classExtraInitializers = [];
|
|
1621
|
+
let _classThis;
|
|
1622
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
1623
|
+
var ScheduleEntryLockCCTimeOffsetSet2 = class extends _classSuper {
|
|
1624
|
+
static {
|
|
1625
|
+
_classThis = this;
|
|
1626
|
+
}
|
|
1627
|
+
static {
|
|
1628
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1629
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1630
|
+
ScheduleEntryLockCCTimeOffsetSet2 = _classThis = _classDescriptor.value;
|
|
1631
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1632
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1633
|
+
}
|
|
1634
|
+
constructor(options) {
|
|
1635
|
+
super(options);
|
|
1636
|
+
this.standardOffset = options.standardOffset;
|
|
1637
|
+
this.dstOffset = options.dstOffset;
|
|
1638
|
+
}
|
|
1639
|
+
static from(raw, ctx) {
|
|
1640
|
+
const { standardOffset, dstOffset } = (0, import_serializers.parseTimezone)(raw.payload);
|
|
1641
|
+
return new this({
|
|
1642
|
+
nodeId: ctx.sourceNodeId,
|
|
1643
|
+
standardOffset,
|
|
1644
|
+
dstOffset
|
|
1645
|
+
});
|
|
1646
|
+
}
|
|
1647
|
+
standardOffset;
|
|
1648
|
+
dstOffset;
|
|
1649
|
+
serialize(ctx) {
|
|
1650
|
+
this.payload = (0, import_serializers.encodeTimezone)({
|
|
1651
|
+
standardOffset: this.standardOffset,
|
|
1652
|
+
dstOffset: this.dstOffset
|
|
1653
|
+
});
|
|
1654
|
+
return super.serialize(ctx);
|
|
1655
|
+
}
|
|
1656
|
+
toLogEntry(ctx) {
|
|
1657
|
+
return {
|
|
1658
|
+
...super.toLogEntry(ctx),
|
|
1659
|
+
message: {
|
|
1660
|
+
"standard time offset": `${this.standardOffset} minutes`,
|
|
1661
|
+
"DST offset": `${this.dstOffset} minutes`
|
|
1662
|
+
}
|
|
1663
|
+
};
|
|
1664
|
+
}
|
|
1665
|
+
};
|
|
1666
|
+
return ScheduleEntryLockCCTimeOffsetSet2 = _classThis;
|
|
1667
|
+
})();
|
|
1668
|
+
let ScheduleEntryLockCCTimeOffsetReport = (() => {
|
|
1669
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.TimeOffsetReport)];
|
|
1670
|
+
let _classDescriptor;
|
|
1671
|
+
let _classExtraInitializers = [];
|
|
1672
|
+
let _classThis;
|
|
1673
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
1674
|
+
var ScheduleEntryLockCCTimeOffsetReport2 = class extends _classSuper {
|
|
1675
|
+
static {
|
|
1676
|
+
_classThis = this;
|
|
1677
|
+
}
|
|
1678
|
+
static {
|
|
1679
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1680
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1681
|
+
ScheduleEntryLockCCTimeOffsetReport2 = _classThis = _classDescriptor.value;
|
|
1682
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1683
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1684
|
+
}
|
|
1685
|
+
constructor(options) {
|
|
1686
|
+
super(options);
|
|
1687
|
+
this.standardOffset = options.standardOffset;
|
|
1688
|
+
this.dstOffset = options.dstOffset;
|
|
1689
|
+
}
|
|
1690
|
+
static from(raw, ctx) {
|
|
1691
|
+
const { standardOffset, dstOffset } = (0, import_serializers.parseTimezone)(raw.payload);
|
|
1692
|
+
return new this({
|
|
1693
|
+
nodeId: ctx.sourceNodeId,
|
|
1694
|
+
standardOffset,
|
|
1695
|
+
dstOffset
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1698
|
+
standardOffset;
|
|
1699
|
+
dstOffset;
|
|
1700
|
+
serialize(ctx) {
|
|
1701
|
+
this.payload = (0, import_serializers.encodeTimezone)({
|
|
1702
|
+
standardOffset: this.standardOffset,
|
|
1703
|
+
dstOffset: this.dstOffset
|
|
1704
|
+
});
|
|
1705
|
+
return super.serialize(ctx);
|
|
1706
|
+
}
|
|
1707
|
+
toLogEntry(ctx) {
|
|
1708
|
+
return {
|
|
1709
|
+
...super.toLogEntry(ctx),
|
|
1710
|
+
message: {
|
|
1711
|
+
"standard time offset": `${this.standardOffset} minutes`,
|
|
1712
|
+
"DST offset": `${this.dstOffset} minutes`
|
|
1713
|
+
}
|
|
1714
|
+
};
|
|
1715
|
+
}
|
|
1716
|
+
};
|
|
1717
|
+
return ScheduleEntryLockCCTimeOffsetReport2 = _classThis;
|
|
1718
|
+
})();
|
|
1719
|
+
let ScheduleEntryLockCCTimeOffsetGet = (() => {
|
|
1720
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.TimeOffsetGet), (0, import_CommandClassDecorators.expectedCCResponse)(ScheduleEntryLockCCTimeOffsetReport)];
|
|
1721
|
+
let _classDescriptor;
|
|
1722
|
+
let _classExtraInitializers = [];
|
|
1723
|
+
let _classThis;
|
|
1724
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
1725
|
+
var ScheduleEntryLockCCTimeOffsetGet2 = class extends _classSuper {
|
|
1726
|
+
static {
|
|
1727
|
+
_classThis = this;
|
|
1728
|
+
}
|
|
1729
|
+
static {
|
|
1730
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1731
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1732
|
+
ScheduleEntryLockCCTimeOffsetGet2 = _classThis = _classDescriptor.value;
|
|
1733
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1734
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1735
|
+
}
|
|
1736
|
+
};
|
|
1737
|
+
return ScheduleEntryLockCCTimeOffsetGet2 = _classThis;
|
|
1738
|
+
})();
|
|
1739
|
+
let ScheduleEntryLockCCDailyRepeatingScheduleSet = (() => {
|
|
1740
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.DailyRepeatingScheduleSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
1741
|
+
let _classDescriptor;
|
|
1742
|
+
let _classExtraInitializers = [];
|
|
1743
|
+
let _classThis;
|
|
1744
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
1745
|
+
var ScheduleEntryLockCCDailyRepeatingScheduleSet2 = class extends _classSuper {
|
|
1746
|
+
static {
|
|
1747
|
+
_classThis = this;
|
|
1748
|
+
}
|
|
1749
|
+
static {
|
|
1750
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1751
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1752
|
+
ScheduleEntryLockCCDailyRepeatingScheduleSet2 = _classThis = _classDescriptor.value;
|
|
1753
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1754
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1755
|
+
}
|
|
1756
|
+
constructor(options) {
|
|
1757
|
+
super(options);
|
|
1758
|
+
this.userId = options.userId;
|
|
1759
|
+
this.slotId = options.slotId;
|
|
1760
|
+
this.action = options.action;
|
|
1761
|
+
if (options.action === import_Types.ScheduleEntryLockSetAction.Set) {
|
|
1762
|
+
this.weekdays = options.weekdays;
|
|
1763
|
+
this.startHour = options.startHour;
|
|
1764
|
+
this.startMinute = options.startMinute;
|
|
1765
|
+
this.durationHour = options.durationHour;
|
|
1766
|
+
this.durationMinute = options.durationMinute;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
static from(raw, ctx) {
|
|
1770
|
+
(0, import_core.validatePayload)(raw.payload.length >= 3);
|
|
1771
|
+
const action = raw.payload[0];
|
|
1772
|
+
(0, import_core.validatePayload)(action === import_Types.ScheduleEntryLockSetAction.Set || action === import_Types.ScheduleEntryLockSetAction.Erase);
|
|
1773
|
+
const userId = raw.payload[1];
|
|
1774
|
+
const slotId = raw.payload[2];
|
|
1775
|
+
if (action !== import_Types.ScheduleEntryLockSetAction.Set) {
|
|
1776
|
+
return new this({
|
|
1777
|
+
nodeId: ctx.sourceNodeId,
|
|
1778
|
+
action,
|
|
1779
|
+
userId,
|
|
1780
|
+
slotId
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1783
|
+
(0, import_core.validatePayload)(raw.payload.length >= 8);
|
|
1784
|
+
const weekdays = (0, import_core.parseBitMask)(raw.payload.subarray(3, 4), import_Types.ScheduleEntryLockWeekday.Sunday);
|
|
1785
|
+
const startHour = raw.payload[4];
|
|
1786
|
+
const startMinute = raw.payload[5];
|
|
1787
|
+
const durationHour = raw.payload[6];
|
|
1788
|
+
const durationMinute = raw.payload[7];
|
|
1789
|
+
return new this({
|
|
1790
|
+
nodeId: ctx.sourceNodeId,
|
|
1791
|
+
action,
|
|
1792
|
+
userId,
|
|
1793
|
+
slotId,
|
|
1794
|
+
weekdays,
|
|
1795
|
+
startHour,
|
|
1796
|
+
startMinute,
|
|
1797
|
+
durationHour,
|
|
1798
|
+
durationMinute
|
|
1799
|
+
});
|
|
1800
|
+
}
|
|
1801
|
+
userId;
|
|
1802
|
+
slotId;
|
|
1803
|
+
action;
|
|
1804
|
+
weekdays;
|
|
1805
|
+
startHour;
|
|
1806
|
+
startMinute;
|
|
1807
|
+
durationHour;
|
|
1808
|
+
durationMinute;
|
|
1809
|
+
serialize(ctx) {
|
|
1810
|
+
this.payload = import_shared.Bytes.from([this.action, this.userId, this.slotId]);
|
|
1811
|
+
if (this.action === import_Types.ScheduleEntryLockSetAction.Set) {
|
|
1812
|
+
this.payload = import_shared.Bytes.concat([
|
|
1813
|
+
this.payload,
|
|
1814
|
+
(0, import_core.encodeBitMask)(this.weekdays, import_Types.ScheduleEntryLockWeekday.Saturday, import_Types.ScheduleEntryLockWeekday.Sunday),
|
|
1815
|
+
import_shared.Bytes.from([
|
|
1816
|
+
this.startHour,
|
|
1817
|
+
this.startMinute,
|
|
1818
|
+
this.durationHour,
|
|
1819
|
+
this.durationMinute
|
|
1820
|
+
])
|
|
1821
|
+
]);
|
|
1822
|
+
} else {
|
|
1823
|
+
this.payload = import_shared.Bytes.concat([this.payload, import_shared.Bytes.alloc(5, 255)]);
|
|
1824
|
+
}
|
|
1825
|
+
return super.serialize(ctx);
|
|
1826
|
+
}
|
|
1827
|
+
toLogEntry(ctx) {
|
|
1828
|
+
let message;
|
|
1829
|
+
if (this.action === import_Types.ScheduleEntryLockSetAction.Erase) {
|
|
1830
|
+
message = {
|
|
1831
|
+
"user ID": this.userId,
|
|
1832
|
+
"slot #": this.slotId,
|
|
1833
|
+
action: "erase"
|
|
1834
|
+
};
|
|
1835
|
+
} else {
|
|
1836
|
+
message = {
|
|
1837
|
+
"user ID": this.userId,
|
|
1838
|
+
"slot #": this.slotId,
|
|
1839
|
+
action: "set",
|
|
1840
|
+
weekdays: this.weekdays.map((w) => (0, import_shared.getEnumMemberName)(import_Types.ScheduleEntryLockWeekday, w)).join(", "),
|
|
1841
|
+
"start time": (0, import_shared.formatTime)(this.startHour ?? 0, this.startMinute ?? 0),
|
|
1842
|
+
duration: (0, import_shared.formatTime)(this.durationHour ?? 0, this.durationMinute ?? 0)
|
|
1843
|
+
};
|
|
1844
|
+
}
|
|
1845
|
+
return {
|
|
1846
|
+
...super.toLogEntry(ctx),
|
|
1847
|
+
message
|
|
1848
|
+
};
|
|
1849
|
+
}
|
|
1850
|
+
};
|
|
1851
|
+
return ScheduleEntryLockCCDailyRepeatingScheduleSet2 = _classThis;
|
|
1852
|
+
})();
|
|
1853
|
+
let ScheduleEntryLockCCDailyRepeatingScheduleReport = (() => {
|
|
1854
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.DailyRepeatingScheduleReport)];
|
|
1855
|
+
let _classDescriptor;
|
|
1856
|
+
let _classExtraInitializers = [];
|
|
1857
|
+
let _classThis;
|
|
1858
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
1859
|
+
var ScheduleEntryLockCCDailyRepeatingScheduleReport2 = class extends _classSuper {
|
|
1860
|
+
static {
|
|
1861
|
+
_classThis = this;
|
|
1862
|
+
}
|
|
1863
|
+
static {
|
|
1864
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1865
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1866
|
+
ScheduleEntryLockCCDailyRepeatingScheduleReport2 = _classThis = _classDescriptor.value;
|
|
1867
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1868
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1869
|
+
}
|
|
1870
|
+
constructor(options) {
|
|
1871
|
+
super(options);
|
|
1872
|
+
this.userId = options.userId;
|
|
1873
|
+
this.slotId = options.slotId;
|
|
1874
|
+
this.weekdays = options.weekdays;
|
|
1875
|
+
this.startHour = options.startHour;
|
|
1876
|
+
this.startMinute = options.startMinute;
|
|
1877
|
+
this.durationHour = options.durationHour;
|
|
1878
|
+
this.durationMinute = options.durationMinute;
|
|
1879
|
+
}
|
|
1880
|
+
static from(raw, ctx) {
|
|
1881
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
1882
|
+
const userId = raw.payload[0];
|
|
1883
|
+
const slotId = raw.payload[1];
|
|
1884
|
+
if (raw.payload.length >= 7 && raw.payload[2] !== 0) {
|
|
1885
|
+
const weekdays = (0, import_core.parseBitMask)(raw.payload.subarray(2, 3), import_Types.ScheduleEntryLockWeekday.Sunday);
|
|
1886
|
+
const startHour = raw.payload[3];
|
|
1887
|
+
const startMinute = raw.payload[4];
|
|
1888
|
+
const durationHour = raw.payload[5];
|
|
1889
|
+
const durationMinute = raw.payload[6];
|
|
1890
|
+
return new this({
|
|
1891
|
+
nodeId: ctx.sourceNodeId,
|
|
1892
|
+
userId,
|
|
1893
|
+
slotId,
|
|
1894
|
+
weekdays,
|
|
1895
|
+
startHour,
|
|
1896
|
+
startMinute,
|
|
1897
|
+
durationHour,
|
|
1898
|
+
durationMinute
|
|
1899
|
+
});
|
|
1900
|
+
} else {
|
|
1901
|
+
return new this({
|
|
1902
|
+
nodeId: ctx.sourceNodeId,
|
|
1903
|
+
userId,
|
|
1904
|
+
slotId
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
userId;
|
|
1909
|
+
slotId;
|
|
1910
|
+
weekdays;
|
|
1911
|
+
startHour;
|
|
1912
|
+
startMinute;
|
|
1913
|
+
durationHour;
|
|
1914
|
+
durationMinute;
|
|
1915
|
+
persistValues(ctx) {
|
|
1916
|
+
if (!super.persistValues(ctx))
|
|
1917
|
+
return false;
|
|
1918
|
+
persistSchedule.call(this, ctx, import_Types.ScheduleEntryLockScheduleKind.DailyRepeating, this.userId, this.slotId, this.weekdays?.length ? {
|
|
1919
|
+
weekdays: this.weekdays,
|
|
1920
|
+
startHour: this.startHour,
|
|
1921
|
+
startMinute: this.startMinute,
|
|
1922
|
+
durationHour: this.durationHour,
|
|
1923
|
+
durationMinute: this.durationMinute
|
|
1924
|
+
} : false);
|
|
1925
|
+
return true;
|
|
1926
|
+
}
|
|
1927
|
+
serialize(ctx) {
|
|
1928
|
+
this.payload = import_shared.Bytes.from([this.userId, this.slotId]);
|
|
1929
|
+
if (this.weekdays) {
|
|
1930
|
+
this.payload = import_shared.Bytes.concat([
|
|
1931
|
+
this.payload,
|
|
1932
|
+
(0, import_core.encodeBitMask)(this.weekdays, import_Types.ScheduleEntryLockWeekday.Saturday, import_Types.ScheduleEntryLockWeekday.Sunday),
|
|
1933
|
+
import_shared.Bytes.from([
|
|
1934
|
+
this.startHour,
|
|
1935
|
+
this.startMinute,
|
|
1936
|
+
this.durationHour,
|
|
1937
|
+
this.durationMinute
|
|
1938
|
+
])
|
|
1939
|
+
]);
|
|
1940
|
+
} else {
|
|
1941
|
+
this.payload = import_shared.Bytes.concat([this.payload, import_shared.Bytes.alloc(5, 0)]);
|
|
1942
|
+
}
|
|
1943
|
+
return super.serialize(ctx);
|
|
1944
|
+
}
|
|
1945
|
+
toLogEntry(ctx) {
|
|
1946
|
+
let message;
|
|
1947
|
+
if (!this.weekdays) {
|
|
1948
|
+
message = {
|
|
1949
|
+
"user ID": this.userId,
|
|
1950
|
+
"slot #": this.slotId,
|
|
1951
|
+
schedule: "(empty)"
|
|
1952
|
+
};
|
|
1953
|
+
} else {
|
|
1954
|
+
message = {
|
|
1955
|
+
"user ID": this.userId,
|
|
1956
|
+
"slot #": this.slotId,
|
|
1957
|
+
action: "set",
|
|
1958
|
+
weekdays: this.weekdays.map((w) => (0, import_shared.getEnumMemberName)(import_Types.ScheduleEntryLockWeekday, w)).join(", "),
|
|
1959
|
+
"start time": (0, import_shared.formatTime)(this.startHour ?? 0, this.startMinute ?? 0),
|
|
1960
|
+
duration: (0, import_shared.formatTime)(this.durationHour ?? 0, this.durationMinute ?? 0)
|
|
1961
|
+
};
|
|
1962
|
+
}
|
|
1963
|
+
return {
|
|
1964
|
+
...super.toLogEntry(ctx),
|
|
1965
|
+
message
|
|
1966
|
+
};
|
|
1967
|
+
}
|
|
1968
|
+
};
|
|
1969
|
+
return ScheduleEntryLockCCDailyRepeatingScheduleReport2 = _classThis;
|
|
1970
|
+
})();
|
|
1971
|
+
let ScheduleEntryLockCCDailyRepeatingScheduleGet = (() => {
|
|
1972
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ScheduleEntryLockCommand.DailyRepeatingScheduleGet), (0, import_CommandClassDecorators.expectedCCResponse)(ScheduleEntryLockCCDailyRepeatingScheduleReport)];
|
|
1973
|
+
let _classDescriptor;
|
|
1974
|
+
let _classExtraInitializers = [];
|
|
1975
|
+
let _classThis;
|
|
1976
|
+
let _classSuper = ScheduleEntryLockCC;
|
|
1977
|
+
var ScheduleEntryLockCCDailyRepeatingScheduleGet2 = class extends _classSuper {
|
|
1978
|
+
static {
|
|
1979
|
+
_classThis = this;
|
|
1980
|
+
}
|
|
1981
|
+
static {
|
|
1982
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1983
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1984
|
+
ScheduleEntryLockCCDailyRepeatingScheduleGet2 = _classThis = _classDescriptor.value;
|
|
1985
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1986
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1987
|
+
}
|
|
1988
|
+
constructor(options) {
|
|
1989
|
+
super(options);
|
|
1990
|
+
this.userId = options.userId;
|
|
1991
|
+
this.slotId = options.slotId;
|
|
1992
|
+
}
|
|
1993
|
+
static from(raw, ctx) {
|
|
1994
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
1995
|
+
const userId = raw.payload[0];
|
|
1996
|
+
const slotId = raw.payload[1];
|
|
1997
|
+
return new this({
|
|
1998
|
+
nodeId: ctx.sourceNodeId,
|
|
1999
|
+
userId,
|
|
2000
|
+
slotId
|
|
2001
|
+
});
|
|
2002
|
+
}
|
|
2003
|
+
userId;
|
|
2004
|
+
slotId;
|
|
2005
|
+
serialize(ctx) {
|
|
2006
|
+
this.payload = import_shared.Bytes.from([this.userId, this.slotId]);
|
|
2007
|
+
return super.serialize(ctx);
|
|
2008
|
+
}
|
|
2009
|
+
toLogEntry(ctx) {
|
|
2010
|
+
return {
|
|
2011
|
+
...super.toLogEntry(ctx),
|
|
2012
|
+
message: {
|
|
2013
|
+
"user ID": this.userId,
|
|
2014
|
+
"slot #": this.slotId
|
|
2015
|
+
}
|
|
2016
|
+
};
|
|
2017
|
+
}
|
|
2018
|
+
};
|
|
2019
|
+
return ScheduleEntryLockCCDailyRepeatingScheduleGet2 = _classThis;
|
|
2020
|
+
})();
|
|
2021
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2022
|
+
0 && (module.exports = {
|
|
2023
|
+
ScheduleEntryLockCC,
|
|
2024
|
+
ScheduleEntryLockCCAPI,
|
|
2025
|
+
ScheduleEntryLockCCDailyRepeatingScheduleGet,
|
|
2026
|
+
ScheduleEntryLockCCDailyRepeatingScheduleReport,
|
|
2027
|
+
ScheduleEntryLockCCDailyRepeatingScheduleSet,
|
|
2028
|
+
ScheduleEntryLockCCEnableAllSet,
|
|
2029
|
+
ScheduleEntryLockCCEnableSet,
|
|
2030
|
+
ScheduleEntryLockCCSupportedGet,
|
|
2031
|
+
ScheduleEntryLockCCSupportedReport,
|
|
2032
|
+
ScheduleEntryLockCCTimeOffsetGet,
|
|
2033
|
+
ScheduleEntryLockCCTimeOffsetReport,
|
|
2034
|
+
ScheduleEntryLockCCTimeOffsetSet,
|
|
2035
|
+
ScheduleEntryLockCCValues,
|
|
2036
|
+
ScheduleEntryLockCCWeekDayScheduleGet,
|
|
2037
|
+
ScheduleEntryLockCCWeekDayScheduleReport,
|
|
2038
|
+
ScheduleEntryLockCCWeekDayScheduleSet,
|
|
2039
|
+
ScheduleEntryLockCCYearDayScheduleGet,
|
|
2040
|
+
ScheduleEntryLockCCYearDayScheduleReport,
|
|
2041
|
+
ScheduleEntryLockCCYearDayScheduleSet
|
|
2042
|
+
});
|
|
2043
|
+
//# sourceMappingURL=ScheduleEntryLockCC.js.map
|