@zwave-js/cc 14.0.0-beta.4 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/cc/AlarmSensorCC.js +381 -266
- package/build/cjs/cc/AlarmSensorCC.js.map +3 -3
- package/build/cjs/cc/AssociationCC.js +669 -503
- package/build/cjs/cc/AssociationCC.js.map +3 -3
- package/build/cjs/cc/AssociationGroupInfoCC.js +633 -492
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +3 -3
- package/build/cjs/cc/BarrierOperatorCC.js +595 -429
- package/build/cjs/cc/BarrierOperatorCC.js.map +3 -3
- package/build/cjs/cc/BasicCC.js +354 -260
- package/build/cjs/cc/BasicCC.js.map +3 -3
- package/build/cjs/cc/BatteryCC.js +427 -345
- package/build/cjs/cc/BatteryCC.js.map +3 -3
- package/build/cjs/cc/BinarySensorCC.js +391 -276
- package/build/cjs/cc/BinarySensorCC.js.map +3 -3
- package/build/cjs/cc/BinarySwitchCC.js +347 -253
- package/build/cjs/cc/BinarySwitchCC.js.map +3 -3
- package/build/cjs/cc/CRC16CC.js +160 -85
- package/build/cjs/cc/CRC16CC.js.map +3 -3
- package/build/cjs/cc/CentralSceneCC.js +459 -324
- package/build/cjs/cc/CentralSceneCC.js.map +3 -3
- package/build/cjs/cc/ClimateControlScheduleCC.js +459 -293
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +3 -3
- package/build/cjs/cc/ClockCC.js +254 -150
- package/build/cjs/cc/ClockCC.js.map +3 -3
- package/build/cjs/cc/ColorSwitchCC.js +758 -610
- package/build/cjs/cc/ColorSwitchCC.js.map +3 -3
- package/build/cjs/cc/ConfigurationCC.js +1700 -1453
- package/build/cjs/cc/ConfigurationCC.js.map +3 -3
- package/build/cjs/cc/DeviceResetLocallyCC.js +125 -49
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +3 -3
- package/build/cjs/cc/DoorLockCC.js +904 -777
- package/build/cjs/cc/DoorLockCC.js.map +3 -3
- package/build/cjs/cc/DoorLockLoggingCC.js +321 -206
- package/build/cjs/cc/DoorLockLoggingCC.js.map +3 -3
- package/build/cjs/cc/EnergyProductionCC.js +249 -160
- package/build/cjs/cc/EnergyProductionCC.js.map +3 -3
- package/build/cjs/cc/EntryControlCC.js +619 -458
- package/build/cjs/cc/EntryControlCC.js.map +3 -3
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +898 -698
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +3 -3
- package/build/cjs/cc/HailCC.js +57 -11
- package/build/cjs/cc/HailCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlModeCC.js +359 -233
- package/build/cjs/cc/HumidityControlModeCC.js.map +3 -3
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +189 -103
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +3 -3
- package/build/cjs/cc/HumidityControlSetpointCC.js +682 -495
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +3 -3
- package/build/cjs/cc/InclusionControllerCC.js +205 -114
- package/build/cjs/cc/InclusionControllerCC.js.map +3 -3
- package/build/cjs/cc/IndicatorCC.js +897 -736
- package/build/cjs/cc/IndicatorCC.js.map +3 -3
- package/build/cjs/cc/IrrigationCC.js +1651 -1405
- package/build/cjs/cc/IrrigationCC.js.map +3 -3
- package/build/cjs/cc/LanguageCC.js +268 -171
- package/build/cjs/cc/LanguageCC.js.map +3 -3
- package/build/cjs/cc/LockCC.js +254 -154
- package/build/cjs/cc/LockCC.js.map +3 -3
- package/build/cjs/cc/ManufacturerProprietaryCC.js +189 -129
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerSpecificCC.js +319 -213
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +3 -3
- package/build/cjs/cc/MeterCC.js +827 -707
- package/build/cjs/cc/MeterCC.js.map +3 -3
- package/build/cjs/cc/MultiChannelAssociationCC.js +612 -478
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +3 -3
- package/build/cjs/cc/MultiChannelCC.js +1037 -819
- package/build/cjs/cc/MultiChannelCC.js.map +3 -3
- package/build/cjs/cc/MultiCommandCC.js +172 -97
- package/build/cjs/cc/MultiCommandCC.js.map +3 -3
- package/build/cjs/cc/MultilevelSensorCC.js +589 -449
- package/build/cjs/cc/MultilevelSensorCC.js.map +3 -3
- package/build/cjs/cc/MultilevelSwitchCC.js +587 -439
- package/build/cjs/cc/MultilevelSwitchCC.js.map +3 -3
- package/build/cjs/cc/NoOperationCC.js +89 -27
- package/build/cjs/cc/NoOperationCC.js.map +2 -2
- package/build/cjs/cc/NodeNamingCC.js +417 -277
- package/build/cjs/cc/NodeNamingCC.js.map +3 -3
- package/build/cjs/cc/NotificationCC.js +972 -818
- package/build/cjs/cc/NotificationCC.js.map +3 -3
- package/build/cjs/cc/PowerlevelCC.js +450 -303
- package/build/cjs/cc/PowerlevelCC.js.map +3 -3
- package/build/cjs/cc/ProtectionCC.js +686 -494
- package/build/cjs/cc/ProtectionCC.js.map +3 -3
- package/build/cjs/cc/SceneActivationCC.js +165 -97
- package/build/cjs/cc/SceneActivationCC.js.map +3 -3
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +346 -243
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +3 -3
- package/build/cjs/cc/SceneControllerConfigurationCC.js +401 -298
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +3 -3
- package/build/cjs/cc/ScheduleEntryLockCC.js +1552 -1272
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +3 -3
- package/build/cjs/cc/Security2CC.js +1483 -1219
- package/build/cjs/cc/Security2CC.js.map +3 -3
- package/build/cjs/cc/SecurityCC.js +839 -619
- package/build/cjs/cc/SecurityCC.js.map +3 -3
- package/build/cjs/cc/SoundSwitchCC.js +707 -515
- package/build/cjs/cc/SoundSwitchCC.js.map +3 -3
- package/build/cjs/cc/SupervisionCC.js +327 -237
- package/build/cjs/cc/SupervisionCC.js.map +3 -3
- package/build/cjs/cc/ThermostatFanModeCC.js +386 -263
- package/build/cjs/cc/ThermostatFanModeCC.js.map +3 -3
- package/build/cjs/cc/ThermostatFanStateCC.js +192 -106
- package/build/cjs/cc/ThermostatFanStateCC.js.map +3 -3
- package/build/cjs/cc/ThermostatModeCC.js +425 -302
- package/build/cjs/cc/ThermostatModeCC.js.map +3 -3
- package/build/cjs/cc/ThermostatOperatingStateCC.js +188 -102
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +3 -3
- package/build/cjs/cc/ThermostatSetbackCC.js +277 -173
- package/build/cjs/cc/ThermostatSetbackCC.js.map +3 -3
- package/build/cjs/cc/ThermostatSetpointCC.js +645 -491
- package/build/cjs/cc/ThermostatSetpointCC.js.map +3 -3
- package/build/cjs/cc/TimeCC.js +515 -353
- package/build/cjs/cc/TimeCC.js.map +3 -3
- package/build/cjs/cc/TimeParametersCC.js +302 -202
- package/build/cjs/cc/TimeParametersCC.js.map +3 -3
- package/build/cjs/cc/TransportServiceCC.js +433 -315
- package/build/cjs/cc/TransportServiceCC.js.map +3 -3
- package/build/cjs/cc/UserCodeCC.js +1385 -1102
- package/build/cjs/cc/UserCodeCC.js.map +3 -3
- package/build/cjs/cc/VersionCC.js +696 -562
- package/build/cjs/cc/VersionCC.js.map +3 -3
- package/build/cjs/cc/WakeUpCC.js +499 -346
- package/build/cjs/cc/WakeUpCC.js.map +3 -3
- package/build/cjs/cc/WindowCoveringCC.js +626 -478
- package/build/cjs/cc/WindowCoveringCC.js.map +3 -3
- package/build/cjs/cc/ZWaveLongRangeCC.js +57 -10
- package/build/cjs/cc/ZWaveLongRangeCC.js.map +2 -2
- package/build/cjs/cc/ZWavePlusCC.js +233 -159
- package/build/cjs/cc/ZWavePlusCC.js.map +3 -3
- package/build/cjs/cc/ZWaveProtocolCC.js +1515 -948
- package/build/cjs/cc/ZWaveProtocolCC.js.map +3 -3
- package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +4 -4
- package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +1 -1
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +395 -274
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +3 -3
- package/build/cjs/lib/CommandClassDecorators.d.ts +11 -15
- package/build/cjs/lib/CommandClassDecorators.js +19 -20
- package/build/cjs/lib/CommandClassDecorators.js.map +2 -2
- package/build/cjs/lib/Security2/Extension.d.ts +1 -1
- package/build/cjs/lib/Security2/Extension.js +217 -126
- package/build/cjs/lib/Security2/Extension.js.map +3 -3
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
- package/build/esm/cc/AlarmSensorCC.js +389 -291
- package/build/esm/cc/AlarmSensorCC.js.map +1 -1
- package/build/esm/cc/AssociationCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationCC.js +678 -537
- package/build/esm/cc/AssociationCC.js.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.js +659 -539
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.js +634 -493
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
- package/build/esm/cc/BasicCC.d.ts.map +1 -1
- package/build/esm/cc/BasicCC.js +380 -302
- package/build/esm/cc/BasicCC.js.map +1 -1
- package/build/esm/cc/BatteryCC.d.ts.map +1 -1
- package/build/esm/cc/BatteryCC.js +449 -384
- package/build/esm/cc/BatteryCC.js.map +1 -1
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySensorCC.js +395 -297
- package/build/esm/cc/BinarySensorCC.js.map +1 -1
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySwitchCC.js +353 -274
- package/build/esm/cc/BinarySwitchCC.js.map +1 -1
- package/build/esm/cc/CRC16CC.js +162 -98
- package/build/esm/cc/CRC16CC.js.map +1 -1
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
- package/build/esm/cc/CentralSceneCC.js +465 -351
- package/build/esm/cc/CentralSceneCC.js.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.js +454 -313
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/esm/cc/ClockCC.js +248 -159
- package/build/esm/cc/ClockCC.js.map +1 -1
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/ColorSwitchCC.js +802 -677
- package/build/esm/cc/ColorSwitchCC.js.map +1 -1
- package/build/esm/cc/ConfigurationCC.js +1899 -1687
- package/build/esm/cc/ConfigurationCC.js.map +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.js +124 -59
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockCC.js +951 -849
- package/build/esm/cc/DoorLockCC.js.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.js +316 -218
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/esm/cc/EnergyProductionCC.js +240 -164
- package/build/esm/cc/EnergyProductionCC.js.map +1 -1
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
- package/build/esm/cc/EntryControlCC.js +629 -493
- package/build/esm/cc/EntryControlCC.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +938 -769
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/esm/cc/HailCC.js +51 -12
- package/build/esm/cc/HailCC.js.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.js +357 -250
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.js +182 -109
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.js +706 -546
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/esm/cc/InclusionControllerCC.js +197 -119
- package/build/esm/cc/InclusionControllerCC.js.map +1 -1
- package/build/esm/cc/IndicatorCC.js +973 -835
- package/build/esm/cc/IndicatorCC.js.map +1 -1
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
- package/build/esm/cc/IrrigationCC.js +1697 -1496
- package/build/esm/cc/IrrigationCC.js.map +1 -1
- package/build/esm/cc/LanguageCC.d.ts.map +1 -1
- package/build/esm/cc/LanguageCC.js +266 -184
- package/build/esm/cc/LanguageCC.js.map +1 -1
- package/build/esm/cc/LockCC.d.ts.map +1 -1
- package/build/esm/cc/LockCC.js +247 -162
- package/build/esm/cc/LockCC.js.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.js +192 -141
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.js +312 -223
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/esm/cc/MeterCC.d.ts.map +1 -1
- package/build/esm/cc/MeterCC.js +896 -795
- package/build/esm/cc/MeterCC.js.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.js +631 -518
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelCC.js +1106 -921
- package/build/esm/cc/MultiChannelCC.js.map +1 -1
- package/build/esm/cc/MultiCommandCC.js +166 -102
- package/build/esm/cc/MultiCommandCC.js.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.js +616 -497
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.js +621 -496
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/esm/cc/NoOperationCC.js +82 -29
- package/build/esm/cc/NoOperationCC.js.map +1 -1
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/esm/cc/NodeNamingCC.js +413 -294
- package/build/esm/cc/NodeNamingCC.js.map +1 -1
- package/build/esm/cc/NotificationCC.d.ts.map +1 -1
- package/build/esm/cc/NotificationCC.js +1097 -966
- package/build/esm/cc/NotificationCC.js.map +1 -1
- package/build/esm/cc/PowerlevelCC.js +437 -311
- package/build/esm/cc/PowerlevelCC.js.map +1 -1
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
- package/build/esm/cc/ProtectionCC.js +704 -543
- package/build/esm/cc/ProtectionCC.js.map +1 -1
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActivationCC.js +157 -100
- package/build/esm/cc/SceneActivationCC.js.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.js +357 -269
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.js +434 -346
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.js +1596 -1357
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/esm/cc/Security2CC.js +1633 -1406
- package/build/esm/cc/Security2CC.js.map +1 -1
- package/build/esm/cc/SecurityCC.js +876 -687
- package/build/esm/cc/SecurityCC.js.map +1 -1
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/SoundSwitchCC.js +689 -526
- package/build/esm/cc/SoundSwitchCC.js.map +1 -1
- package/build/esm/cc/SupervisionCC.js +349 -272
- package/build/esm/cc/SupervisionCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.js +388 -284
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.js +184 -111
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatModeCC.js +435 -331
- package/build/esm/cc/ThermostatModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.js +180 -107
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetbackCC.js +274 -185
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.js +674 -543
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/esm/cc/TimeCC.js +499 -360
- package/build/esm/cc/TimeCC.js.map +1 -1
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
- package/build/esm/cc/TimeParametersCC.js +296 -211
- package/build/esm/cc/TimeParametersCC.js.map +1 -1
- package/build/esm/cc/TransportServiceCC.js +464 -363
- package/build/esm/cc/TransportServiceCC.js.map +1 -1
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
- package/build/esm/cc/UserCodeCC.js +1443 -1205
- package/build/esm/cc/UserCodeCC.js.map +1 -1
- package/build/esm/cc/VersionCC.d.ts.map +1 -1
- package/build/esm/cc/VersionCC.js +744 -635
- package/build/esm/cc/VersionCC.js.map +1 -1
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
- package/build/esm/cc/WakeUpCC.js +494 -364
- package/build/esm/cc/WakeUpCC.js.map +1 -1
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
- package/build/esm/cc/WindowCoveringCC.js +655 -530
- package/build/esm/cc/WindowCoveringCC.js.map +1 -1
- package/build/esm/cc/ZWaveLongRangeCC.js +51 -11
- package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -1
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
- package/build/esm/cc/ZWavePlusCC.js +223 -162
- package/build/esm/cc/ZWavePlusCC.js.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.js +1443 -953
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +4 -4
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -1
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +390 -286
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/esm/lib/CommandClassDecorators.d.ts +11 -15
- package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -1
- package/build/esm/lib/CommandClassDecorators.js +24 -24
- package/build/esm/lib/CommandClassDecorators.js.map +1 -1
- package/build/esm/lib/Security2/Extension.d.ts +1 -1
- package/build/esm/lib/Security2/Extension.d.ts.map +1 -1
- package/build/esm/lib/Security2/Extension.js +207 -123
- package/build/esm/lib/Security2/Extension.js.map +1 -1
- package/package.json +6 -6
|
@@ -36,13 +36,45 @@ var import_CommandClass = require("../lib/CommandClass.js");
|
|
|
36
36
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
37
37
|
var import_Values = require("../lib/Values.js");
|
|
38
38
|
var import_Types = require("../lib/_Types.js");
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
40
|
+
function accept(f) {
|
|
41
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
42
|
+
return f;
|
|
43
|
+
}
|
|
44
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
45
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
46
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
47
|
+
var _, done = false;
|
|
48
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
49
|
+
var context = {};
|
|
50
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
51
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
52
|
+
context.addInitializer = function(f) {
|
|
53
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
54
|
+
extraInitializers.push(accept(f || null));
|
|
55
|
+
};
|
|
56
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
57
|
+
if (kind === "accessor") {
|
|
58
|
+
if (result === void 0) continue;
|
|
59
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
60
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
61
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
62
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
63
|
+
} else if (_ = accept(result)) {
|
|
64
|
+
if (kind === "field") initializers.unshift(_);
|
|
65
|
+
else descriptor[key] = _;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
69
|
+
done = true;
|
|
70
|
+
};
|
|
71
|
+
var __runInitializers = function(thisArg, initializers, value) {
|
|
72
|
+
var useValue = arguments.length > 2;
|
|
73
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
74
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
75
|
+
}
|
|
76
|
+
return useValue ? value : void 0;
|
|
44
77
|
};
|
|
45
|
-
var NodeNamingAndLocationCCNameReport_1, NodeNamingAndLocationCCLocationReport_1;
|
|
46
78
|
function __assertType(argName, typeName, boundHasError) {
|
|
47
79
|
const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
|
|
48
80
|
if (boundHasError()) {
|
|
@@ -70,285 +102,393 @@ const NodeNamingAndLocationCCValues = Object.freeze({
|
|
|
70
102
|
function isASCII(str) {
|
|
71
103
|
return /^[\x00-\x7F]*$/.test(str);
|
|
72
104
|
}
|
|
73
|
-
let NodeNamingAndLocationCCAPI =
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
case
|
|
94
|
-
|
|
95
|
-
case
|
|
96
|
-
return
|
|
105
|
+
let NodeNamingAndLocationCCAPI = (() => {
|
|
106
|
+
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses["Node Naming and Location"])];
|
|
107
|
+
let _classDescriptor;
|
|
108
|
+
let _classExtraInitializers = [];
|
|
109
|
+
let _classThis;
|
|
110
|
+
let _classSuper = import_API.PhysicalCCAPI;
|
|
111
|
+
var NodeNamingAndLocationCCAPI2 = class extends _classSuper {
|
|
112
|
+
static {
|
|
113
|
+
_classThis = this;
|
|
114
|
+
}
|
|
115
|
+
static {
|
|
116
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
117
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
118
|
+
NodeNamingAndLocationCCAPI2 = _classThis = _classDescriptor.value;
|
|
119
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
120
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
121
|
+
}
|
|
122
|
+
supportsCommand(cmd) {
|
|
123
|
+
switch (cmd) {
|
|
124
|
+
case import_Types.NodeNamingAndLocationCommand.NameGet:
|
|
125
|
+
case import_Types.NodeNamingAndLocationCommand.NameSet:
|
|
126
|
+
case import_Types.NodeNamingAndLocationCommand.LocationGet:
|
|
127
|
+
case import_Types.NodeNamingAndLocationCommand.LocationSet:
|
|
128
|
+
return true;
|
|
97
129
|
}
|
|
98
|
-
return
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
switch (property) {
|
|
104
|
-
case "name":
|
|
105
|
-
return this.getName();
|
|
106
|
-
case "location":
|
|
107
|
-
return this.getLocation();
|
|
108
|
-
default:
|
|
130
|
+
return super.supportsCommand(cmd);
|
|
131
|
+
}
|
|
132
|
+
get [import_API.SET_VALUE]() {
|
|
133
|
+
return async function({ property }, value) {
|
|
134
|
+
if (property !== "name" && property !== "location") {
|
|
109
135
|
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
136
|
+
}
|
|
137
|
+
if (typeof value !== "string") {
|
|
138
|
+
(0, import_API.throwWrongValueType)(this.ccId, property, "string", typeof value);
|
|
139
|
+
}
|
|
140
|
+
switch (property) {
|
|
141
|
+
case "name":
|
|
142
|
+
return this.setName(value);
|
|
143
|
+
case "location":
|
|
144
|
+
return this.setLocation(value);
|
|
145
|
+
}
|
|
146
|
+
return void 0;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
get [import_API.POLL_VALUE]() {
|
|
150
|
+
return async function({ property }) {
|
|
151
|
+
switch (property) {
|
|
152
|
+
case "name":
|
|
153
|
+
return this.getName();
|
|
154
|
+
case "location":
|
|
155
|
+
return this.getLocation();
|
|
156
|
+
default:
|
|
157
|
+
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
async getName() {
|
|
162
|
+
this.assertSupportsCommand(import_Types.NodeNamingAndLocationCommand, import_Types.NodeNamingAndLocationCommand.NameGet);
|
|
163
|
+
const cc = new NodeNamingAndLocationCCNameGet({
|
|
164
|
+
nodeId: this.endpoint.nodeId,
|
|
165
|
+
endpointIndex: this.endpoint.index
|
|
166
|
+
});
|
|
167
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
168
|
+
return response?.name;
|
|
169
|
+
}
|
|
170
|
+
async setName(name) {
|
|
171
|
+
__assertType("name", "string", __assertType__string.bind(void 0, name));
|
|
172
|
+
this.assertSupportsCommand(import_Types.NodeNamingAndLocationCommand, import_Types.NodeNamingAndLocationCommand.NameSet);
|
|
173
|
+
const cc = new NodeNamingAndLocationCCNameSet({
|
|
174
|
+
nodeId: this.endpoint.nodeId,
|
|
175
|
+
endpointIndex: this.endpoint.index,
|
|
176
|
+
name
|
|
177
|
+
});
|
|
178
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
179
|
+
}
|
|
180
|
+
async getLocation() {
|
|
181
|
+
this.assertSupportsCommand(import_Types.NodeNamingAndLocationCommand, import_Types.NodeNamingAndLocationCommand.LocationGet);
|
|
182
|
+
const cc = new NodeNamingAndLocationCCLocationGet({
|
|
183
|
+
nodeId: this.endpoint.nodeId,
|
|
184
|
+
endpointIndex: this.endpoint.index
|
|
185
|
+
});
|
|
186
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
187
|
+
return response?.location;
|
|
188
|
+
}
|
|
189
|
+
async setLocation(location) {
|
|
190
|
+
__assertType("location", "string", __assertType__string.bind(void 0, location));
|
|
191
|
+
this.assertSupportsCommand(import_Types.NodeNamingAndLocationCommand, import_Types.NodeNamingAndLocationCommand.LocationSet);
|
|
192
|
+
const cc = new NodeNamingAndLocationCCLocationSet({
|
|
193
|
+
nodeId: this.endpoint.nodeId,
|
|
194
|
+
endpointIndex: this.endpoint.index,
|
|
195
|
+
location
|
|
196
|
+
});
|
|
197
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
return NodeNamingAndLocationCCAPI2 = _classThis;
|
|
201
|
+
})();
|
|
202
|
+
let NodeNamingAndLocationCC = (() => {
|
|
203
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Node Naming and Location"]), (0, import_CommandClassDecorators.implementedVersion)(1), (0, import_CommandClassDecorators.ccValues)(NodeNamingAndLocationCCValues)];
|
|
204
|
+
let _classDescriptor;
|
|
205
|
+
let _classExtraInitializers = [];
|
|
206
|
+
let _classThis;
|
|
207
|
+
let _classSuper = import_CommandClass.CommandClass;
|
|
208
|
+
var NodeNamingAndLocationCC2 = class extends _classSuper {
|
|
209
|
+
static {
|
|
210
|
+
_classThis = this;
|
|
211
|
+
}
|
|
212
|
+
static {
|
|
213
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
214
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
215
|
+
NodeNamingAndLocationCC2 = _classThis = _classDescriptor.value;
|
|
216
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
217
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
218
|
+
}
|
|
219
|
+
skipEndpointInterview() {
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
async interview(ctx) {
|
|
223
|
+
const node = this.getNode(ctx);
|
|
181
224
|
ctx.logNode(node.id, {
|
|
182
|
-
|
|
183
|
-
|
|
225
|
+
endpoint: this.endpointIndex,
|
|
226
|
+
message: `Interviewing ${this.ccName}...`,
|
|
227
|
+
direction: "none"
|
|
184
228
|
});
|
|
229
|
+
await this.refreshValues(ctx);
|
|
230
|
+
this.setInterviewComplete(ctx, true);
|
|
185
231
|
}
|
|
186
|
-
ctx
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
232
|
+
async refreshValues(ctx) {
|
|
233
|
+
const node = this.getNode(ctx);
|
|
234
|
+
const endpoint = this.getEndpoint(ctx);
|
|
235
|
+
const api = import_API.CCAPI.create(import_safe.CommandClasses["Node Naming and Location"], ctx, endpoint).withOptions({
|
|
236
|
+
priority: import_safe.MessagePriority.NodeQuery
|
|
237
|
+
});
|
|
192
238
|
ctx.logNode(node.id, {
|
|
193
|
-
message:
|
|
194
|
-
direction: "
|
|
239
|
+
message: "retrieving node name...",
|
|
240
|
+
direction: "outbound"
|
|
195
241
|
});
|
|
242
|
+
const name = await api.getName();
|
|
243
|
+
if (name != void 0) {
|
|
244
|
+
ctx.logNode(node.id, {
|
|
245
|
+
message: `is named "${name}"`,
|
|
246
|
+
direction: "inbound"
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
ctx.logNode(node.id, {
|
|
250
|
+
message: "retrieving node location...",
|
|
251
|
+
direction: "outbound"
|
|
252
|
+
});
|
|
253
|
+
const location = await api.getLocation();
|
|
254
|
+
if (location != void 0) {
|
|
255
|
+
ctx.logNode(node.id, {
|
|
256
|
+
message: `received location: ${location}`,
|
|
257
|
+
direction: "inbound"
|
|
258
|
+
});
|
|
259
|
+
}
|
|
196
260
|
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
(0, import_CommandClassDecorators.
|
|
202
|
-
|
|
203
|
-
]
|
|
204
|
-
let
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
let
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
]
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
261
|
+
};
|
|
262
|
+
return NodeNamingAndLocationCC2 = _classThis;
|
|
263
|
+
})();
|
|
264
|
+
let NodeNamingAndLocationCCNameSet = (() => {
|
|
265
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.NodeNamingAndLocationCommand.NameSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
266
|
+
let _classDescriptor;
|
|
267
|
+
let _classExtraInitializers = [];
|
|
268
|
+
let _classThis;
|
|
269
|
+
let _classSuper = NodeNamingAndLocationCC;
|
|
270
|
+
var NodeNamingAndLocationCCNameSet2 = class extends _classSuper {
|
|
271
|
+
static {
|
|
272
|
+
_classThis = this;
|
|
273
|
+
}
|
|
274
|
+
static {
|
|
275
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
276
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
277
|
+
NodeNamingAndLocationCCNameSet2 = _classThis = _classDescriptor.value;
|
|
278
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
279
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
280
|
+
}
|
|
281
|
+
constructor(options) {
|
|
282
|
+
super(options);
|
|
283
|
+
this.name = options.name;
|
|
284
|
+
}
|
|
285
|
+
static from(_raw, _ctx) {
|
|
286
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
287
|
+
}
|
|
288
|
+
name;
|
|
289
|
+
serialize(ctx) {
|
|
290
|
+
const encoding = isASCII(this.name) ? "ascii" : "utf16le";
|
|
291
|
+
this.payload = new import_safe2.Bytes(1 + this.name.length * (encoding === "ascii" ? 1 : 2));
|
|
292
|
+
this.payload[0] = encoding === "ascii" ? 0 : 2;
|
|
293
|
+
let nameBuffer;
|
|
294
|
+
if (encoding === "utf16le") {
|
|
295
|
+
nameBuffer = (0, import_safe2.stringToUint8ArrayUTF16BE)(this.name);
|
|
296
|
+
} else {
|
|
297
|
+
nameBuffer = import_safe2.Bytes.from(this.name, "ascii");
|
|
298
|
+
}
|
|
299
|
+
this.payload.set(nameBuffer.subarray(0, Math.min(16, nameBuffer.length)), 0);
|
|
300
|
+
return super.serialize(ctx);
|
|
301
|
+
}
|
|
302
|
+
toLogEntry(ctx) {
|
|
303
|
+
return {
|
|
304
|
+
...super.toLogEntry(ctx),
|
|
305
|
+
message: { name: this.name }
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
return NodeNamingAndLocationCCNameSet2 = _classThis;
|
|
310
|
+
})();
|
|
311
|
+
let NodeNamingAndLocationCCNameReport = (() => {
|
|
312
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.NodeNamingAndLocationCommand.NameReport), (0, import_CommandClassDecorators.ccValueProperty)("name", NodeNamingAndLocationCCValues.name)];
|
|
313
|
+
let _classDescriptor;
|
|
314
|
+
let _classExtraInitializers = [];
|
|
315
|
+
let _classThis;
|
|
316
|
+
let _classSuper = NodeNamingAndLocationCC;
|
|
317
|
+
var NodeNamingAndLocationCCNameReport2 = class extends _classSuper {
|
|
318
|
+
static {
|
|
319
|
+
_classThis = this;
|
|
320
|
+
}
|
|
321
|
+
static {
|
|
322
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
323
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
324
|
+
NodeNamingAndLocationCCNameReport2 = _classThis = _classDescriptor.value;
|
|
325
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
326
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
327
|
+
}
|
|
328
|
+
constructor(options) {
|
|
329
|
+
super(options);
|
|
330
|
+
this.name = options.name;
|
|
331
|
+
}
|
|
332
|
+
static from(raw, ctx) {
|
|
333
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 1);
|
|
334
|
+
const encoding = raw.payload[0] === 2 ? "utf16le" : "ascii";
|
|
335
|
+
const nameBuffer = raw.payload.subarray(1);
|
|
336
|
+
let name;
|
|
337
|
+
if (encoding === "utf16le") {
|
|
338
|
+
(0, import_safe.validatePayload)(nameBuffer.length % 2 === 0);
|
|
339
|
+
name = (0, import_safe2.uint8ArrayToStringUTF16BE)(nameBuffer);
|
|
340
|
+
} else {
|
|
341
|
+
name = nameBuffer.toString("ascii");
|
|
342
|
+
}
|
|
343
|
+
return new this({
|
|
344
|
+
nodeId: ctx.sourceNodeId,
|
|
345
|
+
name
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
name;
|
|
349
|
+
toLogEntry(ctx) {
|
|
350
|
+
return {
|
|
351
|
+
...super.toLogEntry(ctx),
|
|
352
|
+
message: { name: this.name }
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
return NodeNamingAndLocationCCNameReport2 = _classThis;
|
|
357
|
+
})();
|
|
358
|
+
let NodeNamingAndLocationCCNameGet = (() => {
|
|
359
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.NodeNamingAndLocationCommand.NameGet), (0, import_CommandClassDecorators.expectedCCResponse)(NodeNamingAndLocationCCNameReport)];
|
|
360
|
+
let _classDescriptor;
|
|
361
|
+
let _classExtraInitializers = [];
|
|
362
|
+
let _classThis;
|
|
363
|
+
let _classSuper = NodeNamingAndLocationCC;
|
|
364
|
+
var NodeNamingAndLocationCCNameGet2 = class extends _classSuper {
|
|
365
|
+
static {
|
|
366
|
+
_classThis = this;
|
|
367
|
+
}
|
|
368
|
+
static {
|
|
369
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
370
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
371
|
+
NodeNamingAndLocationCCNameGet2 = _classThis = _classDescriptor.value;
|
|
372
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
373
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
return NodeNamingAndLocationCCNameGet2 = _classThis;
|
|
377
|
+
})();
|
|
378
|
+
let NodeNamingAndLocationCCLocationSet = (() => {
|
|
379
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.NodeNamingAndLocationCommand.LocationSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
380
|
+
let _classDescriptor;
|
|
381
|
+
let _classExtraInitializers = [];
|
|
382
|
+
let _classThis;
|
|
383
|
+
let _classSuper = NodeNamingAndLocationCC;
|
|
384
|
+
var NodeNamingAndLocationCCLocationSet2 = class extends _classSuper {
|
|
385
|
+
static {
|
|
386
|
+
_classThis = this;
|
|
387
|
+
}
|
|
388
|
+
static {
|
|
389
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
390
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
391
|
+
NodeNamingAndLocationCCLocationSet2 = _classThis = _classDescriptor.value;
|
|
392
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
393
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
394
|
+
}
|
|
395
|
+
constructor(options) {
|
|
396
|
+
super(options);
|
|
397
|
+
this.location = options.location;
|
|
398
|
+
}
|
|
399
|
+
static from(_raw, _ctx) {
|
|
400
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
401
|
+
}
|
|
402
|
+
location;
|
|
403
|
+
serialize(ctx) {
|
|
404
|
+
const encoding = isASCII(this.location) ? "ascii" : "utf16le";
|
|
405
|
+
this.payload = new import_safe2.Bytes(1 + this.location.length * (encoding === "ascii" ? 1 : 2));
|
|
406
|
+
this.payload[0] = encoding === "ascii" ? 0 : 2;
|
|
407
|
+
let locationBuffer;
|
|
408
|
+
if (encoding === "utf16le") {
|
|
409
|
+
locationBuffer = (0, import_safe2.stringToUint8ArrayUTF16BE)(this.location);
|
|
410
|
+
} else {
|
|
411
|
+
locationBuffer = import_safe2.Bytes.from(this.location, "ascii");
|
|
412
|
+
}
|
|
413
|
+
this.payload.set(locationBuffer.subarray(0, Math.min(16, locationBuffer.length)), 0);
|
|
414
|
+
return super.serialize(ctx);
|
|
415
|
+
}
|
|
416
|
+
toLogEntry(ctx) {
|
|
417
|
+
return {
|
|
418
|
+
...super.toLogEntry(ctx),
|
|
419
|
+
message: { location: this.location }
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
return NodeNamingAndLocationCCLocationSet2 = _classThis;
|
|
424
|
+
})();
|
|
425
|
+
let NodeNamingAndLocationCCLocationReport = (() => {
|
|
426
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.NodeNamingAndLocationCommand.LocationReport), (0, import_CommandClassDecorators.ccValueProperty)("location", NodeNamingAndLocationCCValues.location)];
|
|
427
|
+
let _classDescriptor;
|
|
428
|
+
let _classExtraInitializers = [];
|
|
429
|
+
let _classThis;
|
|
430
|
+
let _classSuper = NodeNamingAndLocationCC;
|
|
431
|
+
var NodeNamingAndLocationCCLocationReport2 = class extends _classSuper {
|
|
432
|
+
static {
|
|
433
|
+
_classThis = this;
|
|
434
|
+
}
|
|
435
|
+
static {
|
|
436
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
437
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
438
|
+
NodeNamingAndLocationCCLocationReport2 = _classThis = _classDescriptor.value;
|
|
439
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
440
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
441
|
+
}
|
|
442
|
+
constructor(options) {
|
|
443
|
+
super(options);
|
|
444
|
+
this.location = options.location;
|
|
445
|
+
}
|
|
446
|
+
static from(raw, ctx) {
|
|
447
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 1);
|
|
448
|
+
const encoding = raw.payload[0] === 2 ? "utf16le" : "ascii";
|
|
449
|
+
const locationBuffer = raw.payload.subarray(1);
|
|
450
|
+
let location;
|
|
451
|
+
if (encoding === "utf16le") {
|
|
452
|
+
(0, import_safe.validatePayload)(locationBuffer.length % 2 === 0);
|
|
453
|
+
location = (0, import_safe2.uint8ArrayToStringUTF16BE)(locationBuffer);
|
|
454
|
+
} else {
|
|
455
|
+
location = locationBuffer.toString("ascii");
|
|
456
|
+
}
|
|
457
|
+
return new this({
|
|
458
|
+
nodeId: ctx.sourceNodeId,
|
|
459
|
+
location
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
location;
|
|
463
|
+
toLogEntry(ctx) {
|
|
464
|
+
return {
|
|
465
|
+
...super.toLogEntry(ctx),
|
|
466
|
+
message: { location: this.location }
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
return NodeNamingAndLocationCCLocationReport2 = _classThis;
|
|
471
|
+
})();
|
|
472
|
+
let NodeNamingAndLocationCCLocationGet = (() => {
|
|
473
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.NodeNamingAndLocationCommand.LocationGet), (0, import_CommandClassDecorators.expectedCCResponse)(NodeNamingAndLocationCCLocationReport)];
|
|
474
|
+
let _classDescriptor;
|
|
475
|
+
let _classExtraInitializers = [];
|
|
476
|
+
let _classThis;
|
|
477
|
+
let _classSuper = NodeNamingAndLocationCC;
|
|
478
|
+
var NodeNamingAndLocationCCLocationGet2 = class extends _classSuper {
|
|
479
|
+
static {
|
|
480
|
+
_classThis = this;
|
|
481
|
+
}
|
|
482
|
+
static {
|
|
483
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
484
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
485
|
+
NodeNamingAndLocationCCLocationGet2 = _classThis = _classDescriptor.value;
|
|
486
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
487
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
return NodeNamingAndLocationCCLocationGet2 = _classThis;
|
|
491
|
+
})();
|
|
352
492
|
// Annotate the CommonJS export names for ESM import in node:
|
|
353
493
|
0 && (module.exports = {
|
|
354
494
|
NodeNamingAndLocationCC,
|