zwave-js 9.2.1 → 9.3.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/Controller.d.ts +2 -2
- package/build/Controller.d.ts.map +1 -1
- package/build/Controller.js +1 -1
- package/build/Controller.js.map +1 -1
- package/build/Driver.d.ts +3 -4
- package/build/Driver.d.ts.map +1 -1
- package/build/Driver.js +6 -7
- package/build/Driver.js.map +1 -1
- package/build/Utils.d.ts +2 -0
- package/build/Utils.d.ts.map +1 -1
- package/build/Utils.js +5 -1
- package/build/Utils.js.map +1 -1
- package/build/lib/commandclass/AlarmSensorCC.d.ts +6 -5
- package/build/lib/commandclass/AlarmSensorCC.d.ts.map +1 -1
- package/build/lib/commandclass/AlarmSensorCC.js +23 -23
- package/build/lib/commandclass/AlarmSensorCC.js.map +1 -1
- package/build/lib/commandclass/AssociationCC.d.ts +12 -11
- package/build/lib/commandclass/AssociationCC.d.ts.map +1 -1
- package/build/lib/commandclass/AssociationCC.js +47 -41
- package/build/lib/commandclass/AssociationCC.js.map +1 -1
- package/build/lib/commandclass/AssociationGroupInfoCC.d.ts +15 -14
- package/build/lib/commandclass/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/lib/commandclass/AssociationGroupInfoCC.js +56 -51
- package/build/lib/commandclass/AssociationGroupInfoCC.js.map +1 -1
- package/build/lib/commandclass/BarrierOperatorCC.d.ts +9 -8
- package/build/lib/commandclass/BarrierOperatorCC.d.ts.map +1 -1
- package/build/lib/commandclass/BarrierOperatorCC.js +28 -28
- package/build/lib/commandclass/BarrierOperatorCC.js.map +1 -1
- package/build/lib/commandclass/BasicCC.d.ts +5 -4
- package/build/lib/commandclass/BasicCC.d.ts.map +1 -1
- package/build/lib/commandclass/BasicCC.js +18 -18
- package/build/lib/commandclass/BasicCC.js.map +1 -1
- package/build/lib/commandclass/BatteryCC.d.ts +5 -4
- package/build/lib/commandclass/BatteryCC.d.ts.map +1 -1
- package/build/lib/commandclass/BatteryCC.js +17 -17
- package/build/lib/commandclass/BatteryCC.js.map +1 -1
- package/build/lib/commandclass/BinarySensorCC.d.ts +6 -5
- package/build/lib/commandclass/BinarySensorCC.d.ts.map +1 -1
- package/build/lib/commandclass/BinarySensorCC.js +24 -24
- package/build/lib/commandclass/BinarySensorCC.js.map +1 -1
- package/build/lib/commandclass/BinarySwitchCC.d.ts +5 -4
- package/build/lib/commandclass/BinarySwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/BinarySwitchCC.js +15 -15
- package/build/lib/commandclass/BinarySwitchCC.js.map +1 -1
- package/build/lib/commandclass/CRC16CC.d.ts +3 -3
- package/build/lib/commandclass/CRC16CC.d.ts.map +1 -1
- package/build/lib/commandclass/CRC16CC.js +5 -5
- package/build/lib/commandclass/CRC16CC.js.map +1 -1
- package/build/lib/commandclass/CentralSceneCC.d.ts +6 -5
- package/build/lib/commandclass/CentralSceneCC.d.ts.map +1 -1
- package/build/lib/commandclass/CentralSceneCC.js +23 -25
- package/build/lib/commandclass/CentralSceneCC.js.map +1 -1
- package/build/lib/commandclass/ClimateControlScheduleCC.d.ts +7 -7
- package/build/lib/commandclass/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/lib/commandclass/ClimateControlScheduleCC.js +12 -12
- package/build/lib/commandclass/ClimateControlScheduleCC.js.map +1 -1
- package/build/lib/commandclass/ClockCC.d.ts +5 -4
- package/build/lib/commandclass/ClockCC.d.ts.map +1 -1
- package/build/lib/commandclass/ClockCC.js +15 -15
- package/build/lib/commandclass/ClockCC.js.map +1 -1
- package/build/lib/commandclass/ColorSwitchCC.d.ts +10 -9
- package/build/lib/commandclass/ColorSwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/ColorSwitchCC.js +29 -29
- package/build/lib/commandclass/ColorSwitchCC.js.map +1 -1
- package/build/lib/commandclass/CommandClass.d.ts +17 -10
- package/build/lib/commandclass/CommandClass.d.ts.map +1 -1
- package/build/lib/commandclass/CommandClass.js +53 -27
- package/build/lib/commandclass/CommandClass.js.map +1 -1
- package/build/lib/commandclass/ConfigurationCC.d.ts +16 -15
- package/build/lib/commandclass/ConfigurationCC.d.ts.map +1 -1
- package/build/lib/commandclass/ConfigurationCC.js +66 -59
- package/build/lib/commandclass/ConfigurationCC.js.map +1 -1
- package/build/lib/commandclass/DoorLockCC.d.ts +8 -7
- package/build/lib/commandclass/DoorLockCC.d.ts.map +1 -1
- package/build/lib/commandclass/DoorLockCC.js +27 -27
- package/build/lib/commandclass/DoorLockCC.js.map +1 -1
- package/build/lib/commandclass/DoorLockLoggingCC.d.ts +6 -5
- package/build/lib/commandclass/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/lib/commandclass/DoorLockLoggingCC.js +18 -18
- package/build/lib/commandclass/DoorLockLoggingCC.js.map +1 -1
- package/build/lib/commandclass/EntryControlCC.d.ts +8 -7
- package/build/lib/commandclass/EntryControlCC.d.ts.map +1 -1
- package/build/lib/commandclass/EntryControlCC.js +27 -27
- package/build/lib/commandclass/EntryControlCC.js.map +1 -1
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts +11 -11
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js +20 -20
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/lib/commandclass/HumidityControlModeCC.d.ts +6 -5
- package/build/lib/commandclass/HumidityControlModeCC.d.ts.map +1 -1
- package/build/lib/commandclass/HumidityControlModeCC.js +22 -22
- package/build/lib/commandclass/HumidityControlModeCC.js.map +1 -1
- package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts +4 -3
- package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/lib/commandclass/HumidityControlOperatingStateCC.js +13 -13
- package/build/lib/commandclass/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/lib/commandclass/HumidityControlSetpointCC.d.ts +11 -10
- package/build/lib/commandclass/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/lib/commandclass/HumidityControlSetpointCC.js +46 -46
- package/build/lib/commandclass/HumidityControlSetpointCC.js.map +1 -1
- package/build/lib/commandclass/IndicatorCC.d.ts +9 -8
- package/build/lib/commandclass/IndicatorCC.d.ts.map +1 -1
- package/build/lib/commandclass/IndicatorCC.js +37 -37
- package/build/lib/commandclass/IndicatorCC.js.map +1 -1
- package/build/lib/commandclass/IrrigationCC.d.ts +18 -17
- package/build/lib/commandclass/IrrigationCC.d.ts.map +1 -1
- package/build/lib/commandclass/IrrigationCC.js +51 -51
- package/build/lib/commandclass/IrrigationCC.js.map +1 -1
- package/build/lib/commandclass/LanguageCC.d.ts +5 -4
- package/build/lib/commandclass/LanguageCC.d.ts.map +1 -1
- package/build/lib/commandclass/LanguageCC.js +15 -15
- package/build/lib/commandclass/LanguageCC.js.map +1 -1
- package/build/lib/commandclass/LockCC.d.ts +5 -4
- package/build/lib/commandclass/LockCC.d.ts.map +1 -1
- package/build/lib/commandclass/LockCC.js +15 -15
- package/build/lib/commandclass/LockCC.js.map +1 -1
- package/build/lib/commandclass/ManufacturerProprietaryCC.d.ts +11 -3
- package/build/lib/commandclass/ManufacturerProprietaryCC.d.ts.map +1 -1
- package/build/lib/commandclass/ManufacturerProprietaryCC.js +44 -18
- package/build/lib/commandclass/ManufacturerProprietaryCC.js.map +1 -1
- package/build/lib/commandclass/ManufacturerSpecificCC.d.ts +5 -4
- package/build/lib/commandclass/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/lib/commandclass/ManufacturerSpecificCC.js +15 -15
- package/build/lib/commandclass/ManufacturerSpecificCC.js.map +1 -1
- package/build/lib/commandclass/MeterCC.d.ts +8 -7
- package/build/lib/commandclass/MeterCC.d.ts.map +1 -1
- package/build/lib/commandclass/MeterCC.js +49 -41
- package/build/lib/commandclass/MeterCC.js.map +1 -1
- package/build/lib/commandclass/MultiChannelAssociationCC.d.ts +12 -11
- package/build/lib/commandclass/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultiChannelAssociationCC.js +45 -43
- package/build/lib/commandclass/MultiChannelAssociationCC.js.map +1 -1
- package/build/lib/commandclass/MultiChannelCC.d.ts +15 -14
- package/build/lib/commandclass/MultiChannelCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultiChannelCC.js +61 -61
- package/build/lib/commandclass/MultiChannelCC.js.map +1 -1
- package/build/lib/commandclass/MultiCommandCC.d.ts +3 -3
- package/build/lib/commandclass/MultiCommandCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultiCommandCC.js +5 -5
- package/build/lib/commandclass/MultiCommandCC.js.map +1 -1
- package/build/lib/commandclass/MultilevelSensorCC.d.ts +8 -7
- package/build/lib/commandclass/MultilevelSensorCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultilevelSensorCC.js +50 -50
- package/build/lib/commandclass/MultilevelSensorCC.js.map +1 -1
- package/build/lib/commandclass/MultilevelSwitchCC.d.ts +8 -7
- package/build/lib/commandclass/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultilevelSwitchCC.js +31 -31
- package/build/lib/commandclass/MultilevelSwitchCC.js.map +1 -1
- package/build/lib/commandclass/NoOperationCC.d.ts +1 -1
- package/build/lib/commandclass/NoOperationCC.d.ts.map +1 -1
- package/build/lib/commandclass/NoOperationCC.js +2 -2
- package/build/lib/commandclass/NoOperationCC.js.map +1 -1
- package/build/lib/commandclass/NodeNamingCC.d.ts +7 -6
- package/build/lib/commandclass/NodeNamingCC.d.ts.map +1 -1
- package/build/lib/commandclass/NodeNamingCC.js +21 -21
- package/build/lib/commandclass/NodeNamingCC.js.map +1 -1
- package/build/lib/commandclass/NotificationCC.d.ts +10 -9
- package/build/lib/commandclass/NotificationCC.d.ts.map +1 -1
- package/build/lib/commandclass/NotificationCC.js +54 -54
- package/build/lib/commandclass/NotificationCC.js.map +1 -1
- package/build/lib/commandclass/PowerlevelCC.d.ts +5 -5
- package/build/lib/commandclass/PowerlevelCC.d.ts.map +1 -1
- package/build/lib/commandclass/PowerlevelCC.js +9 -9
- package/build/lib/commandclass/PowerlevelCC.js.map +1 -1
- package/build/lib/commandclass/ProtectionCC.d.ts +10 -9
- package/build/lib/commandclass/ProtectionCC.d.ts.map +1 -1
- package/build/lib/commandclass/ProtectionCC.js +33 -33
- package/build/lib/commandclass/ProtectionCC.js.map +1 -1
- package/build/lib/commandclass/SceneActivationCC.d.ts +2 -2
- package/build/lib/commandclass/SceneActivationCC.d.ts.map +1 -1
- package/build/lib/commandclass/SceneActivationCC.js +2 -2
- package/build/lib/commandclass/SceneActivationCC.js.map +1 -1
- package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts +5 -4
- package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts.map +1 -1
- package/build/lib/commandclass/SceneActuatorConfigurationCC.js +9 -9
- package/build/lib/commandclass/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts +7 -6
- package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/lib/commandclass/SceneControllerConfigurationCC.js +32 -28
- package/build/lib/commandclass/SceneControllerConfigurationCC.js.map +1 -1
- package/build/lib/commandclass/Security2CC.d.ts +17 -26
- package/build/lib/commandclass/Security2CC.d.ts.map +1 -1
- package/build/lib/commandclass/Security2CC.js +68 -68
- package/build/lib/commandclass/Security2CC.js.map +1 -1
- package/build/lib/commandclass/SecurityCC.d.ts +11 -14
- package/build/lib/commandclass/SecurityCC.d.ts.map +1 -1
- package/build/lib/commandclass/SecurityCC.js +41 -41
- package/build/lib/commandclass/SecurityCC.js.map +1 -1
- package/build/lib/commandclass/SoundSwitchCC.d.ts +9 -8
- package/build/lib/commandclass/SoundSwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/SoundSwitchCC.js +27 -27
- package/build/lib/commandclass/SoundSwitchCC.js.map +1 -1
- package/build/lib/commandclass/SupervisionCC.d.ts +4 -4
- package/build/lib/commandclass/SupervisionCC.d.ts.map +1 -1
- package/build/lib/commandclass/SupervisionCC.js +9 -9
- package/build/lib/commandclass/SupervisionCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatFanModeCC.d.ts +6 -5
- package/build/lib/commandclass/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatFanModeCC.js +22 -22
- package/build/lib/commandclass/ThermostatFanModeCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatFanStateCC.d.ts +4 -3
- package/build/lib/commandclass/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatFanStateCC.js +13 -13
- package/build/lib/commandclass/ThermostatFanStateCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatModeCC.d.ts +6 -5
- package/build/lib/commandclass/ThermostatModeCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatModeCC.js +22 -22
- package/build/lib/commandclass/ThermostatModeCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts +4 -3
- package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatOperatingStateCC.js +13 -13
- package/build/lib/commandclass/ThermostatOperatingStateCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatSetbackCC.d.ts +5 -4
- package/build/lib/commandclass/ThermostatSetbackCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatSetbackCC.js +15 -15
- package/build/lib/commandclass/ThermostatSetbackCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatSetpointCC.d.ts +10 -9
- package/build/lib/commandclass/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatSetpointCC.js +48 -48
- package/build/lib/commandclass/ThermostatSetpointCC.js.map +1 -1
- package/build/lib/commandclass/TimeCC.d.ts +6 -5
- package/build/lib/commandclass/TimeCC.d.ts.map +1 -1
- package/build/lib/commandclass/TimeCC.js +15 -15
- package/build/lib/commandclass/TimeCC.js.map +1 -1
- package/build/lib/commandclass/TimeParametersCC.d.ts +4 -3
- package/build/lib/commandclass/TimeParametersCC.d.ts.map +1 -1
- package/build/lib/commandclass/TimeParametersCC.js +11 -11
- package/build/lib/commandclass/TimeParametersCC.js.map +1 -1
- package/build/lib/commandclass/TransportServiceCC.d.ts +7 -7
- package/build/lib/commandclass/TransportServiceCC.d.ts.map +1 -1
- package/build/lib/commandclass/TransportServiceCC.js +12 -12
- package/build/lib/commandclass/TransportServiceCC.js.map +1 -1
- package/build/lib/commandclass/UserCodeCC.d.ts +17 -16
- package/build/lib/commandclass/UserCodeCC.d.ts.map +1 -1
- package/build/lib/commandclass/UserCodeCC.js +58 -58
- package/build/lib/commandclass/UserCodeCC.js.map +1 -1
- package/build/lib/commandclass/VersionCC.d.ts +7 -6
- package/build/lib/commandclass/VersionCC.d.ts.map +1 -1
- package/build/lib/commandclass/VersionCC.js +28 -28
- package/build/lib/commandclass/VersionCC.js.map +1 -1
- package/build/lib/commandclass/WakeUpCC.d.ts +5 -5
- package/build/lib/commandclass/WakeUpCC.d.ts.map +1 -1
- package/build/lib/commandclass/WakeUpCC.js +24 -28
- package/build/lib/commandclass/WakeUpCC.js.map +1 -1
- package/build/lib/commandclass/ZWavePlusCC.d.ts +20 -14
- package/build/lib/commandclass/ZWavePlusCC.d.ts.map +1 -1
- package/build/lib/commandclass/ZWavePlusCC.js +119 -41
- package/build/lib/commandclass/ZWavePlusCC.js.map +1 -1
- package/build/lib/commandclass/manufacturerProprietary/Fibaro.d.ts +8 -7
- package/build/lib/commandclass/manufacturerProprietary/Fibaro.d.ts.map +1 -1
- package/build/lib/commandclass/manufacturerProprietary/Fibaro.js +21 -21
- package/build/lib/commandclass/manufacturerProprietary/Fibaro.js.map +1 -1
- package/build/lib/controller/Controller.d.ts +21 -14
- package/build/lib/controller/Controller.d.ts.map +1 -1
- package/build/lib/controller/Controller.js +129 -140
- package/build/lib/controller/Controller.js.map +1 -1
- package/build/lib/controller/Inclusion.d.ts +1 -1
- package/build/lib/controller/Inclusion.d.ts.map +1 -1
- package/build/lib/controller/MockControllerBehaviors.d.ts +4 -0
- package/build/lib/controller/MockControllerBehaviors.d.ts.map +1 -0
- package/build/lib/controller/MockControllerBehaviors.js +161 -0
- package/build/lib/controller/MockControllerBehaviors.js.map +1 -0
- package/build/lib/controller/NodeInformationFrame.d.ts +9 -0
- package/build/lib/controller/NodeInformationFrame.d.ts.map +1 -0
- package/build/lib/controller/NodeInformationFrame.js +53 -0
- package/build/lib/controller/NodeInformationFrame.js.map +1 -0
- package/build/lib/controller/ZWaveChipTypes.d.ts +10 -0
- package/build/lib/controller/ZWaveChipTypes.d.ts.map +1 -0
- package/build/lib/controller/ZWaveChipTypes.js +32 -0
- package/build/lib/controller/ZWaveChipTypes.js.map +1 -0
- package/build/lib/controller/utils.d.ts +3 -0
- package/build/lib/controller/utils.d.ts.map +1 -0
- package/build/lib/controller/utils.js +40 -0
- package/build/lib/controller/utils.js.map +1 -0
- package/build/lib/driver/CommandQueueMachine.d.ts +1 -1
- package/build/lib/driver/CommandQueueMachine.d.ts.map +1 -1
- package/build/lib/driver/CommandQueueMachine.js.map +1 -1
- package/build/lib/driver/Driver.d.ts +7 -4
- package/build/lib/driver/Driver.d.ts.map +1 -1
- package/build/lib/driver/Driver.js +89 -67
- package/build/lib/driver/Driver.js.map +1 -1
- package/build/lib/driver/DriverMock.d.ts +13 -0
- package/build/lib/driver/DriverMock.d.ts.map +1 -0
- package/build/lib/driver/DriverMock.js +53 -0
- package/build/lib/driver/DriverMock.js.map +1 -0
- package/build/lib/driver/MessageGenerators.d.ts +1 -1
- package/build/lib/driver/MessageGenerators.d.ts.map +1 -1
- package/build/lib/driver/MessageGenerators.js.map +1 -1
- package/build/lib/driver/NetworkCache.d.ts +1 -1
- package/build/lib/driver/NetworkCache.d.ts.map +1 -1
- package/build/lib/driver/NetworkCache.js +80 -38
- package/build/lib/driver/NetworkCache.js.map +1 -1
- package/build/lib/driver/SendThreadMachine.d.ts +2 -2
- package/build/lib/driver/SendThreadMachine.d.ts.map +1 -1
- package/build/lib/driver/SendThreadMachine.js +4 -4
- package/build/lib/driver/SendThreadMachine.js.map +1 -1
- package/build/lib/driver/SerialAPICommandMachine.d.ts +1 -1
- package/build/lib/driver/SerialAPICommandMachine.d.ts.map +1 -1
- package/build/lib/driver/SerialAPICommandMachine.js +6 -7
- package/build/lib/driver/SerialAPICommandMachine.js.map +1 -1
- package/build/lib/driver/StateMachineShared.d.ts +1 -1
- package/build/lib/driver/StateMachineShared.d.ts.map +1 -1
- package/build/lib/driver/StateMachineShared.js.map +1 -1
- package/build/lib/driver/Transaction.d.ts +2 -2
- package/build/lib/driver/Transaction.d.ts.map +1 -1
- package/build/lib/driver/Transaction.js +5 -5
- package/build/lib/driver/Transaction.js.map +1 -1
- package/build/lib/driver/TransactionMachine.d.ts +1 -1
- package/build/lib/driver/TransactionMachine.d.ts.map +1 -1
- package/build/lib/driver/TransactionMachine.js.map +1 -1
- package/build/lib/driver/ZWaveOptions.d.ts +1 -1
- package/build/lib/driver/ZWaveOptions.d.ts.map +1 -1
- package/build/lib/log/Driver.d.ts +1 -1
- package/build/lib/log/Driver.d.ts.map +1 -1
- package/build/lib/log/Driver.js +4 -4
- package/build/lib/log/Driver.js.map +1 -1
- package/build/lib/node/Endpoint.d.ts +3 -2
- package/build/lib/node/Endpoint.d.ts.map +1 -1
- package/build/lib/node/Endpoint.js +32 -31
- package/build/lib/node/Endpoint.js.map +1 -1
- package/build/lib/node/Node.d.ts +4 -13
- package/build/lib/node/Node.d.ts.map +1 -1
- package/build/lib/node/Node.js +64 -150
- package/build/lib/node/Node.js.map +1 -1
- package/build/lib/node/_Types.d.ts +2 -30
- package/build/lib/node/_Types.d.ts.map +1 -1
- package/build/lib/node/_Types.js +3 -33
- package/build/lib/node/_Types.js.map +1 -1
- package/build/lib/node/utils.d.ts +28 -0
- package/build/lib/node/utils.d.ts.map +1 -0
- package/build/lib/node/utils.js +187 -0
- package/build/lib/node/utils.js.map +1 -0
- package/build/lib/serialapi/_Types.d.ts +1 -14
- package/build/lib/serialapi/_Types.d.ts.map +1 -1
- package/build/lib/serialapi/_Types.js +2 -15
- package/build/lib/serialapi/_Types.js.map +1 -1
- package/build/lib/serialapi/application/ApplicationCommandRequest.d.ts +4 -3
- package/build/lib/serialapi/application/ApplicationCommandRequest.d.ts.map +1 -1
- package/build/lib/serialapi/application/ApplicationCommandRequest.js +15 -14
- package/build/lib/serialapi/application/ApplicationCommandRequest.js.map +1 -1
- package/build/lib/serialapi/application/ApplicationUpdateRequest.d.ts +6 -6
- package/build/lib/serialapi/application/ApplicationUpdateRequest.d.ts.map +1 -1
- package/build/lib/serialapi/application/ApplicationUpdateRequest.js +10 -11
- package/build/lib/serialapi/application/ApplicationUpdateRequest.js.map +1 -1
- package/build/lib/serialapi/application/BridgeApplicationCommandRequest.d.ts +4 -3
- package/build/lib/serialapi/application/BridgeApplicationCommandRequest.d.ts.map +1 -1
- package/build/lib/serialapi/application/BridgeApplicationCommandRequest.js +14 -9
- package/build/lib/serialapi/application/BridgeApplicationCommandRequest.js.map +1 -1
- package/build/lib/serialapi/application/SerialAPIStartedRequest.d.ts +23 -11
- package/build/lib/serialapi/application/SerialAPIStartedRequest.d.ts.map +1 -1
- package/build/lib/serialapi/application/SerialAPIStartedRequest.js +59 -36
- package/build/lib/serialapi/application/SerialAPIStartedRequest.js.map +1 -1
- package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.d.ts +17 -11
- package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.js +40 -34
- package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.js.map +1 -1
- package/build/lib/serialapi/capability/GetControllerVersionMessages.d.ts +11 -9
- package/build/lib/serialapi/capability/GetControllerVersionMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/GetControllerVersionMessages.js +24 -24
- package/build/lib/serialapi/capability/GetControllerVersionMessages.js.map +1 -1
- package/build/lib/serialapi/capability/GetProtocolVersionMessages.d.ts +3 -3
- package/build/lib/serialapi/capability/GetProtocolVersionMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/GetProtocolVersionMessages.js +9 -10
- package/build/lib/serialapi/capability/GetProtocolVersionMessages.js.map +1 -1
- package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.d.ts +17 -16
- package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.js +39 -42
- package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.js.map +1 -1
- package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.d.ts +26 -14
- package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.js +138 -51
- package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.js.map +1 -1
- package/build/lib/serialapi/capability/HardResetRequest.d.ts +12 -2
- package/build/lib/serialapi/capability/HardResetRequest.d.ts.map +1 -1
- package/build/lib/serialapi/capability/HardResetRequest.js +41 -11
- package/build/lib/serialapi/capability/HardResetRequest.js.map +1 -1
- package/build/lib/serialapi/capability/SerialAPISetupMessages.d.ts +22 -22
- package/build/lib/serialapi/capability/SerialAPISetupMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/SerialAPISetupMessages.js +50 -51
- package/build/lib/serialapi/capability/SerialAPISetupMessages.js.map +1 -1
- package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.d.ts +22 -0
- package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.d.ts.map +1 -0
- package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.js +60 -0
- package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.js.map +1 -0
- package/build/lib/serialapi/memory/GetControllerIdMessages.d.ts +13 -9
- package/build/lib/serialapi/memory/GetControllerIdMessages.d.ts.map +1 -1
- package/build/lib/serialapi/memory/GetControllerIdMessages.js +31 -23
- package/build/lib/serialapi/memory/GetControllerIdMessages.js.map +1 -1
- package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.d.ts +3 -3
- package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.d.ts.map +1 -1
- package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.js +9 -10
- package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.js.map +1 -1
- package/build/lib/serialapi/misc/SetRFReceiveModeMessages.d.ts +5 -5
- package/build/lib/serialapi/misc/SetRFReceiveModeMessages.d.ts.map +1 -1
- package/build/lib/serialapi/misc/SetRFReceiveModeMessages.js +12 -13
- package/build/lib/serialapi/misc/SetRFReceiveModeMessages.js.map +1 -1
- package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.d.ts +4 -4
- package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.d.ts.map +1 -1
- package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.js +11 -12
- package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.js.map +1 -1
- package/build/lib/serialapi/misc/SoftResetRequest.d.ts +1 -1
- package/build/lib/serialapi/misc/SoftResetRequest.d.ts.map +1 -1
- package/build/lib/serialapi/misc/SoftResetRequest.js +4 -5
- package/build/lib/serialapi/misc/SoftResetRequest.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.d.ts +8 -8
- package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.js +17 -18
- package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.d.ts +7 -8
- package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.js +19 -20
- package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.d.ts +7 -8
- package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.js +19 -20
- package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.d.ts +7 -8
- package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.js +19 -20
- package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.d.ts +7 -8
- package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.js +19 -20
- package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.d.ts +20 -18
- package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.js +72 -26
- package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.d.ts +4 -4
- package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.js +11 -12
- package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.d.ts +9 -7
- package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.js +18 -19
- package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.d.ts +4 -4
- package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.js +11 -12
- package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.d.ts +7 -7
- package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.js +18 -19
- package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.d.ts +6 -6
- package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.js +13 -14
- package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.d.ts +7 -7
- package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.js +17 -18
- package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.d.ts +5 -6
- package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.js +12 -13
- package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.d.ts +6 -6
- package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.js +14 -15
- package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.d.ts +7 -7
- package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.js +21 -22
- package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.d.ts +4 -4
- package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.js +12 -13
- package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.d.ts +4 -4
- package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.js +12 -13
- package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.d.ts +4 -4
- package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.js +12 -13
- package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.d.ts +4 -4
- package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.js +12 -13
- package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/GetNVMIdMessages.d.ts +3 -3
- package/build/lib/serialapi/nvm/GetNVMIdMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/GetNVMIdMessages.js +9 -10
- package/build/lib/serialapi/nvm/GetNVMIdMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/NVMOperationsMessages.d.ts +8 -8
- package/build/lib/serialapi/nvm/NVMOperationsMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/NVMOperationsMessages.js +19 -20
- package/build/lib/serialapi/nvm/NVMOperationsMessages.js.map +1 -1
- package/build/lib/serialapi/transport/SendDataBridgeMessages.d.ts +13 -11
- package/build/lib/serialapi/transport/SendDataBridgeMessages.d.ts.map +1 -1
- package/build/lib/serialapi/transport/SendDataBridgeMessages.js +48 -44
- package/build/lib/serialapi/transport/SendDataBridgeMessages.js.map +1 -1
- package/build/lib/serialapi/transport/SendDataMessages.d.ts +13 -11
- package/build/lib/serialapi/transport/SendDataMessages.d.ts.map +1 -1
- package/build/lib/serialapi/transport/SendDataMessages.js +49 -43
- package/build/lib/serialapi/transport/SendDataMessages.js.map +1 -1
- package/build/lib/telemetry/deviceConfig.d.ts.map +1 -1
- package/build/lib/telemetry/deviceConfig.js +2 -3
- package/build/lib/telemetry/deviceConfig.js.map +1 -1
- package/package.json +9 -8
- package/build/lib/driver/FileSystem.d.ts +0 -11
- package/build/lib/driver/FileSystem.d.ts.map +0 -1
- package/build/lib/driver/FileSystem.js +0 -3
- package/build/lib/driver/FileSystem.js.map +0 -1
- package/build/lib/log/Controller.d.ts +0 -68
- package/build/lib/log/Controller.d.ts.map +0 -1
- package/build/lib/log/Controller.js +0 -221
- package/build/lib/log/Controller.js.map +0 -1
- package/build/lib/message/Constants.d.ts +0 -150
- package/build/lib/message/Constants.d.ts.map +0 -1
- package/build/lib/message/Constants.js +0 -176
- package/build/lib/message/Constants.js.map +0 -1
- package/build/lib/message/Message.d.ts +0 -172
- package/build/lib/message/Message.d.ts.map +0 -1
- package/build/lib/message/Message.js +0 -465
- package/build/lib/message/Message.js.map +0 -1
- package/build/lib/message/SuccessIndicator.d.ts +0 -16
- package/build/lib/message/SuccessIndicator.d.ts.map +0 -1
- package/build/lib/message/SuccessIndicator.js +0 -12
- package/build/lib/message/SuccessIndicator.js.map +0 -1
- package/build/lib/node/INodeQuery.d.ts +0 -7
- package/build/lib/node/INodeQuery.d.ts.map +0 -1
- package/build/lib/node/INodeQuery.js +0 -9
- package/build/lib/node/INodeQuery.js.map +0 -1
package/build/lib/node/Node.js
CHANGED
|
@@ -1,13 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
2
18
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
19
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
20
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
21
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
22
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
23
|
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
8
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
32
|
exports.ZWaveNode = void 0;
|
|
10
33
|
const core_1 = require("@zwave-js/core");
|
|
34
|
+
const serial_1 = require("@zwave-js/serial");
|
|
11
35
|
const shared_1 = require("@zwave-js/shared");
|
|
12
36
|
const math_1 = require("alcalzone-shared/math");
|
|
13
37
|
const strings_1 = require("alcalzone-shared/strings");
|
|
@@ -42,7 +66,6 @@ const _Types_1 = require("../commandclass/_Types");
|
|
|
42
66
|
const _Types_2 = require("../controller/_Types");
|
|
43
67
|
const NetworkCache_1 = require("../driver/NetworkCache");
|
|
44
68
|
const StateMachineShared_1 = require("../driver/StateMachineShared");
|
|
45
|
-
const Constants_1 = require("../message/Constants");
|
|
46
69
|
const ApplicationUpdateRequest_1 = require("../serialapi/application/ApplicationUpdateRequest");
|
|
47
70
|
const GetNodeProtocolInfoMessages_1 = require("../serialapi/network-mgmt/GetNodeProtocolInfoMessages");
|
|
48
71
|
const RequestNodeInfoMessages_1 = require("../serialapi/network-mgmt/RequestNodeInfoMessages");
|
|
@@ -52,6 +75,7 @@ const HealthCheck_1 = require("./HealthCheck");
|
|
|
52
75
|
const NodeReadyMachine_1 = require("./NodeReadyMachine");
|
|
53
76
|
const NodeStatistics_1 = require("./NodeStatistics");
|
|
54
77
|
const NodeStatusMachine_1 = require("./NodeStatusMachine");
|
|
78
|
+
const nodeUtils = __importStar(require("./utils"));
|
|
55
79
|
const _Types_3 = require("./_Types");
|
|
56
80
|
/**
|
|
57
81
|
* A ZWaveNode represents a node in a Z-Wave network. It is also an instance
|
|
@@ -165,35 +189,12 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
|
|
|
165
189
|
this.cancelScheduledPoll(valueId);
|
|
166
190
|
}
|
|
167
191
|
}
|
|
168
|
-
/**
|
|
169
|
-
* Enhances a value id so it can be consumed better by applications
|
|
170
|
-
*/
|
|
171
|
-
translateValueID(valueId) {
|
|
172
|
-
// Try to retrieve the speaking CC name
|
|
173
|
-
const commandClassName = (0, core_1.getCCName)(valueId.commandClass);
|
|
174
|
-
const ret = {
|
|
175
|
-
commandClassName,
|
|
176
|
-
...valueId,
|
|
177
|
-
};
|
|
178
|
-
const ccInstance = this.createCCInstanceInternal(valueId.commandClass);
|
|
179
|
-
if (!ccInstance) {
|
|
180
|
-
throw new core_1.ZWaveError(`Cannot translate a value ID for the non-implemented CC ${(0, core_1.getCCName)(valueId.commandClass)}`, core_1.ZWaveErrorCodes.CC_NotImplemented);
|
|
181
|
-
}
|
|
182
|
-
// Retrieve the speaking property name
|
|
183
|
-
ret.propertyName = ccInstance.translateProperty(valueId.property, valueId.propertyKey);
|
|
184
|
-
// Try to retrieve the speaking property key
|
|
185
|
-
if (valueId.propertyKey != undefined) {
|
|
186
|
-
const propertyKey = ccInstance.translatePropertyKey(valueId.property, valueId.propertyKey);
|
|
187
|
-
ret.propertyKeyName = propertyKey;
|
|
188
|
-
}
|
|
189
|
-
return ret;
|
|
190
|
-
}
|
|
191
192
|
/**
|
|
192
193
|
* Enhances the raw event args of the ValueDB so it can be consumed better by applications
|
|
193
194
|
*/
|
|
194
195
|
translateValueEvent(eventName, arg) {
|
|
195
196
|
// Try to retrieve the speaking CC name
|
|
196
|
-
const outArg =
|
|
197
|
+
const outArg = nodeUtils.translateValueID(this.driver, this, arg);
|
|
197
198
|
// @ts-expect-error This can happen for value updated events
|
|
198
199
|
if ("source" in outArg)
|
|
199
200
|
delete outArg.source;
|
|
@@ -202,7 +203,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
|
|
|
202
203
|
outArg.metadata =
|
|
203
204
|
this.getValueMetadata(arg);
|
|
204
205
|
}
|
|
205
|
-
const ccInstance = this.
|
|
206
|
+
const ccInstance = CommandClass_1.CommandClass.createInstanceUnchecked(this.driver, this, arg.commandClass);
|
|
206
207
|
const isInternalValue = ccInstance === null || ccInstance === void 0 ? void 0 : ccInstance.isInternalValue(arg.property);
|
|
207
208
|
// Check whether this value change may be logged
|
|
208
209
|
const isSecretValue = !!(ccInstance === null || ccInstance === void 0 ? void 0 : ccInstance.isSecretValue(arg.property));
|
|
@@ -233,7 +234,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
|
|
|
233
234
|
// Only application CCs need to be filtered
|
|
234
235
|
core_1.applicationCCs.includes(arg.commandClass) &&
|
|
235
236
|
// and only if the endpoints are not unnecessary and the root values mirror them
|
|
236
|
-
|
|
237
|
+
nodeUtils.shouldHideRootApplicationCCValues(this.driver, this)) {
|
|
237
238
|
// Iterate through all possible non-root endpoints of this node and
|
|
238
239
|
// check if there is a value ID that mirrors root endpoint functionality
|
|
239
240
|
for (const endpoint of this.getEndpointIndizes()) {
|
|
@@ -400,6 +401,9 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
|
|
|
400
401
|
var _a;
|
|
401
402
|
return (_a = this.securityClasses.get(securityClass)) !== null && _a !== void 0 ? _a : core_1.unknownBoolean;
|
|
402
403
|
}
|
|
404
|
+
setSecurityClass(securityClass, granted) {
|
|
405
|
+
this.securityClasses.set(securityClass, granted);
|
|
406
|
+
}
|
|
403
407
|
/** Returns the highest security class this node was granted or `undefined` if that information isn't known yet */
|
|
404
408
|
getHighestSecurityClass() {
|
|
405
409
|
if (this.securityClasses.size === 0)
|
|
@@ -582,77 +586,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
|
|
|
582
586
|
}
|
|
583
587
|
/** Returns a list of all value names that are defined on all endpoints of this node */
|
|
584
588
|
getDefinedValueIDs() {
|
|
585
|
-
|
|
586
|
-
const allowControlled = [
|
|
587
|
-
core_1.CommandClasses["Scene Activation"],
|
|
588
|
-
];
|
|
589
|
-
for (const endpoint of this.getAllEndpoints()) {
|
|
590
|
-
for (const [cc, info] of endpoint.implementedCommandClasses) {
|
|
591
|
-
// Only expose value IDs for CCs that are supported
|
|
592
|
-
// with some exceptions that are controlled
|
|
593
|
-
if (info.isSupported ||
|
|
594
|
-
(info.isControlled && allowControlled.includes(cc))) {
|
|
595
|
-
const ccInstance = endpoint.createCCInstanceUnsafe(cc);
|
|
596
|
-
if (ccInstance) {
|
|
597
|
-
ret.push(...ccInstance.getDefinedValueIDs());
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
// Application command classes of the Root Device capabilities that are also advertised by at
|
|
603
|
-
// least one End Point SHOULD be filtered out by controlling nodes before presenting the functionalities
|
|
604
|
-
// via service discovery mechanisms like mDNS or to users in a GUI.
|
|
605
|
-
// We do this when there are endpoints that were explicitly preserved
|
|
606
|
-
if (this.shouldHideRootApplicationCCValues()) {
|
|
607
|
-
ret = this.filterRootApplicationCCValueIDs(ret);
|
|
608
|
-
}
|
|
609
|
-
// Translate the remaining value IDs before exposing them to applications
|
|
610
|
-
return ret.map((id) => this.translateValueID(id));
|
|
611
|
-
}
|
|
612
|
-
/** Determines whether the root application CC values should be hidden in favor of endpoint values */
|
|
613
|
-
shouldHideRootApplicationCCValues() {
|
|
614
|
-
var _a, _b, _c, _d;
|
|
615
|
-
// This is not the case when the root values should explicitly be preserved
|
|
616
|
-
if ((_b = (_a = this._deviceConfig) === null || _a === void 0 ? void 0 : _a.compat) === null || _b === void 0 ? void 0 : _b.preserveRootApplicationCCValueIDs)
|
|
617
|
-
return false;
|
|
618
|
-
// This is not the case when there are no endpoints
|
|
619
|
-
const endpointIndizes = this.getEndpointIndizes();
|
|
620
|
-
if (endpointIndizes.length === 0)
|
|
621
|
-
return false;
|
|
622
|
-
// This is not the case when only individual endpoints should be preserved in addition to the root
|
|
623
|
-
const preserveEndpoints = (_d = (_c = this._deviceConfig) === null || _c === void 0 ? void 0 : _c.compat) === null || _d === void 0 ? void 0 : _d.preserveEndpoints;
|
|
624
|
-
if (preserveEndpoints != undefined &&
|
|
625
|
-
preserveEndpoints !== "*" &&
|
|
626
|
-
preserveEndpoints.length !== endpointIndizes.length) {
|
|
627
|
-
return false;
|
|
628
|
-
}
|
|
629
|
-
// Otherwise they should be hidden
|
|
630
|
-
return true;
|
|
631
|
-
}
|
|
632
|
-
shouldHideRootValueID(valueId, allValueIds) {
|
|
633
|
-
// Non-root endpoint values don't need to be filtered
|
|
634
|
-
if (!!valueId.endpoint)
|
|
635
|
-
return false;
|
|
636
|
-
// Non-application CCs don't need to be filtered
|
|
637
|
-
if (!core_1.applicationCCs.includes(valueId.commandClass))
|
|
638
|
-
return false;
|
|
639
|
-
// Filter out root values if an identical value ID exists for another endpoint
|
|
640
|
-
const valueExistsOnAnotherEndpoint = allValueIds.some((other) =>
|
|
641
|
-
// same CC
|
|
642
|
-
other.commandClass === valueId.commandClass &&
|
|
643
|
-
// non-root endpoint
|
|
644
|
-
!!other.endpoint &&
|
|
645
|
-
// same property and key
|
|
646
|
-
other.property === valueId.property &&
|
|
647
|
-
other.propertyKey === valueId.propertyKey);
|
|
648
|
-
return valueExistsOnAnotherEndpoint;
|
|
649
|
-
}
|
|
650
|
-
/**
|
|
651
|
-
* Removes all Value IDs from an array that belong to a root endpoint and have a corresponding
|
|
652
|
-
* Value ID on a non-root endpoint
|
|
653
|
-
*/
|
|
654
|
-
filterRootApplicationCCValueIDs(allValueIds) {
|
|
655
|
-
return allValueIds.filter((vid) => !this.shouldHideRootValueID(vid, allValueIds));
|
|
589
|
+
return nodeUtils.getDefinedValueIDs(this.driver, this);
|
|
656
590
|
}
|
|
657
591
|
/**
|
|
658
592
|
* Updates a value for a given property of a given CommandClass on the node.
|
|
@@ -722,7 +656,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
|
|
|
722
656
|
// We do not want to delay more important communication by polling, so give it
|
|
723
657
|
// the lowest priority and don't retry unless overwritten by the options
|
|
724
658
|
maxSendAttempts: 1,
|
|
725
|
-
priority:
|
|
659
|
+
priority: serial_1.MessagePriority.Poll,
|
|
726
660
|
...sendCommandOptions,
|
|
727
661
|
});
|
|
728
662
|
// Check if the pollValue method is implemented
|
|
@@ -752,7 +686,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
|
|
|
752
686
|
// We do not want to delay more important communication by polling, so give it
|
|
753
687
|
// the lowest priority and don't retry unless overwritten by the options
|
|
754
688
|
maxSendAttempts: 1,
|
|
755
|
-
priority:
|
|
689
|
+
priority: serial_1.MessagePriority.Poll,
|
|
756
690
|
});
|
|
757
691
|
// Check if the pollValue method is implemented
|
|
758
692
|
if (!api.pollValue)
|
|
@@ -795,28 +729,16 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
|
|
|
795
729
|
return true;
|
|
796
730
|
}
|
|
797
731
|
get endpointCountIsDynamic() {
|
|
798
|
-
return this.
|
|
799
|
-
commandClass: core_1.CommandClasses["Multi Channel"],
|
|
800
|
-
property: "countIsDynamic",
|
|
801
|
-
});
|
|
732
|
+
return nodeUtils.endpointCountIsDynamic(this.driver, this);
|
|
802
733
|
}
|
|
803
734
|
get endpointsHaveIdenticalCapabilities() {
|
|
804
|
-
return this.
|
|
805
|
-
commandClass: core_1.CommandClasses["Multi Channel"],
|
|
806
|
-
property: "identicalCapabilities",
|
|
807
|
-
});
|
|
735
|
+
return nodeUtils.endpointsHaveIdenticalCapabilities(this.driver, this);
|
|
808
736
|
}
|
|
809
737
|
get individualEndpointCount() {
|
|
810
|
-
return this.
|
|
811
|
-
commandClass: core_1.CommandClasses["Multi Channel"],
|
|
812
|
-
property: "individualCount",
|
|
813
|
-
});
|
|
738
|
+
return nodeUtils.getIndividualEndpointCount(this.driver, this);
|
|
814
739
|
}
|
|
815
740
|
get aggregatedEndpointCount() {
|
|
816
|
-
return this.
|
|
817
|
-
commandClass: core_1.CommandClasses["Multi Channel"],
|
|
818
|
-
property: "aggregatedCount",
|
|
819
|
-
});
|
|
741
|
+
return nodeUtils.getAggregatedEndpointCount(this.driver, this);
|
|
820
742
|
}
|
|
821
743
|
/** Returns the device class of an endpoint. Falls back to the node's device class if the information is not known. */
|
|
822
744
|
getEndpointDeviceClass(index) {
|
|
@@ -845,30 +767,17 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
|
|
|
845
767
|
* Some devices are known to contradict themselves.
|
|
846
768
|
*/
|
|
847
769
|
getEndpointCount() {
|
|
848
|
-
return (
|
|
849
|
-
(this.aggregatedEndpointCount || 0));
|
|
770
|
+
return nodeUtils.getEndpointCount(this.driver, this);
|
|
850
771
|
}
|
|
851
772
|
/**
|
|
852
773
|
* Returns indizes of all endpoints on the node.
|
|
853
774
|
*/
|
|
854
775
|
getEndpointIndizes() {
|
|
855
|
-
|
|
856
|
-
if (!ret) {
|
|
857
|
-
// Endpoint indizes not stored, assume sequential endpoints
|
|
858
|
-
ret = [];
|
|
859
|
-
for (let i = 1; i <= this.getEndpointCount(); i++) {
|
|
860
|
-
ret.push(i);
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
return ret;
|
|
776
|
+
return nodeUtils.getEndpointIndizes(this.driver, this);
|
|
864
777
|
}
|
|
865
778
|
/** Whether the Multi Channel CC has been interviewed and all endpoint information is known */
|
|
866
779
|
get isMultiChannelInterviewComplete() {
|
|
867
|
-
return
|
|
868
|
-
commandClass: core_1.CommandClasses["Multi Channel"],
|
|
869
|
-
endpoint: 0,
|
|
870
|
-
property: "interviewComplete",
|
|
871
|
-
});
|
|
780
|
+
return nodeUtils.isMultiChannelInterviewComplete(this.driver, this);
|
|
872
781
|
}
|
|
873
782
|
getEndpoint(index) {
|
|
874
783
|
if (index < 0)
|
|
@@ -900,17 +809,7 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
|
|
|
900
809
|
}
|
|
901
810
|
/** Returns a list of all endpoints of this node, including the root endpoint (index 0) */
|
|
902
811
|
getAllEndpoints() {
|
|
903
|
-
|
|
904
|
-
// Check if the Multi Channel CC interview for this node is completed,
|
|
905
|
-
// because we don't have all the endpoint information before that
|
|
906
|
-
if (this.isMultiChannelInterviewComplete) {
|
|
907
|
-
for (const i of this.getEndpointIndizes()) {
|
|
908
|
-
const endpoint = this.getEndpoint(i);
|
|
909
|
-
if (endpoint)
|
|
910
|
-
ret.push(endpoint);
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
return ret;
|
|
812
|
+
return nodeUtils.getAllEndpoints(this.driver, this);
|
|
914
813
|
}
|
|
915
814
|
/**
|
|
916
815
|
* This tells us which interview stage was last completed
|
|
@@ -1090,7 +989,8 @@ let ZWaveNode = class ZWaveNode extends Endpoint_1.Endpoint {
|
|
|
1090
989
|
this.nodeType = resp.nodeType;
|
|
1091
990
|
this.supportsSecurity = resp.supportsSecurity;
|
|
1092
991
|
this.supportsBeaming = resp.supportsBeaming;
|
|
1093
|
-
this.
|
|
992
|
+
const deviceClass = new DeviceClass_1.DeviceClass(this.driver.configManager, resp.basicDeviceClass, resp.genericDeviceClass, resp.specificDeviceClass);
|
|
993
|
+
this.applyDeviceClass(deviceClass);
|
|
1094
994
|
const logMessage = `received response for protocol info:
|
|
1095
995
|
basic device class: ${this.deviceClass.basic.label}
|
|
1096
996
|
generic device class: ${this.deviceClass.generic.label}
|
|
@@ -1240,7 +1140,7 @@ protocol version: ${this.protocolVersion}`;
|
|
|
1240
1140
|
if (instance.interviewComplete)
|
|
1241
1141
|
return "continue";
|
|
1242
1142
|
try {
|
|
1243
|
-
await instance.interview();
|
|
1143
|
+
await instance.interview(this.driver);
|
|
1244
1144
|
}
|
|
1245
1145
|
catch (e) {
|
|
1246
1146
|
if ((0, core_1.isTransmissionError)(e)) {
|
|
@@ -1543,7 +1443,7 @@ protocol version: ${this.protocolVersion}`;
|
|
|
1543
1443
|
const instance = endpoint.createCCInstanceUnsafe(cc);
|
|
1544
1444
|
if (instance) {
|
|
1545
1445
|
try {
|
|
1546
|
-
await instance.interview();
|
|
1446
|
+
await instance.interview(this.driver);
|
|
1547
1447
|
}
|
|
1548
1448
|
catch (e) {
|
|
1549
1449
|
this.driver.controllerLog.logNode(this.id, `failed to interview CC ${(0, core_1.getCCName)(cc)}, endpoint ${endpoint.index}: ${(0, shared_1.getErrorMessage)(e)}`, "error");
|
|
@@ -1560,7 +1460,7 @@ protocol version: ${this.protocolVersion}`;
|
|
|
1560
1460
|
const instance = endpoint.createCCInstanceUnsafe(cc);
|
|
1561
1461
|
if (instance) {
|
|
1562
1462
|
try {
|
|
1563
|
-
await instance.refreshValues();
|
|
1463
|
+
await instance.refreshValues(this.driver);
|
|
1564
1464
|
}
|
|
1565
1465
|
catch (e) {
|
|
1566
1466
|
this.driver.controllerLog.logNode(this.id, `failed to refresh values for ${(0, core_1.getCCName)(cc)}, endpoint ${endpoint.index}: ${(0, shared_1.getErrorMessage)(e)}`, "error");
|
|
@@ -1581,7 +1481,7 @@ protocol version: ${this.protocolVersion}`;
|
|
|
1581
1481
|
continue;
|
|
1582
1482
|
}
|
|
1583
1483
|
try {
|
|
1584
|
-
await cc.refreshValues();
|
|
1484
|
+
await cc.refreshValues(this.driver);
|
|
1585
1485
|
}
|
|
1586
1486
|
catch (e) {
|
|
1587
1487
|
this.driver.controllerLog.logNode(this.id, `failed to refresh values for ${(0, core_1.getCCName)(cc.ccId)}, endpoint ${endpoint.index}: ${(0, shared_1.getErrorMessage)(e)}`, "error");
|
|
@@ -1746,6 +1646,9 @@ protocol version: ${this.protocolVersion}`;
|
|
|
1746
1646
|
else if (command instanceof PowerlevelCC_1.PowerlevelCCTestNodeReport) {
|
|
1747
1647
|
return this.handlePowerlevelTestNodeReport(command);
|
|
1748
1648
|
}
|
|
1649
|
+
else if (command instanceof ZWavePlusCC_1.ZWavePlusCCGet) {
|
|
1650
|
+
return this.handleZWavePlusGet(command);
|
|
1651
|
+
}
|
|
1749
1652
|
// Ignore all commands that don't need to be handled
|
|
1750
1653
|
switch (true) {
|
|
1751
1654
|
// Reports are either a response to a Get command or
|
|
@@ -2238,6 +2141,17 @@ protocol version: ${this.protocolVersion}`;
|
|
|
2238
2141
|
this.emit("notification", this, core_1.CommandClasses["Multilevel Switch"], { eventType: _Types_1.MultilevelSwitchCommand.StopLevelChange });
|
|
2239
2142
|
}
|
|
2240
2143
|
}
|
|
2144
|
+
async handleZWavePlusGet(_command) {
|
|
2145
|
+
// treat this as a sign that the node is awake
|
|
2146
|
+
this.markAsAwake();
|
|
2147
|
+
await this.commandClasses["Z-Wave Plus Info"].sendReport({
|
|
2148
|
+
zwavePlusVersion: 2,
|
|
2149
|
+
roleType: _Types_1.ZWavePlusRoleType.CentralStaticController,
|
|
2150
|
+
nodeType: _Types_1.ZWavePlusNodeType.Node,
|
|
2151
|
+
installerIcon: 0x0500,
|
|
2152
|
+
userIcon: 0x0500, // Generic Gateway
|
|
2153
|
+
});
|
|
2154
|
+
}
|
|
2241
2155
|
/** Schedules a notification value to be reset */
|
|
2242
2156
|
scheduleNotificationIdleReset(valueId, handler) {
|
|
2243
2157
|
this.clearNotificationIdleReset(valueId);
|
|
@@ -2440,8 +2354,8 @@ protocol version: ${this.protocolVersion}`;
|
|
|
2440
2354
|
if (command.weekday !== weekday ||
|
|
2441
2355
|
command.hour !== hours ||
|
|
2442
2356
|
command.minute !== minutes) {
|
|
2443
|
-
const endpoint = command.getEndpoint();
|
|
2444
|
-
if (!endpoint
|
|
2357
|
+
const endpoint = command.getEndpoint(this.driver);
|
|
2358
|
+
if (!endpoint /*|| !endpoint.commandClasses.Clock.isSupported()*/) {
|
|
2445
2359
|
// Make sure the endpoint supports the CC (GH#1704)
|
|
2446
2360
|
return;
|
|
2447
2361
|
}
|