@zwave-js/cc 14.3.10 → 15.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/cc/AlarmSensorCC.d.ts +68 -68
- package/build/cjs/cc/AlarmSensorCC.js +12 -50
- package/build/cjs/cc/AlarmSensorCC.js.map +2 -2
- package/build/cjs/cc/AssociationCC.d.ts +72 -73
- package/build/cjs/cc/AssociationCC.js +9 -26
- package/build/cjs/cc/AssociationCC.js.map +2 -2
- package/build/cjs/cc/AssociationGroupInfoCC.d.ts +71 -71
- package/build/cjs/cc/AssociationGroupInfoCC.js +11 -22
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +2 -2
- package/build/cjs/cc/BarrierOperatorCC.d.ts +66 -72
- package/build/cjs/cc/BarrierOperatorCC.js +12 -44
- package/build/cjs/cc/BarrierOperatorCC.js.map +2 -2
- package/build/cjs/cc/BasicCC.d.ts +64 -65
- package/build/cjs/cc/BasicCC.js +15 -46
- package/build/cjs/cc/BasicCC.js.map +2 -2
- package/build/cjs/cc/BatteryCC.d.ts +162 -165
- package/build/cjs/cc/BatteryCC.js +7 -84
- package/build/cjs/cc/BatteryCC.js.map +2 -2
- package/build/cjs/cc/BinarySensorCC.d.ts +36 -36
- package/build/cjs/cc/BinarySensorCC.js +9 -29
- package/build/cjs/cc/BinarySensorCC.js.map +2 -2
- package/build/cjs/cc/BinarySwitchCC.d.ts +34 -34
- package/build/cjs/cc/BinarySwitchCC.js +6 -22
- package/build/cjs/cc/BinarySwitchCC.js.map +2 -2
- package/build/cjs/cc/CRC16CC.d.ts +4 -8
- package/build/cjs/cc/CRC16CC.js +4 -27
- package/build/cjs/cc/CRC16CC.js.map +2 -2
- package/build/cjs/cc/CentralSceneCC.d.ts +74 -74
- package/build/cjs/cc/CentralSceneCC.js +7 -30
- package/build/cjs/cc/CentralSceneCC.js.map +2 -2
- package/build/cjs/cc/ClimateControlScheduleCC.d.ts +38 -40
- package/build/cjs/cc/ClimateControlScheduleCC.js +5 -24
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +2 -2
- package/build/cjs/cc/ClockCC.d.ts +3 -3
- package/build/cjs/cc/ClockCC.js.map +2 -2
- package/build/cjs/cc/ColorSwitchCC.d.ts +117 -117
- package/build/cjs/cc/ColorSwitchCC.js +23 -75
- package/build/cjs/cc/ColorSwitchCC.js.map +2 -2
- package/build/cjs/cc/ConfigurationCC._validateArgs.js +1 -1
- package/build/cjs/cc/ConfigurationCC._validateArgs.js.map +1 -1
- package/build/cjs/cc/ConfigurationCC.d.ts +48 -52
- package/build/cjs/cc/ConfigurationCC.js +11 -39
- package/build/cjs/cc/ConfigurationCC.js.map +2 -2
- package/build/cjs/cc/DeviceResetLocallyCC.d.ts +1 -1
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +2 -2
- package/build/cjs/cc/DoorLockCC._validateArgs.js +1 -1
- package/build/cjs/cc/DoorLockCC._validateArgs.js.map +1 -1
- package/build/cjs/cc/DoorLockCC.d.ts +362 -361
- package/build/cjs/cc/DoorLockCC.js +51 -156
- package/build/cjs/cc/DoorLockCC.js.map +2 -2
- package/build/cjs/cc/DoorLockLoggingCC.d.ts +14 -14
- package/build/cjs/cc/DoorLockLoggingCC.js +4 -8
- package/build/cjs/cc/DoorLockLoggingCC.js.map +2 -2
- package/build/cjs/cc/EnergyProductionCC.d.ts +16 -16
- package/build/cjs/cc/EnergyProductionCC.js +5 -17
- package/build/cjs/cc/EnergyProductionCC.js.map +2 -2
- package/build/cjs/cc/EntryControlCC.d.ts +71 -71
- package/build/cjs/cc/EntryControlCC.js +9 -36
- package/build/cjs/cc/EntryControlCC.js.map +2 -2
- package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts +2 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.js +26 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC._validateArgs.js.map +1 -1
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +101 -88
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +159 -34
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlModeCC.d.ts +31 -33
- package/build/cjs/cc/HumidityControlModeCC.js +6 -15
- package/build/cjs/cc/HumidityControlModeCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +9 -11
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +4 -12
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlSetpointCC.d.ts +50 -50
- package/build/cjs/cc/HumidityControlSetpointCC.js +10 -28
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +2 -2
- package/build/cjs/cc/InclusionControllerCC.d.ts +4 -4
- package/build/cjs/cc/InclusionControllerCC.js.map +2 -2
- package/build/cjs/cc/IndicatorCC.d.ts +119 -119
- package/build/cjs/cc/IndicatorCC.js +15 -61
- package/build/cjs/cc/IndicatorCC.js.map +2 -2
- package/build/cjs/cc/IrrigationCC.d.ts +581 -585
- package/build/cjs/cc/IrrigationCC.js +29 -233
- package/build/cjs/cc/IrrigationCC.js.map +2 -2
- package/build/cjs/cc/LanguageCC.d.ts +21 -21
- package/build/cjs/cc/LanguageCC.js +4 -15
- package/build/cjs/cc/LanguageCC.js.map +2 -2
- package/build/cjs/cc/LockCC.d.ts +9 -9
- package/build/cjs/cc/LockCC.js +4 -12
- package/build/cjs/cc/LockCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +2 -2
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerSpecificCC.d.ts +67 -67
- package/build/cjs/cc/ManufacturerSpecificCC.js +5 -26
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +2 -2
- package/build/cjs/cc/MeterCC.d.ts +120 -119
- package/build/cjs/cc/MeterCC.js +25 -69
- package/build/cjs/cc/MeterCC.js.map +2 -2
- package/build/cjs/cc/MultiChannelAssociationCC.d.ts +71 -73
- package/build/cjs/cc/MultiChannelAssociationCC.js +10 -28
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +2 -2
- package/build/cjs/cc/MultiChannelCC.d.ts +136 -146
- package/build/cjs/cc/MultiChannelCC.js +26 -118
- package/build/cjs/cc/MultiChannelCC.js.map +2 -2
- package/build/cjs/cc/MultiCommandCC.d.ts +4 -8
- package/build/cjs/cc/MultiCommandCC.js +4 -37
- package/build/cjs/cc/MultiCommandCC.js.map +2 -2
- package/build/cjs/cc/MultilevelSensorCC.d.ts +50 -49
- package/build/cjs/cc/MultilevelSensorCC.js +12 -33
- package/build/cjs/cc/MultilevelSensorCC.js.map +2 -2
- package/build/cjs/cc/MultilevelSwitchCC.d.ts +146 -146
- package/build/cjs/cc/MultilevelSwitchCC.js +13 -107
- package/build/cjs/cc/MultilevelSwitchCC.js.map +2 -2
- package/build/cjs/cc/NodeNamingCC.d.ts +30 -30
- package/build/cjs/cc/NodeNamingCC.js +5 -16
- package/build/cjs/cc/NodeNamingCC.js.map +2 -2
- package/build/cjs/cc/NotificationCC.d.ts +210 -208
- package/build/cjs/cc/NotificationCC.js +41 -113
- package/build/cjs/cc/NotificationCC.js.map +2 -2
- package/build/cjs/cc/PowerlevelCC.d.ts +6 -6
- package/build/cjs/cc/PowerlevelCC.js.map +2 -2
- package/build/cjs/cc/ProtectionCC.d.ts +117 -121
- package/build/cjs/cc/ProtectionCC.js +15 -50
- package/build/cjs/cc/ProtectionCC.js.map +2 -2
- package/build/cjs/cc/SceneActivationCC.d.ts +29 -29
- package/build/cjs/cc/SceneActivationCC.js +4 -17
- package/build/cjs/cc/SceneActivationCC.js.map +2 -2
- package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +35 -35
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +9 -21
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +2 -2
- package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +36 -35
- package/build/cjs/cc/SceneControllerConfigurationCC.js +10 -22
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +2 -2
- package/build/cjs/cc/ScheduleEntryLockCC.d.ts +109 -109
- package/build/cjs/cc/ScheduleEntryLockCC.js +13 -30
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +2 -2
- package/build/cjs/cc/Security2CC.d.ts +15 -21
- package/build/cjs/cc/Security2CC.js +32 -347
- package/build/cjs/cc/Security2CC.js.map +3 -3
- package/build/cjs/cc/SecurityCC.d.ts +12 -19
- package/build/cjs/cc/SecurityCC.js +12 -106
- package/build/cjs/cc/SecurityCC.js.map +2 -2
- package/build/cjs/cc/SoundSwitchCC.d.ts +58 -58
- package/build/cjs/cc/SoundSwitchCC.js +11 -43
- package/build/cjs/cc/SoundSwitchCC.js.map +2 -2
- package/build/cjs/cc/SupervisionCC.d.ts +21 -25
- package/build/cjs/cc/SupervisionCC.js +8 -38
- package/build/cjs/cc/SupervisionCC.js.map +2 -2
- package/build/cjs/cc/ThermostatFanModeCC.d.ts +37 -39
- package/build/cjs/cc/ThermostatFanModeCC.js +8 -21
- package/build/cjs/cc/ThermostatFanModeCC.js.map +2 -2
- package/build/cjs/cc/ThermostatFanStateCC.d.ts +9 -11
- package/build/cjs/cc/ThermostatFanStateCC.js +4 -12
- package/build/cjs/cc/ThermostatFanStateCC.js.map +2 -2
- package/build/cjs/cc/ThermostatModeCC.d.ts +39 -41
- package/build/cjs/cc/ThermostatModeCC.js +8 -21
- package/build/cjs/cc/ThermostatModeCC.js.map +2 -2
- package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +9 -11
- package/build/cjs/cc/ThermostatOperatingStateCC.js +4 -12
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +2 -2
- package/build/cjs/cc/ThermostatSetbackCC.d.ts +4 -4
- package/build/cjs/cc/ThermostatSetbackCC.js.map +2 -2
- package/build/cjs/cc/ThermostatSetpointCC.d.ts +51 -51
- package/build/cjs/cc/ThermostatSetpointCC.js +10 -25
- package/build/cjs/cc/ThermostatSetpointCC.js.map +2 -2
- package/build/cjs/cc/TimeCC.d.ts +6 -6
- package/build/cjs/cc/TimeCC.js.map +2 -2
- package/build/cjs/cc/TimeParametersCC.d.ts +9 -9
- package/build/cjs/cc/TimeParametersCC.js +4 -11
- package/build/cjs/cc/TimeParametersCC.js.map +2 -2
- package/build/cjs/cc/TransportServiceCC.d.ts +7 -12
- package/build/cjs/cc/TransportServiceCC.js +3 -20
- package/build/cjs/cc/TransportServiceCC.js.map +2 -2
- package/build/cjs/cc/UserCodeCC._validateArgs.js +1 -1
- package/build/cjs/cc/UserCodeCC._validateArgs.js.map +1 -1
- package/build/cjs/cc/UserCodeCC.d.ts +236 -236
- package/build/cjs/cc/UserCodeCC.js +33 -98
- package/build/cjs/cc/UserCodeCC.js.map +2 -2
- package/build/cjs/cc/VersionCC.d.ts +210 -212
- package/build/cjs/cc/VersionCC.js +7 -98
- package/build/cjs/cc/VersionCC.js.map +2 -2
- package/build/cjs/cc/WakeUpCC.d.ts +44 -44
- package/build/cjs/cc/WakeUpCC.js +6 -26
- package/build/cjs/cc/WakeUpCC.js.map +2 -2
- package/build/cjs/cc/WindowCoveringCC.d.ts +118 -122
- package/build/cjs/cc/WindowCoveringCC.js +16 -128
- package/build/cjs/cc/WindowCoveringCC.js.map +2 -2
- package/build/cjs/cc/ZWavePlusCC.d.ts +74 -74
- package/build/cjs/cc/ZWavePlusCC.js +4 -25
- package/build/cjs/cc/ZWavePlusCC.js.map +2 -2
- package/build/cjs/cc/ZWaveProtocolCC.d.ts +28 -28
- package/build/cjs/cc/ZWaveProtocolCC.js.map +2 -2
- package/build/cjs/cc/_CCValues.generated.d.ts +15814 -0
- package/build/cjs/cc/_CCValues.generated.js +8723 -0
- package/build/cjs/cc/_CCValues.generated.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +4 -4
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +2 -2
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index_browser.d.ts +9 -0
- package/build/cjs/index_browser.js +41 -1
- package/build/cjs/index_browser.js.map +2 -2
- package/build/cjs/lib/API.d.ts +7 -5
- package/build/cjs/lib/API.js +1 -1
- package/build/cjs/lib/API.js.map +2 -2
- package/build/cjs/lib/CCValueUtils.d.ts +14 -0
- package/build/cjs/lib/CCValueUtils.js +93 -0
- package/build/cjs/lib/CCValueUtils.js.map +7 -0
- package/build/cjs/lib/CommandClass.d.ts +10 -21
- package/build/cjs/lib/CommandClass.js +51 -106
- package/build/cjs/lib/CommandClass.js.map +3 -3
- package/build/cjs/lib/CommandClassDecorators.d.ts +1 -1
- package/build/cjs/lib/CommandClassDecorators.js +3 -3
- package/build/cjs/lib/CommandClassDecorators.js.map +2 -2
- package/build/cjs/lib/Values.d.ts +7 -106
- package/build/cjs/lib/Values.js +13 -107
- package/build/cjs/lib/Values.js.map +3 -3
- package/build/cjs/lib/traits.d.ts +94 -0
- package/build/cjs/lib/traits.js +17 -0
- package/build/cjs/lib/traits.js.map +7 -0
- package/build/cjs/lib/utils.d.ts +2 -2
- package/build/cjs/lib/utils.js.map +2 -2
- package/build/esm/cc/AlarmSensorCC.d.ts +68 -68
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
- package/build/esm/cc/AlarmSensorCC.js +2 -40
- package/build/esm/cc/AlarmSensorCC.js.map +1 -1
- package/build/esm/cc/AssociationCC.d.ts +72 -73
- package/build/esm/cc/AssociationCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationCC.js +2 -27
- package/build/esm/cc/AssociationCC.js.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.d.ts +71 -71
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.js +2 -19
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.d.ts +66 -72
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.js +2 -37
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
- package/build/esm/cc/BasicCC.d.ts +64 -65
- package/build/esm/cc/BasicCC.d.ts.map +1 -1
- package/build/esm/cc/BasicCC.js +2 -34
- package/build/esm/cc/BasicCC.js.map +1 -1
- package/build/esm/cc/BatteryCC.d.ts +162 -165
- package/build/esm/cc/BatteryCC.d.ts.map +1 -1
- package/build/esm/cc/BatteryCC.js +3 -80
- package/build/esm/cc/BatteryCC.js.map +1 -1
- package/build/esm/cc/BinarySensorCC.d.ts +36 -36
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySensorCC.js +2 -19
- package/build/esm/cc/BinarySensorCC.js.map +1 -1
- package/build/esm/cc/BinarySwitchCC.d.ts +34 -34
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySwitchCC.js +2 -19
- package/build/esm/cc/BinarySwitchCC.js.map +1 -1
- package/build/esm/cc/CRC16CC.d.ts +4 -8
- package/build/esm/cc/CRC16CC.d.ts.map +1 -1
- package/build/esm/cc/CRC16CC.js +4 -34
- package/build/esm/cc/CRC16CC.js.map +1 -1
- package/build/esm/cc/CentralSceneCC.d.ts +74 -74
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
- package/build/esm/cc/CentralSceneCC.js +2 -27
- package/build/esm/cc/CentralSceneCC.js.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.d.ts +38 -40
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.js +2 -26
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/esm/cc/ClockCC.d.ts +3 -3
- package/build/esm/cc/ClockCC.d.ts.map +1 -1
- package/build/esm/cc/ClockCC.js +0 -1
- package/build/esm/cc/ClockCC.js.map +1 -1
- package/build/esm/cc/ColorSwitchCC.d.ts +117 -117
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/ColorSwitchCC.js +2 -58
- package/build/esm/cc/ColorSwitchCC.js.map +1 -1
- package/build/esm/cc/ConfigurationCC._validateArgs.js +1 -1
- package/build/esm/cc/ConfigurationCC._validateArgs.js.map +1 -1
- package/build/esm/cc/ConfigurationCC.d.ts +48 -52
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/ConfigurationCC.js +2 -40
- package/build/esm/cc/ConfigurationCC.js.map +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.d.ts +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/esm/cc/DoorLockCC._validateArgs.js +1 -1
- package/build/esm/cc/DoorLockCC._validateArgs.js.map +1 -1
- package/build/esm/cc/DoorLockCC.d.ts +362 -361
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockCC.js +9 -129
- package/build/esm/cc/DoorLockCC.js.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.d.ts +14 -14
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.js +2 -6
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/esm/cc/EnergyProductionCC.d.ts +16 -16
- package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/esm/cc/EnergyProductionCC.js +2 -15
- package/build/esm/cc/EnergyProductionCC.js.map +1 -1
- package/build/esm/cc/EntryControlCC.d.ts +71 -71
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
- package/build/esm/cc/EntryControlCC.js +2 -29
- package/build/esm/cc/EntryControlCC.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts +2 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.d.ts.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.js +20 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC._validateArgs.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +101 -88
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +160 -53
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.d.ts +31 -33
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.js +2 -11
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +9 -11
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.js +2 -9
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.d.ts +50 -50
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.js +2 -23
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/esm/cc/InclusionControllerCC.d.ts +4 -4
- package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -1
- package/build/esm/cc/InclusionControllerCC.js +0 -2
- package/build/esm/cc/InclusionControllerCC.js.map +1 -1
- package/build/esm/cc/IndicatorCC.d.ts +119 -119
- package/build/esm/cc/IndicatorCC.d.ts.map +1 -1
- package/build/esm/cc/IndicatorCC.js +2 -50
- package/build/esm/cc/IndicatorCC.js.map +1 -1
- package/build/esm/cc/IrrigationCC.d.ts +581 -585
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
- package/build/esm/cc/IrrigationCC.js +3 -231
- package/build/esm/cc/IrrigationCC.js.map +1 -1
- package/build/esm/cc/LanguageCC.d.ts +21 -21
- package/build/esm/cc/LanguageCC.d.ts.map +1 -1
- package/build/esm/cc/LanguageCC.js +2 -13
- package/build/esm/cc/LanguageCC.js.map +1 -1
- package/build/esm/cc/LockCC.d.ts +9 -9
- package/build/esm/cc/LockCC.d.ts.map +1 -1
- package/build/esm/cc/LockCC.js +2 -10
- package/build/esm/cc/LockCC.js.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts +2 -2
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.js +0 -2
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.d.ts +67 -67
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.js +2 -26
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/esm/cc/MeterCC.d.ts +120 -119
- package/build/esm/cc/MeterCC.d.ts.map +1 -1
- package/build/esm/cc/MeterCC.js +3 -53
- package/build/esm/cc/MeterCC.js.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.d.ts +71 -73
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.js +2 -30
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/esm/cc/MultiChannelCC.d.ts +136 -146
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelCC.js +10 -131
- package/build/esm/cc/MultiChannelCC.js.map +1 -1
- package/build/esm/cc/MultiCommandCC.d.ts +4 -8
- package/build/esm/cc/MultiCommandCC.d.ts.map +1 -1
- package/build/esm/cc/MultiCommandCC.js +4 -38
- package/build/esm/cc/MultiCommandCC.js.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.d.ts +50 -49
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.js +2 -27
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.d.ts +146 -146
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.js +5 -105
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/esm/cc/NodeNamingCC.d.ts +30 -30
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/esm/cc/NodeNamingCC.js +2 -14
- package/build/esm/cc/NodeNamingCC.js.map +1 -1
- package/build/esm/cc/NotificationCC.d.ts +210 -208
- package/build/esm/cc/NotificationCC.d.ts.map +1 -1
- package/build/esm/cc/NotificationCC.js +21 -97
- package/build/esm/cc/NotificationCC.js.map +1 -1
- package/build/esm/cc/PowerlevelCC.d.ts +6 -6
- package/build/esm/cc/PowerlevelCC.d.ts.map +1 -1
- package/build/esm/cc/PowerlevelCC.js +0 -4
- package/build/esm/cc/PowerlevelCC.js.map +1 -1
- package/build/esm/cc/ProtectionCC.d.ts +117 -121
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
- package/build/esm/cc/ProtectionCC.js +2 -39
- package/build/esm/cc/ProtectionCC.js.map +1 -1
- package/build/esm/cc/SceneActivationCC.d.ts +29 -29
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActivationCC.js +2 -15
- package/build/esm/cc/SceneActivationCC.js.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +35 -35
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.js +2 -16
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts +36 -35
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.js +2 -16
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.d.ts +109 -109
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.js +2 -31
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/esm/cc/Security2CC.d.ts +15 -21
- package/build/esm/cc/Security2CC.d.ts.map +1 -1
- package/build/esm/cc/Security2CC.js +27 -475
- package/build/esm/cc/Security2CC.js.map +1 -1
- package/build/esm/cc/SecurityCC.d.ts +12 -19
- package/build/esm/cc/SecurityCC.d.ts.map +1 -1
- package/build/esm/cc/SecurityCC.js +13 -138
- package/build/esm/cc/SecurityCC.js.map +1 -1
- package/build/esm/cc/SoundSwitchCC.d.ts +58 -58
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/SoundSwitchCC.js +2 -40
- package/build/esm/cc/SoundSwitchCC.js.map +1 -1
- package/build/esm/cc/SupervisionCC.d.ts +21 -25
- package/build/esm/cc/SupervisionCC.d.ts.map +1 -1
- package/build/esm/cc/SupervisionCC.js +6 -41
- package/build/esm/cc/SupervisionCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.d.ts +37 -39
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.js +2 -15
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.d.ts +9 -11
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.js +2 -9
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatModeCC.d.ts +39 -41
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatModeCC.js +2 -17
- package/build/esm/cc/ThermostatModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts +9 -11
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.js +2 -9
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetbackCC.d.ts +4 -4
- package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetbackCC.js +0 -2
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.d.ts +51 -51
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.js +2 -22
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/esm/cc/TimeCC.d.ts +6 -6
- package/build/esm/cc/TimeCC.d.ts.map +1 -1
- package/build/esm/cc/TimeCC.js +0 -4
- package/build/esm/cc/TimeCC.js.map +1 -1
- package/build/esm/cc/TimeParametersCC.d.ts +9 -9
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
- package/build/esm/cc/TimeParametersCC.js +2 -9
- package/build/esm/cc/TimeParametersCC.js.map +1 -1
- package/build/esm/cc/TransportServiceCC.d.ts +7 -12
- package/build/esm/cc/TransportServiceCC.d.ts.map +1 -1
- package/build/esm/cc/TransportServiceCC.js +5 -38
- package/build/esm/cc/TransportServiceCC.js.map +1 -1
- package/build/esm/cc/UserCodeCC._validateArgs.js +1 -1
- package/build/esm/cc/UserCodeCC._validateArgs.js.map +1 -1
- package/build/esm/cc/UserCodeCC.d.ts +236 -236
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
- package/build/esm/cc/UserCodeCC.js +2 -72
- package/build/esm/cc/UserCodeCC.js.map +1 -1
- package/build/esm/cc/VersionCC.d.ts +210 -212
- package/build/esm/cc/VersionCC.d.ts.map +1 -1
- package/build/esm/cc/VersionCC.js +2 -96
- package/build/esm/cc/VersionCC.js.map +1 -1
- package/build/esm/cc/WakeUpCC.d.ts +44 -44
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
- package/build/esm/cc/WakeUpCC.js +2 -22
- package/build/esm/cc/WakeUpCC.js.map +1 -1
- package/build/esm/cc/WindowCoveringCC.d.ts +118 -122
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
- package/build/esm/cc/WindowCoveringCC.js +3 -108
- package/build/esm/cc/WindowCoveringCC.js.map +1 -1
- package/build/esm/cc/ZWavePlusCC.d.ts +74 -74
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
- package/build/esm/cc/ZWavePlusCC.js +2 -26
- package/build/esm/cc/ZWavePlusCC.js.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.d.ts +28 -28
- package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.js +0 -27
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/esm/cc/_CCValues.generated.d.ts +15814 -0
- package/build/esm/cc/_CCValues.generated.d.ts.map +1 -0
- package/build/esm/cc/_CCValues.generated.js +9187 -0
- package/build/esm/cc/_CCValues.generated.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +4 -4
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -1
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +0 -3
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/esm/index.d.ts +1 -0
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index_browser.d.ts +9 -0
- package/build/esm/index_browser.d.ts.map +1 -1
- package/build/esm/index_browser.js +8 -1
- package/build/esm/index_browser.js.map +1 -1
- package/build/esm/lib/API.d.ts +7 -5
- package/build/esm/lib/API.d.ts.map +1 -1
- package/build/esm/lib/API.js +1 -1
- package/build/esm/lib/API.js.map +1 -1
- package/build/esm/lib/CCValueUtils.d.ts +14 -0
- package/build/esm/lib/CCValueUtils.d.ts.map +1 -0
- package/build/esm/lib/CCValueUtils.js +62 -0
- package/build/esm/lib/CCValueUtils.js.map +1 -0
- package/build/esm/lib/CommandClass.d.ts +10 -21
- package/build/esm/lib/CommandClass.d.ts.map +1 -1
- package/build/esm/lib/CommandClass.js +8 -101
- package/build/esm/lib/CommandClass.js.map +1 -1
- package/build/esm/lib/CommandClassDecorators.d.ts +1 -1
- package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -1
- package/build/esm/lib/CommandClassDecorators.js +1 -1
- package/build/esm/lib/CommandClassDecorators.js.map +1 -1
- package/build/esm/lib/Values.d.ts +7 -106
- package/build/esm/lib/Values.d.ts.map +1 -1
- package/build/esm/lib/Values.js +7 -104
- package/build/esm/lib/Values.js.map +1 -1
- package/build/esm/lib/traits.d.ts +94 -0
- package/build/esm/lib/traits.d.ts.map +1 -0
- package/build/esm/lib/traits.js +2 -0
- package/build/esm/lib/traits.js.map +1 -0
- package/build/esm/lib/utils.d.ts +2 -2
- package/build/esm/lib/utils.d.ts.map +1 -1
- package/build/esm/lib/utils.js.map +1 -1
- package/package.json +16 -14
|
@@ -1,37 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type
|
|
1
|
+
import { type CCEncodingContext, type CCParsingContext } from "@zwave-js/cc";
|
|
2
|
+
import { CommandClasses, type GetValueDB, type MaybeNotKnown, type MaybeUnknown, type MessageOrCCLogEntry, type SupervisionResult, type WithAddress } from "@zwave-js/core/safe";
|
|
3
3
|
import { Bytes } from "@zwave-js/shared/safe";
|
|
4
4
|
import { CCAPI, POLL_VALUE, type PollValueImplementation, SET_VALUE, SET_VALUE_HOOKS, type SetValueImplementation, type SetValueImplementationHooksFactory } from "../lib/API.js";
|
|
5
5
|
import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext } from "../lib/CommandClass.js";
|
|
6
6
|
import { BarrierOperatorCommand, BarrierState, SubsystemState, SubsystemType } from "../lib/_Types.js";
|
|
7
7
|
export declare const BarrierOperatorCCValues: Readonly<{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
[x: number]: string;
|
|
13
|
-
};
|
|
14
|
-
readonly min: 0;
|
|
15
|
-
readonly max: 255;
|
|
16
|
-
readonly type: "number";
|
|
17
|
-
readonly readable: true;
|
|
18
|
-
readonly writeable: true;
|
|
19
|
-
};
|
|
20
|
-
readonly id: {
|
|
21
|
-
commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
22
|
-
property: "signalingState";
|
|
23
|
-
propertyKey: SubsystemType;
|
|
8
|
+
supportedSubsystemTypes: {
|
|
9
|
+
id: {
|
|
10
|
+
readonly commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
11
|
+
readonly property: "supportedSubsystemTypes";
|
|
24
12
|
};
|
|
25
|
-
|
|
13
|
+
endpoint: (endpoint?: number) => {
|
|
26
14
|
readonly commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
27
15
|
readonly endpoint: number;
|
|
28
|
-
readonly property: "
|
|
29
|
-
readonly propertyKey: SubsystemType;
|
|
16
|
+
readonly property: "supportedSubsystemTypes";
|
|
30
17
|
};
|
|
31
|
-
}) & {
|
|
32
18
|
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
19
|
+
readonly meta: Readonly<{
|
|
20
|
+
readonly type: "any";
|
|
21
|
+
readonly readable: true;
|
|
22
|
+
readonly writeable: true;
|
|
23
|
+
}>;
|
|
24
|
+
options: {
|
|
25
|
+
readonly internal: true;
|
|
35
26
|
readonly minVersion: 1;
|
|
36
27
|
readonly secret: false;
|
|
37
28
|
readonly stateful: true;
|
|
@@ -39,29 +30,27 @@ export declare const BarrierOperatorCCValues: Readonly<{
|
|
|
39
30
|
readonly autoCreate: true;
|
|
40
31
|
};
|
|
41
32
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
45
|
-
property: "
|
|
33
|
+
position: {
|
|
34
|
+
id: {
|
|
35
|
+
readonly commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
36
|
+
readonly property: "position";
|
|
46
37
|
};
|
|
47
|
-
|
|
38
|
+
endpoint: (endpoint?: number) => {
|
|
48
39
|
readonly commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
49
40
|
readonly endpoint: number;
|
|
50
|
-
readonly property: "
|
|
41
|
+
readonly property: "position";
|
|
51
42
|
};
|
|
52
|
-
|
|
43
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
53
44
|
readonly meta: {
|
|
54
|
-
readonly label: "
|
|
55
|
-
readonly
|
|
56
|
-
|
|
57
|
-
};
|
|
45
|
+
readonly label: "Barrier Position";
|
|
46
|
+
readonly unit: "%";
|
|
47
|
+
readonly max: 100;
|
|
58
48
|
readonly writeable: false;
|
|
59
49
|
readonly min: 0;
|
|
60
|
-
readonly max: 255;
|
|
61
50
|
readonly type: "number";
|
|
62
51
|
readonly readable: true;
|
|
63
52
|
};
|
|
64
|
-
|
|
53
|
+
options: {
|
|
65
54
|
readonly internal: false;
|
|
66
55
|
readonly minVersion: 1;
|
|
67
56
|
readonly secret: false;
|
|
@@ -71,28 +60,26 @@ export declare const BarrierOperatorCCValues: Readonly<{
|
|
|
71
60
|
};
|
|
72
61
|
};
|
|
73
62
|
targetState: {
|
|
74
|
-
|
|
75
|
-
commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
76
|
-
property: "targetState";
|
|
63
|
+
id: {
|
|
64
|
+
readonly commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
65
|
+
readonly property: "targetState";
|
|
77
66
|
};
|
|
78
|
-
|
|
67
|
+
endpoint: (endpoint?: number) => {
|
|
79
68
|
readonly commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
80
69
|
readonly endpoint: number;
|
|
81
70
|
readonly property: "targetState";
|
|
82
71
|
};
|
|
83
|
-
|
|
72
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
84
73
|
readonly meta: {
|
|
85
74
|
readonly label: "Target Barrier State";
|
|
86
|
-
readonly states:
|
|
87
|
-
[x: number]: string;
|
|
88
|
-
};
|
|
75
|
+
readonly states: Record<number, string>;
|
|
89
76
|
readonly min: 0;
|
|
90
77
|
readonly max: 255;
|
|
91
78
|
readonly type: "number";
|
|
92
79
|
readonly readable: true;
|
|
93
80
|
readonly writeable: true;
|
|
94
81
|
};
|
|
95
|
-
|
|
82
|
+
options: {
|
|
96
83
|
readonly internal: false;
|
|
97
84
|
readonly minVersion: 1;
|
|
98
85
|
readonly secret: false;
|
|
@@ -101,27 +88,27 @@ export declare const BarrierOperatorCCValues: Readonly<{
|
|
|
101
88
|
readonly autoCreate: true;
|
|
102
89
|
};
|
|
103
90
|
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
107
|
-
property: "
|
|
91
|
+
currentState: {
|
|
92
|
+
id: {
|
|
93
|
+
readonly commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
94
|
+
readonly property: "currentState";
|
|
108
95
|
};
|
|
109
|
-
|
|
96
|
+
endpoint: (endpoint?: number) => {
|
|
110
97
|
readonly commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
111
98
|
readonly endpoint: number;
|
|
112
|
-
readonly property: "
|
|
99
|
+
readonly property: "currentState";
|
|
113
100
|
};
|
|
114
|
-
|
|
101
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
115
102
|
readonly meta: {
|
|
116
|
-
readonly label: "Barrier
|
|
117
|
-
readonly
|
|
118
|
-
readonly max: 100;
|
|
103
|
+
readonly label: "Current Barrier State";
|
|
104
|
+
readonly states: Record<number, string>;
|
|
119
105
|
readonly writeable: false;
|
|
120
106
|
readonly min: 0;
|
|
107
|
+
readonly max: 255;
|
|
121
108
|
readonly type: "number";
|
|
122
109
|
readonly readable: true;
|
|
123
110
|
};
|
|
124
|
-
|
|
111
|
+
options: {
|
|
125
112
|
readonly internal: false;
|
|
126
113
|
readonly minVersion: 1;
|
|
127
114
|
readonly secret: false;
|
|
@@ -130,29 +117,36 @@ export declare const BarrierOperatorCCValues: Readonly<{
|
|
|
130
117
|
readonly autoCreate: true;
|
|
131
118
|
};
|
|
132
119
|
};
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
136
|
-
property: "
|
|
120
|
+
signalingState: ((subsystemType: SubsystemType) => {
|
|
121
|
+
id: {
|
|
122
|
+
readonly commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
123
|
+
readonly property: "signalingState";
|
|
124
|
+
readonly propertyKey: SubsystemType;
|
|
137
125
|
};
|
|
138
|
-
|
|
126
|
+
endpoint: (endpoint?: number) => {
|
|
139
127
|
readonly commandClass: (typeof CommandClasses)["Barrier Operator"];
|
|
140
128
|
readonly endpoint: number;
|
|
141
|
-
readonly property: "
|
|
129
|
+
readonly property: "signalingState";
|
|
130
|
+
readonly propertyKey: SubsystemType;
|
|
142
131
|
};
|
|
143
|
-
readonly is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
144
132
|
readonly meta: {
|
|
145
|
-
readonly
|
|
133
|
+
readonly label: `Signaling State (${string})`;
|
|
134
|
+
readonly states: Record<number, string>;
|
|
135
|
+
readonly min: 0;
|
|
136
|
+
readonly max: 255;
|
|
137
|
+
readonly type: "number";
|
|
146
138
|
readonly readable: true;
|
|
147
139
|
readonly writeable: true;
|
|
148
140
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
141
|
+
}) & {
|
|
142
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
143
|
+
options: {
|
|
144
|
+
readonly internal: false;
|
|
152
145
|
readonly minVersion: 1;
|
|
146
|
+
readonly secret: false;
|
|
147
|
+
readonly stateful: true;
|
|
153
148
|
readonly supportsEndpoints: true;
|
|
154
149
|
readonly autoCreate: true;
|
|
155
|
-
readonly internal: true;
|
|
156
150
|
};
|
|
157
151
|
};
|
|
158
152
|
}>;
|
|
@@ -179,7 +173,7 @@ export declare class BarrierOperatorCCSet extends BarrierOperatorCC {
|
|
|
179
173
|
constructor(options: WithAddress<BarrierOperatorCCSetOptions>);
|
|
180
174
|
static from(_raw: CCRaw, _ctx: CCParsingContext): BarrierOperatorCCSet;
|
|
181
175
|
targetState: BarrierState.Open | BarrierState.Closed;
|
|
182
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
176
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
183
177
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
184
178
|
}
|
|
185
179
|
export interface BarrierOperatorCCReportOptions {
|
|
@@ -215,7 +209,7 @@ export declare class BarrierOperatorCCEventSignalingSet extends BarrierOperatorC
|
|
|
215
209
|
static from(_raw: CCRaw, _ctx: CCParsingContext): BarrierOperatorCCEventSignalingSet;
|
|
216
210
|
subsystemType: SubsystemType;
|
|
217
211
|
subsystemState: SubsystemState;
|
|
218
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
212
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
219
213
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
220
214
|
}
|
|
221
215
|
export interface BarrierOperatorCCEventSignalingReportOptions {
|
|
@@ -237,7 +231,7 @@ export declare class BarrierOperatorCCEventSignalingGet extends BarrierOperatorC
|
|
|
237
231
|
constructor(options: WithAddress<BarrierOperatorCCEventSignalingGetOptions>);
|
|
238
232
|
static from(_raw: CCRaw, _ctx: CCParsingContext): BarrierOperatorCCEventSignalingGet;
|
|
239
233
|
subsystemType: SubsystemType;
|
|
240
|
-
serialize(ctx: CCEncodingContext): Bytes
|
|
234
|
+
serialize(ctx: CCEncodingContext): Promise<Bytes>;
|
|
241
235
|
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
242
236
|
}
|
|
243
237
|
//# sourceMappingURL=BarrierOperatorCC.d.ts.map
|
|
@@ -39,7 +39,7 @@ __export(BarrierOperatorCC_exports, {
|
|
|
39
39
|
BarrierOperatorCCSet: () => BarrierOperatorCCSet,
|
|
40
40
|
BarrierOperatorCCSignalingCapabilitiesGet: () => BarrierOperatorCCSignalingCapabilitiesGet,
|
|
41
41
|
BarrierOperatorCCSignalingCapabilitiesReport: () => BarrierOperatorCCSignalingCapabilitiesReport,
|
|
42
|
-
BarrierOperatorCCValues: () => BarrierOperatorCCValues
|
|
42
|
+
BarrierOperatorCCValues: () => import_CCValues_generated.BarrierOperatorCCValues
|
|
43
43
|
});
|
|
44
44
|
module.exports = __toCommonJS(BarrierOperatorCC_exports);
|
|
45
45
|
var __validateArgs = __toESM(require("./BarrierOperatorCC._validateArgs.js"), 1);
|
|
@@ -51,6 +51,7 @@ var import_CommandClass = require("../lib/CommandClass.js");
|
|
|
51
51
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
52
52
|
var import_Values = require("../lib/Values.js");
|
|
53
53
|
var import_Types = require("../lib/_Types.js");
|
|
54
|
+
var import_CCValues_generated = require("./_CCValues.generated.js");
|
|
54
55
|
var __runInitializers = function(thisArg, initializers, value) {
|
|
55
56
|
var useValue = arguments.length > 2;
|
|
56
57
|
for (var i = 0; i < initializers.length; i++) {
|
|
@@ -92,39 +93,6 @@ var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializ
|
|
|
92
93
|
done = true;
|
|
93
94
|
};
|
|
94
95
|
const { validateArgs_BarrierOperatorCCAPI_set, validateArgs_BarrierOperatorCCAPI_getSignalingCapabilities, validateArgs_BarrierOperatorCCAPI_getEventSignaling, validateArgs_BarrierOperatorCCAPI_setEventSignaling } = __validateArgs;
|
|
95
|
-
const BarrierOperatorCCValues = Object.freeze({
|
|
96
|
-
...import_Values.V.defineStaticCCValues(import_safe.CommandClasses["Barrier Operator"], {
|
|
97
|
-
...import_Values.V.staticProperty("supportedSubsystemTypes", void 0, {
|
|
98
|
-
internal: true
|
|
99
|
-
}),
|
|
100
|
-
...import_Values.V.staticProperty("position", {
|
|
101
|
-
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
102
|
-
label: "Barrier Position",
|
|
103
|
-
unit: "%",
|
|
104
|
-
max: 100
|
|
105
|
-
}),
|
|
106
|
-
...import_Values.V.staticProperty("targetState", {
|
|
107
|
-
...import_safe.ValueMetadata.UInt8,
|
|
108
|
-
label: "Target Barrier State",
|
|
109
|
-
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.BarrierState, [
|
|
110
|
-
import_Types.BarrierState.Open,
|
|
111
|
-
import_Types.BarrierState.Closed
|
|
112
|
-
])
|
|
113
|
-
}),
|
|
114
|
-
...import_Values.V.staticProperty("currentState", {
|
|
115
|
-
...import_safe.ValueMetadata.ReadOnlyUInt8,
|
|
116
|
-
label: "Current Barrier State",
|
|
117
|
-
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.BarrierState)
|
|
118
|
-
})
|
|
119
|
-
}),
|
|
120
|
-
...import_Values.V.defineDynamicCCValues(import_safe.CommandClasses["Barrier Operator"], {
|
|
121
|
-
...import_Values.V.dynamicPropertyAndKeyWithName("signalingState", "signalingState", (subsystemType) => subsystemType, ({ property, propertyKey }) => property === "signalingState" && typeof propertyKey === "number", (subsystemType) => ({
|
|
122
|
-
...import_safe.ValueMetadata.UInt8,
|
|
123
|
-
label: `Signaling State (${(0, import_safe3.getEnumMemberName)(import_Types.SubsystemType, subsystemType)})`,
|
|
124
|
-
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.SubsystemState)
|
|
125
|
-
}))
|
|
126
|
-
})
|
|
127
|
-
});
|
|
128
96
|
let BarrierOperatorCCAPI = (() => {
|
|
129
97
|
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses["Barrier Operator"])];
|
|
130
98
|
let _classDescriptor;
|
|
@@ -244,8 +212,8 @@ let BarrierOperatorCCAPI = (() => {
|
|
|
244
212
|
property,
|
|
245
213
|
propertyKey
|
|
246
214
|
};
|
|
247
|
-
if (BarrierOperatorCCValues.targetState.is(valueId)) {
|
|
248
|
-
const currentStateValueId = BarrierOperatorCCValues.currentState.endpoint(this.endpoint.index);
|
|
215
|
+
if (import_CCValues_generated.BarrierOperatorCCValues.targetState.is(valueId)) {
|
|
216
|
+
const currentStateValueId = import_CCValues_generated.BarrierOperatorCCValues.currentState.endpoint(this.endpoint.index);
|
|
249
217
|
const targetValue = value === import_Types.BarrierState.Closed ? import_Types.BarrierState.Closed : import_Types.BarrierState.Open;
|
|
250
218
|
return {
|
|
251
219
|
// Barrier Operator commands may take some time to be executed.
|
|
@@ -280,9 +248,9 @@ let BarrierOperatorCCAPI = (() => {
|
|
|
280
248
|
}
|
|
281
249
|
}, "verifyChanges")
|
|
282
250
|
};
|
|
283
|
-
} else if (BarrierOperatorCCValues.signalingState.is(valueId)) {
|
|
251
|
+
} else if (import_CCValues_generated.BarrierOperatorCCValues.signalingState.is(valueId)) {
|
|
284
252
|
const subsystemType = propertyKey;
|
|
285
|
-
const signalingStateValueId = BarrierOperatorCCValues.signalingState(subsystemType).endpoint(this.endpoint.index);
|
|
253
|
+
const signalingStateValueId = import_CCValues_generated.BarrierOperatorCCValues.signalingState(subsystemType).endpoint(this.endpoint.index);
|
|
286
254
|
return {
|
|
287
255
|
verifyChanges: /* @__PURE__ */ __name(() => {
|
|
288
256
|
if (this.isSinglecast()) {
|
|
@@ -317,7 +285,7 @@ let BarrierOperatorCCAPI = (() => {
|
|
|
317
285
|
return BarrierOperatorCCAPI2 = _classThis;
|
|
318
286
|
})();
|
|
319
287
|
let BarrierOperatorCC = (() => {
|
|
320
|
-
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Barrier Operator"]), (0, import_CommandClassDecorators.implementedVersion)(1), (0, import_CommandClassDecorators.ccValues)(BarrierOperatorCCValues)];
|
|
288
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Barrier Operator"]), (0, import_CommandClassDecorators.implementedVersion)(1), (0, import_CommandClassDecorators.ccValues)(import_CCValues_generated.BarrierOperatorCCValues)];
|
|
321
289
|
let _classDescriptor;
|
|
322
290
|
let _classExtraInitializers = [];
|
|
323
291
|
let _classThis;
|
|
@@ -347,7 +315,7 @@ let BarrierOperatorCC = (() => {
|
|
|
347
315
|
message: `Interviewing ${this.ccName}...`,
|
|
348
316
|
direction: "none"
|
|
349
317
|
});
|
|
350
|
-
this.ensureMetadata(ctx, BarrierOperatorCCValues.targetState);
|
|
318
|
+
this.ensureMetadata(ctx, import_CCValues_generated.BarrierOperatorCCValues.targetState);
|
|
351
319
|
ctx.logNode(node.id, {
|
|
352
320
|
message: "Querying signaling capabilities...",
|
|
353
321
|
direction: "outbound"
|
|
@@ -378,7 +346,7 @@ let BarrierOperatorCC = (() => {
|
|
|
378
346
|
const api = import_API.CCAPI.create(import_safe.CommandClasses["Barrier Operator"], ctx, endpoint).withOptions({
|
|
379
347
|
priority: import_safe.MessagePriority.NodeQuery
|
|
380
348
|
});
|
|
381
|
-
const supportedSubsystems = this.getValue(ctx, BarrierOperatorCCValues.supportedSubsystemTypes) ?? [];
|
|
349
|
+
const supportedSubsystems = this.getValue(ctx, import_CCValues_generated.BarrierOperatorCCValues.supportedSubsystemTypes) ?? [];
|
|
382
350
|
for (const subsystemType of supportedSubsystems) {
|
|
383
351
|
if (!(0, import_safe3.isEnumMember)(import_Types.SubsystemType, subsystemType))
|
|
384
352
|
continue;
|
|
@@ -445,7 +413,7 @@ let BarrierOperatorCCSet = (() => {
|
|
|
445
413
|
return BarrierOperatorCCSet2 = _classThis;
|
|
446
414
|
})();
|
|
447
415
|
let BarrierOperatorCCReport = (() => {
|
|
448
|
-
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("currentState", BarrierOperatorCCValues.currentState), (0, import_CommandClassDecorators.ccValueProperty)("position", BarrierOperatorCCValues.position)];
|
|
416
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("currentState", import_CCValues_generated.BarrierOperatorCCValues.currentState), (0, import_CommandClassDecorators.ccValueProperty)("position", import_CCValues_generated.BarrierOperatorCCValues.position)];
|
|
449
417
|
let _classDescriptor;
|
|
450
418
|
let _classExtraInitializers = [];
|
|
451
419
|
let _classThis;
|
|
@@ -532,7 +500,7 @@ let BarrierOperatorCCGet = (() => {
|
|
|
532
500
|
return BarrierOperatorCCGet2 = _classThis;
|
|
533
501
|
})();
|
|
534
502
|
let BarrierOperatorCCSignalingCapabilitiesReport = (() => {
|
|
535
|
-
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.SignalingCapabilitiesReport), (0, import_CommandClassDecorators.ccValueProperty)("supportedSubsystemTypes", BarrierOperatorCCValues.supportedSubsystemTypes)];
|
|
503
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.BarrierOperatorCommand.SignalingCapabilitiesReport), (0, import_CommandClassDecorators.ccValueProperty)("supportedSubsystemTypes", import_CCValues_generated.BarrierOperatorCCValues.supportedSubsystemTypes)];
|
|
536
504
|
let _classDescriptor;
|
|
537
505
|
let _classExtraInitializers = [];
|
|
538
506
|
let _classThis;
|
|
@@ -682,7 +650,7 @@ let BarrierOperatorCCEventSignalingReport = (() => {
|
|
|
682
650
|
persistValues(ctx) {
|
|
683
651
|
if (!super.persistValues(ctx))
|
|
684
652
|
return false;
|
|
685
|
-
const signalingStateValue = BarrierOperatorCCValues.signalingState(this.subsystemType);
|
|
653
|
+
const signalingStateValue = import_CCValues_generated.BarrierOperatorCCValues.signalingState(this.subsystemType);
|
|
686
654
|
this.ensureMetadata(ctx, signalingStateValue);
|
|
687
655
|
this.setValue(ctx, signalingStateValue, this.subsystemState);
|
|
688
656
|
return true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/cc/BarrierOperatorCC.ts"],
|
|
4
|
-
"sourcesContent": ["import {\n\tCommandClasses,\n\ttype MaybeNotKnown,\n\ttype MaybeUnknown,\n\ttype MessageOrCCLogEntry,\n\tMessagePriority,\n\ttype SupervisionResult,\n\tUNKNOWN_STATE,\n\tValueMetadata,\n\ttype WithAddress,\n\tZWaveError,\n\tZWaveErrorCodes,\n\tenumValuesToMetadataStates,\n\tmaybeUnknownToString,\n\tparseBitMask,\n\tvalidatePayload,\n} from \"@zwave-js/core/safe\";\nimport type {\n\tCCEncodingContext,\n\tCCParsingContext,\n\tGetValueDB,\n} from \"@zwave-js/host/safe\";\nimport { Bytes } from \"@zwave-js/shared/safe\";\nimport {\n\tgetEnumMemberName,\n\tisEnumMember,\n\tnoop,\n\tpick,\n} from \"@zwave-js/shared/safe\";\nimport { validateArgs } from \"@zwave-js/transformers\";\nimport {\n\tCCAPI,\n\tPOLL_VALUE,\n\ttype PollValueImplementation,\n\tSET_VALUE,\n\tSET_VALUE_HOOKS,\n\ttype SetValueImplementation,\n\ttype SetValueImplementationHooksFactory,\n\tthrowMissingPropertyKey,\n\tthrowUnsupportedProperty,\n\tthrowUnsupportedPropertyKey,\n\tthrowWrongValueType,\n} from \"../lib/API.js\";\nimport {\n\ttype CCRaw,\n\tCommandClass,\n\ttype InterviewContext,\n\ttype PersistValuesContext,\n\ttype RefreshValuesContext,\n} from \"../lib/CommandClass.js\";\nimport {\n\tAPI,\n\tCCCommand,\n\tccValueProperty,\n\tccValues,\n\tcommandClass,\n\texpectedCCResponse,\n\timplementedVersion,\n\tuseSupervision,\n} from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport {\n\tBarrierOperatorCommand,\n\tBarrierState,\n\tSubsystemState,\n\tSubsystemType,\n} from \"../lib/_Types.js\";\n\nexport const BarrierOperatorCCValues = Object.freeze({\n\t...V.defineStaticCCValues(CommandClasses[\"Barrier Operator\"], {\n\t\t...V.staticProperty(\"supportedSubsystemTypes\", undefined, {\n\t\t\tinternal: true,\n\t\t}),\n\n\t\t...V.staticProperty(\n\t\t\t\"position\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.ReadOnlyUInt8,\n\t\t\t\tlabel: \"Barrier Position\",\n\t\t\t\tunit: \"%\",\n\t\t\t\tmax: 100,\n\t\t\t} as const,\n\t\t),\n\n\t\t...V.staticProperty(\n\t\t\t\"targetState\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.UInt8,\n\t\t\t\tlabel: \"Target Barrier State\",\n\t\t\t\tstates: enumValuesToMetadataStates(BarrierState, [\n\t\t\t\t\tBarrierState.Open,\n\t\t\t\t\tBarrierState.Closed,\n\t\t\t\t]),\n\t\t\t} as const,\n\t\t),\n\n\t\t...V.staticProperty(\n\t\t\t\"currentState\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.ReadOnlyUInt8,\n\t\t\t\tlabel: \"Current Barrier State\",\n\t\t\t\tstates: enumValuesToMetadataStates(BarrierState),\n\t\t\t} as const,\n\t\t),\n\t}),\n\n\t...V.defineDynamicCCValues(CommandClasses[\"Barrier Operator\"], {\n\t\t...V.dynamicPropertyAndKeyWithName(\n\t\t\t\"signalingState\",\n\t\t\t\"signalingState\",\n\t\t\t(subsystemType: SubsystemType) => subsystemType,\n\t\t\t({ property, propertyKey }) =>\n\t\t\t\tproperty === \"signalingState\"\n\t\t\t\t&& typeof propertyKey === \"number\",\n\t\t\t(subsystemType: SubsystemType) => ({\n\t\t\t\t...ValueMetadata.UInt8,\n\t\t\t\tlabel: `Signaling State (${\n\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t)\n\t\t\t\t})`,\n\t\t\t\tstates: enumValuesToMetadataStates(SubsystemState),\n\t\t\t} as const),\n\t\t),\n\t}),\n});\n\n@API(CommandClasses[\"Barrier Operator\"])\nexport class BarrierOperatorCCAPI extends CCAPI {\n\tpublic supportsCommand(\n\t\tcmd: BarrierOperatorCommand,\n\t): MaybeNotKnown<boolean> {\n\t\tswitch (cmd) {\n\t\t\tcase BarrierOperatorCommand.Get:\n\t\t\tcase BarrierOperatorCommand.Set:\n\t\t\tcase BarrierOperatorCommand.SignalingCapabilitiesGet:\n\t\t\tcase BarrierOperatorCommand.EventSignalingGet:\n\t\t\tcase BarrierOperatorCommand.EventSignalingSet:\n\t\t\t\treturn true; // This is mandatory\n\t\t}\n\t\treturn super.supportsCommand(cmd);\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n\tpublic async get() {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.Get,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\t\tconst response = await this.host.sendCommand<\n\t\t\tBarrierOperatorCCReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\tif (response) {\n\t\t\treturn pick(response, [\"currentState\", \"position\"]);\n\t\t}\n\t}\n\n\t@validateArgs({ strictEnums: true })\n\tpublic async set(\n\t\ttargetState: BarrierState.Open | BarrierState.Closed,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.Set,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\ttargetState,\n\t\t});\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n\n\t@validateArgs()\n\tpublic async getSignalingCapabilities(): Promise<\n\t\tMaybeNotKnown<readonly SubsystemType[]>\n\t> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.SignalingCapabilitiesGet,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCSignalingCapabilitiesGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\t\tconst response = await this.host.sendCommand<\n\t\t\tBarrierOperatorCCSignalingCapabilitiesReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\treturn response?.supportedSubsystemTypes;\n\t}\n\n\t@validateArgs({ strictEnums: true })\n\tpublic async getEventSignaling(\n\t\tsubsystemType: SubsystemType,\n\t): Promise<MaybeNotKnown<SubsystemState>> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.EventSignalingGet,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCEventSignalingGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\tsubsystemType,\n\t\t});\n\t\tconst response = await this.host.sendCommand<\n\t\t\tBarrierOperatorCCEventSignalingReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\treturn response?.subsystemState;\n\t}\n\n\t@validateArgs({ strictEnums: true })\n\tpublic async setEventSignaling(\n\t\tsubsystemType: SubsystemType,\n\t\tsubsystemState: SubsystemState,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.EventSignalingSet,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCEventSignalingSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\tsubsystemType,\n\t\t\tsubsystemState,\n\t\t});\n\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n\n\tprotected override get [SET_VALUE](): SetValueImplementation {\n\t\treturn async function(\n\t\t\tthis: BarrierOperatorCCAPI,\n\t\t\t{ property, propertyKey },\n\t\t\tvalue,\n\t\t) {\n\t\t\tif (property === \"targetState\") {\n\t\t\t\tif (typeof value !== \"number\") {\n\t\t\t\t\tthrowWrongValueType(\n\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\tproperty,\n\t\t\t\t\t\t\"number\",\n\t\t\t\t\t\ttypeof value,\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tconst targetValue = value === BarrierState.Closed\n\t\t\t\t\t? BarrierState.Closed\n\t\t\t\t\t: BarrierState.Open;\n\t\t\t\treturn this.set(targetValue);\n\t\t\t} else if (property === \"signalingState\") {\n\t\t\t\tif (propertyKey == undefined) {\n\t\t\t\t\tthrowMissingPropertyKey(this.ccId, property);\n\t\t\t\t} else if (typeof propertyKey !== \"number\") {\n\t\t\t\t\tthrowUnsupportedPropertyKey(\n\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\tproperty,\n\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tif (typeof value !== \"number\") {\n\t\t\t\t\tthrowWrongValueType(\n\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\tproperty,\n\t\t\t\t\t\t\"number\",\n\t\t\t\t\t\ttypeof value,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\treturn this.setEventSignaling(propertyKey, value);\n\t\t\t} else {\n\t\t\t\tthrowUnsupportedProperty(this.ccId, property);\n\t\t\t}\n\t\t};\n\t}\n\n\tprotected [SET_VALUE_HOOKS]: SetValueImplementationHooksFactory = (\n\t\t{ property, propertyKey },\n\t\tvalue,\n\t\t_options,\n\t) => {\n\t\tconst valueId = {\n\t\t\tcommandClass: this.ccId,\n\t\t\tproperty,\n\t\t\tpropertyKey,\n\t\t};\n\n\t\tif (BarrierOperatorCCValues.targetState.is(valueId)) {\n\t\t\tconst currentStateValueId = BarrierOperatorCCValues.currentState\n\t\t\t\t.endpoint(\n\t\t\t\t\tthis.endpoint.index,\n\t\t\t\t);\n\n\t\t\tconst targetValue = value === BarrierState.Closed\n\t\t\t\t? BarrierState.Closed\n\t\t\t\t: BarrierState.Open;\n\n\t\t\treturn {\n\t\t\t\t// Barrier Operator commands may take some time to be executed.\n\t\t\t\t// Therefore we try to supervise the command execution and delay the\n\t\t\t\t// optimistic update until the final result is received.\n\t\t\t\tsupervisionDelayedUpdates: true,\n\t\t\t\tsupervisionOnSuccess: () => {\n\t\t\t\t\tthis.tryGetValueDB()?.setValue(\n\t\t\t\t\t\tcurrentStateValueId,\n\t\t\t\t\t\ttargetValue,\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tsupervisionOnFailure: async () => {\n\t\t\t\t\t// The command failed, so now we don't know the status - refresh the current value\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait this.get();\n\t\t\t\t\t} catch {\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\toptimisticallyUpdateRelatedValues: (\n\t\t\t\t\tsupervisedAndSuccessful,\n\t\t\t\t) => {\n\t\t\t\t\t// For barriers, do not update the current value unless we actually know the command was successful\n\t\t\t\t\tif (!supervisedAndSuccessful) return;\n\n\t\t\t\t\tif (this.isSinglecast()) {\n\t\t\t\t\t\tthis.tryGetValueDB()?.setValue(\n\t\t\t\t\t\t\tcurrentStateValueId,\n\t\t\t\t\t\t\ttargetValue,\n\t\t\t\t\t\t);\n\t\t\t\t\t} else if (this.isMulticast()) {\n\t\t\t\t\t\t// Figure out which nodes were affected by this command\n\t\t\t\t\t\tconst affectedNodes = this.endpoint.node.physicalNodes\n\t\t\t\t\t\t\t.filter((node) =>\n\t\t\t\t\t\t\t\tnode\n\t\t\t\t\t\t\t\t\t.getEndpoint(this.endpoint.index)\n\t\t\t\t\t\t\t\t\t?.supportsCC(this.ccId)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t// and optimistically update the currentValue\n\t\t\t\t\t\tfor (const node of affectedNodes) {\n\t\t\t\t\t\t\tthis.host\n\t\t\t\t\t\t\t\t.tryGetValueDB(node.id)\n\t\t\t\t\t\t\t\t?.setValue(currentStateValueId, targetValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\tverifyChanges: () => {\n\t\t\t\t\tif (this.isSinglecast()) {\n\t\t\t\t\t\t// We query currentValue instead of targetValue to make sure that unsolicited updates cancel the scheduled poll\n\t\t\t\t\t\tthis.schedulePoll(currentStateValueId, targetValue);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// For multicasts, do not schedule a refresh - this could cause a LOT of traffic\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t};\n\t\t} else if (BarrierOperatorCCValues.signalingState.is(valueId)) {\n\t\t\tconst subsystemType = propertyKey as SubsystemType;\n\t\t\tconst signalingStateValueId = BarrierOperatorCCValues\n\t\t\t\t.signalingState(subsystemType).endpoint(\n\t\t\t\t\tthis.endpoint.index,\n\t\t\t\t);\n\n\t\t\treturn {\n\t\t\t\tverifyChanges: () => {\n\t\t\t\t\tif (this.isSinglecast()) {\n\t\t\t\t\t\tthis.schedulePoll(signalingStateValueId, value, {\n\t\t\t\t\t\t\t// Signaling state changes are fast\n\t\t\t\t\t\t\ttransition: \"fast\",\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t};\n\n\tprotected get [POLL_VALUE](): PollValueImplementation {\n\t\treturn async function(\n\t\t\tthis: BarrierOperatorCCAPI,\n\t\t\t{ property, propertyKey },\n\t\t) {\n\t\t\tswitch (property) {\n\t\t\t\tcase \"currentState\":\n\t\t\t\tcase \"position\":\n\t\t\t\t\treturn (await this.get())?.[property];\n\t\t\t\tcase \"signalingState\":\n\t\t\t\t\tif (propertyKey == undefined) {\n\t\t\t\t\t\tthrowMissingPropertyKey(this.ccId, property);\n\t\t\t\t\t} else if (typeof propertyKey !== \"number\") {\n\t\t\t\t\t\tthrowUnsupportedPropertyKey(\n\t\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\t\tproperty,\n\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\treturn this.getEventSignaling(propertyKey);\n\t\t\t\tdefault:\n\t\t\t\t\tthrowUnsupportedProperty(this.ccId, property);\n\t\t\t}\n\t\t};\n\t}\n}\n\n@commandClass(CommandClasses[\"Barrier Operator\"])\n@implementedVersion(1)\n@ccValues(BarrierOperatorCCValues)\nexport class BarrierOperatorCC extends CommandClass {\n\tdeclare ccCommand: BarrierOperatorCommand;\n\n\tpublic async interview(\n\t\tctx: InterviewContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\t\tconst endpoint = this.getEndpoint(ctx)!;\n\t\tconst api = CCAPI.create(\n\t\t\tCommandClasses[\"Barrier Operator\"],\n\t\t\tctx,\n\t\t\tendpoint,\n\t\t).withOptions({\n\t\t\tpriority: MessagePriority.NodeQuery,\n\t\t});\n\n\t\tctx.logNode(node.id, {\n\t\t\tendpoint: this.endpointIndex,\n\t\t\tmessage: `Interviewing ${this.ccName}...`,\n\t\t\tdirection: \"none\",\n\t\t});\n\n\t\t// Create targetState value if it does not exist\n\t\tthis.ensureMetadata(ctx, BarrierOperatorCCValues.targetState);\n\n\t\tctx.logNode(node.id, {\n\t\t\tmessage: \"Querying signaling capabilities...\",\n\t\t\tdirection: \"outbound\",\n\t\t});\n\t\tconst resp = await api.getSignalingCapabilities();\n\t\tif (resp) {\n\t\t\tctx.logNode(node.id, {\n\t\t\t\tmessage: `Received supported subsystem types: ${\n\t\t\t\t\tresp\n\t\t\t\t\t\t.map((t) =>\n\t\t\t\t\t\t\t`\\n\u00B7 ${getEnumMemberName(SubsystemType, t)}`\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.join(\"\")\n\t\t\t\t}`,\n\t\t\t\tdirection: \"inbound\",\n\t\t\t});\n\n\t\t\t// Enable all supported subsystems\n\t\t\tfor (const subsystemType of resp) {\n\t\t\t\t// Some devices report invalid subsystem types, but the CC API checks\n\t\t\t\t// for valid values and throws otherwise.\n\t\t\t\tif (!isEnumMember(SubsystemType, subsystemType)) continue;\n\n\t\t\t\tctx.logNode(node.id, {\n\t\t\t\t\tmessage: `Enabling subsystem ${\n\t\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t\t)\n\t\t\t\t\t}...`,\n\t\t\t\t\tdirection: \"outbound\",\n\t\t\t\t});\n\t\t\t\tawait api.setEventSignaling(subsystemType, SubsystemState.On)\n\t\t\t\t\t.catch(noop);\n\t\t\t}\n\t\t}\n\n\t\tawait this.refreshValues(ctx);\n\n\t\t// Remember that the interview is complete\n\t\tthis.setInterviewComplete(ctx, true);\n\t}\n\n\tpublic async refreshValues(\n\t\tctx: RefreshValuesContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\t\tconst endpoint = this.getEndpoint(ctx)!;\n\t\tconst api = CCAPI.create(\n\t\t\tCommandClasses[\"Barrier Operator\"],\n\t\t\tctx,\n\t\t\tendpoint,\n\t\t).withOptions({\n\t\t\tpriority: MessagePriority.NodeQuery,\n\t\t});\n\n\t\tconst supportedSubsystems: SubsystemType[] = this.getValue(\n\t\t\tctx,\n\t\t\tBarrierOperatorCCValues.supportedSubsystemTypes,\n\t\t) ?? [];\n\n\t\tfor (const subsystemType of supportedSubsystems) {\n\t\t\t// Some devices report invalid subsystem types, but the CC API checks\n\t\t\t// for valid values and throws otherwise.\n\t\t\tif (!isEnumMember(SubsystemType, subsystemType)) continue;\n\n\t\t\tctx.logNode(node.id, {\n\t\t\t\tmessage: `Querying event signaling state for subsystem ${\n\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t)\n\t\t\t\t}...`,\n\t\t\t\tdirection: \"outbound\",\n\t\t\t});\n\t\t\tconst state = await api.getEventSignaling(subsystemType);\n\t\t\tif (state != undefined) {\n\t\t\t\tctx.logNode(node.id, {\n\t\t\t\t\tmessage: `Subsystem ${\n\t\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t\t)\n\t\t\t\t\t} has state ${getEnumMemberName(SubsystemState, state)}`,\n\t\t\t\t\tdirection: \"inbound\",\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tctx.logNode(node.id, {\n\t\t\tmessage: \"querying current barrier state...\",\n\t\t\tdirection: \"outbound\",\n\t\t});\n\t\tawait api.get();\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCSetOptions {\n\ttargetState: BarrierState.Open | BarrierState.Closed;\n}\n\n@CCCommand(BarrierOperatorCommand.Set)\n@useSupervision()\nexport class BarrierOperatorCCSet extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.targetState = options.targetState;\n\t}\n\n\tpublic static from(\n\t\t_raw: CCRaw,\n\t\t_ctx: CCParsingContext,\n\t): BarrierOperatorCCSet {\n\t\tthrow new ZWaveError(\n\t\t\t`${this.name}: deserialization not implemented`,\n\t\t\tZWaveErrorCodes.Deserialization_NotImplemented,\n\t\t);\n\n\t\t// return new BarrierOperatorCCSet({\n\t\t// \tnodeId: ctx.sourceNodeId,\n\t\t// });\n\t}\n\n\tpublic targetState: BarrierState.Open | BarrierState.Closed;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.targetState]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: { \"target state\": this.targetState },\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCReportOptions {\n\tposition: MaybeUnknown<number>;\n\tcurrentState: MaybeUnknown<BarrierState>;\n}\n\n@CCCommand(BarrierOperatorCommand.Report)\n@ccValueProperty(\"currentState\", BarrierOperatorCCValues.currentState)\n@ccValueProperty(\"position\", BarrierOperatorCCValues.position)\nexport class BarrierOperatorCCReport extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCReportOptions>,\n\t) {\n\t\tsuper(options);\n\n\t\t// TODO: Check implementation:\n\t\tthis.position = options.position;\n\t\tthis.currentState = options.currentState;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): BarrierOperatorCCReport {\n\t\tvalidatePayload(raw.payload.length >= 1);\n\t\t// The payload byte encodes information about the state and position in a single value\n\t\tconst payloadValue = raw.payload[0];\n\t\tlet position: MaybeUnknown<number>;\n\t\tif (payloadValue <= 99) {\n\t\t\t// known position\n\t\t\tposition = payloadValue;\n\t\t} else if (payloadValue === 255) {\n\t\t\t// known position, fully opened\n\t\t\tposition = 100;\n\t\t} else {\n\t\t\t// unknown position\n\t\t\tposition = UNKNOWN_STATE;\n\t\t}\n\n\t\tlet currentState: MaybeUnknown<BarrierState>;\n\t\tif (\n\t\t\tpayloadValue === BarrierState.Closed\n\t\t\t|| payloadValue >= BarrierState.Closing\n\t\t) {\n\t\t\t// predefined states\n\t\t\tcurrentState = payloadValue;\n\t\t} else if (payloadValue > 0 && payloadValue <= 99) {\n\t\t\t// stopped at exact position\n\t\t\tcurrentState = BarrierState.Stopped;\n\t\t} else {\n\t\t\t// invalid value, assume unknown\n\t\t\tcurrentState = UNKNOWN_STATE;\n\t\t}\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tposition,\n\t\t\tcurrentState,\n\t\t});\n\t}\n\n\tpublic readonly currentState: MaybeUnknown<BarrierState>;\n\n\tpublic readonly position: MaybeUnknown<number>;\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"barrier position\": maybeUnknownToString(this.position),\n\t\t\t\t\"barrier state\": this.currentState != undefined\n\t\t\t\t\t? getEnumMemberName(BarrierState, this.currentState)\n\t\t\t\t\t: \"unknown\",\n\t\t\t},\n\t\t};\n\t}\n}\n\n@CCCommand(BarrierOperatorCommand.Get)\n@expectedCCResponse(BarrierOperatorCCReport)\nexport class BarrierOperatorCCGet extends BarrierOperatorCC {}\n\n// @publicAPI\nexport interface BarrierOperatorCCSignalingCapabilitiesReportOptions {\n\tsupportedSubsystemTypes: SubsystemType[];\n}\n\n@CCCommand(BarrierOperatorCommand.SignalingCapabilitiesReport)\n@ccValueProperty(\n\t\"supportedSubsystemTypes\",\n\tBarrierOperatorCCValues.supportedSubsystemTypes,\n)\nexport class BarrierOperatorCCSignalingCapabilitiesReport\n\textends BarrierOperatorCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<\n\t\t\tBarrierOperatorCCSignalingCapabilitiesReportOptions\n\t\t>,\n\t) {\n\t\tsuper(options);\n\n\t\t// TODO: Check implementation:\n\t\tthis.supportedSubsystemTypes = options.supportedSubsystemTypes;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): BarrierOperatorCCSignalingCapabilitiesReport {\n\t\tconst supportedSubsystemTypes: SubsystemType[] = parseBitMask(\n\t\t\traw.payload,\n\t\t\tSubsystemType.Audible,\n\t\t);\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tsupportedSubsystemTypes,\n\t\t});\n\t}\n\n\tpublic readonly supportedSubsystemTypes: readonly SubsystemType[];\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"supported types\": this.supportedSubsystemTypes\n\t\t\t\t\t.map((t) => `\\n\u00B7 ${getEnumMemberName(SubsystemType, t)}`)\n\t\t\t\t\t.join(\"\"),\n\t\t\t},\n\t\t};\n\t}\n}\n\n@CCCommand(BarrierOperatorCommand.SignalingCapabilitiesGet)\n@expectedCCResponse(BarrierOperatorCCSignalingCapabilitiesReport)\nexport class BarrierOperatorCCSignalingCapabilitiesGet\n\textends BarrierOperatorCC\n{}\n\n// @publicAPI\nexport interface BarrierOperatorCCEventSignalingSetOptions {\n\tsubsystemType: SubsystemType;\n\tsubsystemState: SubsystemState;\n}\n\n@CCCommand(BarrierOperatorCommand.EventSignalingSet)\n@useSupervision()\nexport class BarrierOperatorCCEventSignalingSet extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCEventSignalingSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.subsystemType = options.subsystemType;\n\t\tthis.subsystemState = options.subsystemState;\n\t}\n\n\tpublic static from(\n\t\t_raw: CCRaw,\n\t\t_ctx: CCParsingContext,\n\t): BarrierOperatorCCEventSignalingSet {\n\t\t// TODO: Deserialize payload\n\t\tthrow new ZWaveError(\n\t\t\t`${this.name}: deserialization not implemented`,\n\t\t\tZWaveErrorCodes.Deserialization_NotImplemented,\n\t\t);\n\n\t\t// return new BarrierOperatorCCEventSignalingSet({\n\t\t// \tnodeId: ctx.sourceNodeId,\n\t\t// });\n\t}\n\n\tpublic subsystemType: SubsystemType;\n\tpublic subsystemState: SubsystemState;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.subsystemType, this.subsystemState]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"subsystem type\": getEnumMemberName(\n\t\t\t\t\tSubsystemType,\n\t\t\t\t\tthis.subsystemType,\n\t\t\t\t),\n\t\t\t\t\"subsystem state\": getEnumMemberName(\n\t\t\t\t\tSubsystemState,\n\t\t\t\t\tthis.subsystemState,\n\t\t\t\t),\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCEventSignalingReportOptions {\n\tsubsystemType: SubsystemType;\n\tsubsystemState: SubsystemState;\n}\n\n@CCCommand(BarrierOperatorCommand.EventSignalingReport)\nexport class BarrierOperatorCCEventSignalingReport extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCEventSignalingReportOptions>,\n\t) {\n\t\tsuper(options);\n\n\t\t// TODO: Check implementation:\n\t\tthis.subsystemType = options.subsystemType;\n\t\tthis.subsystemState = options.subsystemState;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): BarrierOperatorCCEventSignalingReport {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst subsystemType: SubsystemType = raw.payload[0];\n\t\tconst subsystemState: SubsystemState = raw.payload[1];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tsubsystemType,\n\t\t\tsubsystemState,\n\t\t});\n\t}\n\n\tpublic persistValues(ctx: PersistValuesContext): boolean {\n\t\tif (!super.persistValues(ctx)) return false;\n\n\t\tconst signalingStateValue = BarrierOperatorCCValues.signalingState(\n\t\t\tthis.subsystemType,\n\t\t);\n\n\t\tthis.ensureMetadata(ctx, signalingStateValue);\n\t\tthis.setValue(ctx, signalingStateValue, this.subsystemState);\n\n\t\treturn true;\n\t}\n\n\tpublic readonly subsystemType: SubsystemType;\n\tpublic readonly subsystemState: SubsystemState;\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"subsystem type\": getEnumMemberName(\n\t\t\t\t\tSubsystemType,\n\t\t\t\t\tthis.subsystemType,\n\t\t\t\t),\n\t\t\t\t\"subsystem state\": getEnumMemberName(\n\t\t\t\t\tSubsystemState,\n\t\t\t\t\tthis.subsystemState,\n\t\t\t\t),\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCEventSignalingGetOptions {\n\tsubsystemType: SubsystemType;\n}\n\n@CCCommand(BarrierOperatorCommand.EventSignalingGet)\n@expectedCCResponse(BarrierOperatorCCEventSignalingReport)\nexport class BarrierOperatorCCEventSignalingGet extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCEventSignalingGetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.subsystemType = options.subsystemType;\n\t}\n\n\tpublic static from(\n\t\t_raw: CCRaw,\n\t\t_ctx: CCParsingContext,\n\t): BarrierOperatorCCEventSignalingGet {\n\t\t// TODO: Deserialize payload\n\t\tthrow new ZWaveError(\n\t\t\t`${this.name}: deserialization not implemented`,\n\t\t\tZWaveErrorCodes.Deserialization_NotImplemented,\n\t\t);\n\n\t\t// return new BarrierOperatorCCEventSignalingGet({\n\t\t// \tnodeId: ctx.sourceNodeId,\n\t\t// });\n\t}\n\n\tpublic subsystemType: SubsystemType;\n\n\tpublic serialize(ctx: CCEncodingContext): Bytes {\n\t\tthis.payload = Bytes.from([this.subsystemType]);\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"subsystem type\": getEnumMemberName(\n\t\t\t\t\tSubsystemType,\n\t\t\t\t\tthis.subsystemType,\n\t\t\t\t),\n\t\t\t},\n\t\t};\n\t}\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAgBO;AAMP,IAAAA,eAAsB;AACtB,I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AAK,mBAAmB;AAC5C,WAAK,SAAS,KAAK,qBAAqB,KAAK,cAAc;AAE3D,aAAO;IACR;IAEgB;IACA;IAET,WAAW,KAAgB;AACjC,aAAO;QACN,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS;UACR,sBAAkB,gCACjB,4BACA,KAAK,aAAa;UAEnB,uBAAmB,gCAClB,6BACA,KAAK,cAAc;;;IAIvB;;;;IAUY,sCAAkC,MAAA;8BAF9C,yCAAU,oCAAuB,iBAAiB,OAClD,kDAAmB,qCAAqC,CAAC;;;;oBACF;0DAAA,YAAiB;WAAA;;;;;;;;AAAzE,mBAAA,MAAA,mBAAA,EAAA,OAAA,WAAA,GAAA,kBAAA,EAAA,MAAA,SAAA,MAAA,WAAA,MAAA,UAAA,UAAA,GAAA,MAAA,uBAAA;;;AAAa,wBAAA,YAAA,uBAAA;;IACZ,YACC,SAA+D;AAE/D,YAAM,OAAO;AACb,WAAK,gBAAgB,QAAQ;IAC9B;IAEO,OAAO,KACb,MACA,MAAsB;AAGtB,YAAM,IAAI,uBACT,GAAG,KAAK,IAAI,qCACZ,4BAAgB,8BAA8B;IAMhD;IAEO;IAEA,UAAU,KAAsB;AACtC,WAAK,UAAU,mBAAM,KAAK,CAAC,KAAK,aAAa,CAAC;AAE9C,aAAO,MAAM,UAAU,GAAG;IAC3B;IAEO,WAAW,KAAgB;AACjC,aAAO;QACN,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS;UACR,sBAAkB,gCACjB,4BACA,KAAK,aAAa;;;IAItB;;;;",
|
|
4
|
+
"sourcesContent": ["import { type CCEncodingContext, type CCParsingContext } from \"@zwave-js/cc\";\nimport {\n\tCommandClasses,\n\ttype GetValueDB,\n\ttype MaybeNotKnown,\n\ttype MaybeUnknown,\n\ttype MessageOrCCLogEntry,\n\tMessagePriority,\n\ttype SupervisionResult,\n\tUNKNOWN_STATE,\n\tValueMetadata,\n\ttype WithAddress,\n\tZWaveError,\n\tZWaveErrorCodes,\n\tenumValuesToMetadataStates,\n\tmaybeUnknownToString,\n\tparseBitMask,\n\tvalidatePayload,\n} from \"@zwave-js/core/safe\";\nimport { Bytes } from \"@zwave-js/shared/safe\";\nimport {\n\tgetEnumMemberName,\n\tisEnumMember,\n\tnoop,\n\tpick,\n} from \"@zwave-js/shared/safe\";\nimport { validateArgs } from \"@zwave-js/transformers\";\nimport {\n\tCCAPI,\n\tPOLL_VALUE,\n\ttype PollValueImplementation,\n\tSET_VALUE,\n\tSET_VALUE_HOOKS,\n\ttype SetValueImplementation,\n\ttype SetValueImplementationHooksFactory,\n\tthrowMissingPropertyKey,\n\tthrowUnsupportedProperty,\n\tthrowUnsupportedPropertyKey,\n\tthrowWrongValueType,\n} from \"../lib/API.js\";\nimport {\n\ttype CCRaw,\n\tCommandClass,\n\ttype InterviewContext,\n\ttype PersistValuesContext,\n\ttype RefreshValuesContext,\n} from \"../lib/CommandClass.js\";\nimport {\n\tAPI,\n\tCCCommand,\n\tccValueProperty,\n\tccValues,\n\tcommandClass,\n\texpectedCCResponse,\n\timplementedVersion,\n\tuseSupervision,\n} from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport {\n\tBarrierOperatorCommand,\n\tBarrierState,\n\tSubsystemState,\n\tSubsystemType,\n} from \"../lib/_Types.js\";\n\nexport const BarrierOperatorCCValues = V.defineCCValues(\n\tCommandClasses[\"Barrier Operator\"],\n\t{\n\t\t...V.staticProperty(\"supportedSubsystemTypes\", undefined, {\n\t\t\tinternal: true,\n\t\t}),\n\n\t\t...V.staticProperty(\n\t\t\t\"position\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.ReadOnlyUInt8,\n\t\t\t\tlabel: \"Barrier Position\",\n\t\t\t\tunit: \"%\",\n\t\t\t\tmax: 100,\n\t\t\t} as const,\n\t\t),\n\n\t\t...V.staticProperty(\n\t\t\t\"targetState\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.UInt8,\n\t\t\t\tlabel: \"Target Barrier State\",\n\t\t\t\tstates: enumValuesToMetadataStates(BarrierState, [\n\t\t\t\t\tBarrierState.Open,\n\t\t\t\t\tBarrierState.Closed,\n\t\t\t\t]),\n\t\t\t} as const,\n\t\t),\n\n\t\t...V.staticProperty(\n\t\t\t\"currentState\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.ReadOnlyUInt8,\n\t\t\t\tlabel: \"Current Barrier State\",\n\t\t\t\tstates: enumValuesToMetadataStates(BarrierState),\n\t\t\t} as const,\n\t\t),\n\n\t\t...V.dynamicPropertyAndKeyWithName(\n\t\t\t\"signalingState\",\n\t\t\t\"signalingState\",\n\t\t\t(subsystemType: SubsystemType) => subsystemType,\n\t\t\t({ property, propertyKey }) =>\n\t\t\t\tproperty === \"signalingState\"\n\t\t\t\t&& typeof propertyKey === \"number\",\n\t\t\t(subsystemType: SubsystemType) => ({\n\t\t\t\t...ValueMetadata.UInt8,\n\t\t\t\tlabel: `Signaling State (${\n\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t)\n\t\t\t\t})`,\n\t\t\t\tstates: enumValuesToMetadataStates(SubsystemState),\n\t\t\t} as const),\n\t\t),\n\t},\n);\n\n@API(CommandClasses[\"Barrier Operator\"])\nexport class BarrierOperatorCCAPI extends CCAPI {\n\tpublic supportsCommand(\n\t\tcmd: BarrierOperatorCommand,\n\t): MaybeNotKnown<boolean> {\n\t\tswitch (cmd) {\n\t\t\tcase BarrierOperatorCommand.Get:\n\t\t\tcase BarrierOperatorCommand.Set:\n\t\t\tcase BarrierOperatorCommand.SignalingCapabilitiesGet:\n\t\t\tcase BarrierOperatorCommand.EventSignalingGet:\n\t\t\tcase BarrierOperatorCommand.EventSignalingSet:\n\t\t\t\treturn true; // This is mandatory\n\t\t}\n\t\treturn super.supportsCommand(cmd);\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n\tpublic async get() {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.Get,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\t\tconst response = await this.host.sendCommand<\n\t\t\tBarrierOperatorCCReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\tif (response) {\n\t\t\treturn pick(response, [\"currentState\", \"position\"]);\n\t\t}\n\t}\n\n\t@validateArgs({ strictEnums: true })\n\tpublic async set(\n\t\ttargetState: BarrierState.Open | BarrierState.Closed,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.Set,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\ttargetState,\n\t\t});\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n\n\t@validateArgs()\n\tpublic async getSignalingCapabilities(): Promise<\n\t\tMaybeNotKnown<readonly SubsystemType[]>\n\t> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.SignalingCapabilitiesGet,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCSignalingCapabilitiesGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\t\tconst response = await this.host.sendCommand<\n\t\t\tBarrierOperatorCCSignalingCapabilitiesReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\treturn response?.supportedSubsystemTypes;\n\t}\n\n\t@validateArgs({ strictEnums: true })\n\tpublic async getEventSignaling(\n\t\tsubsystemType: SubsystemType,\n\t): Promise<MaybeNotKnown<SubsystemState>> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.EventSignalingGet,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCEventSignalingGet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\tsubsystemType,\n\t\t});\n\t\tconst response = await this.host.sendCommand<\n\t\t\tBarrierOperatorCCEventSignalingReport\n\t\t>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\treturn response?.subsystemState;\n\t}\n\n\t@validateArgs({ strictEnums: true })\n\tpublic async setEventSignaling(\n\t\tsubsystemType: SubsystemType,\n\t\tsubsystemState: SubsystemState,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBarrierOperatorCommand,\n\t\t\tBarrierOperatorCommand.EventSignalingSet,\n\t\t);\n\n\t\tconst cc = new BarrierOperatorCCEventSignalingSet({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\tsubsystemType,\n\t\t\tsubsystemState,\n\t\t});\n\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n\n\tprotected override get [SET_VALUE](): SetValueImplementation {\n\t\treturn async function(\n\t\t\tthis: BarrierOperatorCCAPI,\n\t\t\t{ property, propertyKey },\n\t\t\tvalue,\n\t\t) {\n\t\t\tif (property === \"targetState\") {\n\t\t\t\tif (typeof value !== \"number\") {\n\t\t\t\t\tthrowWrongValueType(\n\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\tproperty,\n\t\t\t\t\t\t\"number\",\n\t\t\t\t\t\ttypeof value,\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tconst targetValue = value === BarrierState.Closed\n\t\t\t\t\t? BarrierState.Closed\n\t\t\t\t\t: BarrierState.Open;\n\t\t\t\treturn this.set(targetValue);\n\t\t\t} else if (property === \"signalingState\") {\n\t\t\t\tif (propertyKey == undefined) {\n\t\t\t\t\tthrowMissingPropertyKey(this.ccId, property);\n\t\t\t\t} else if (typeof propertyKey !== \"number\") {\n\t\t\t\t\tthrowUnsupportedPropertyKey(\n\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\tproperty,\n\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tif (typeof value !== \"number\") {\n\t\t\t\t\tthrowWrongValueType(\n\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\tproperty,\n\t\t\t\t\t\t\"number\",\n\t\t\t\t\t\ttypeof value,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\treturn this.setEventSignaling(propertyKey, value);\n\t\t\t} else {\n\t\t\t\tthrowUnsupportedProperty(this.ccId, property);\n\t\t\t}\n\t\t};\n\t}\n\n\tprotected [SET_VALUE_HOOKS]: SetValueImplementationHooksFactory = (\n\t\t{ property, propertyKey },\n\t\tvalue,\n\t\t_options,\n\t) => {\n\t\tconst valueId = {\n\t\t\tcommandClass: this.ccId,\n\t\t\tproperty,\n\t\t\tpropertyKey,\n\t\t};\n\n\t\tif (BarrierOperatorCCValues.targetState.is(valueId)) {\n\t\t\tconst currentStateValueId = BarrierOperatorCCValues.currentState\n\t\t\t\t.endpoint(\n\t\t\t\t\tthis.endpoint.index,\n\t\t\t\t);\n\n\t\t\tconst targetValue = value === BarrierState.Closed\n\t\t\t\t? BarrierState.Closed\n\t\t\t\t: BarrierState.Open;\n\n\t\t\treturn {\n\t\t\t\t// Barrier Operator commands may take some time to be executed.\n\t\t\t\t// Therefore we try to supervise the command execution and delay the\n\t\t\t\t// optimistic update until the final result is received.\n\t\t\t\tsupervisionDelayedUpdates: true,\n\t\t\t\tsupervisionOnSuccess: () => {\n\t\t\t\t\tthis.tryGetValueDB()?.setValue(\n\t\t\t\t\t\tcurrentStateValueId,\n\t\t\t\t\t\ttargetValue,\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tsupervisionOnFailure: async () => {\n\t\t\t\t\t// The command failed, so now we don't know the status - refresh the current value\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait this.get();\n\t\t\t\t\t} catch {\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\toptimisticallyUpdateRelatedValues: (\n\t\t\t\t\tsupervisedAndSuccessful,\n\t\t\t\t) => {\n\t\t\t\t\t// For barriers, do not update the current value unless we actually know the command was successful\n\t\t\t\t\tif (!supervisedAndSuccessful) return;\n\n\t\t\t\t\tif (this.isSinglecast()) {\n\t\t\t\t\t\tthis.tryGetValueDB()?.setValue(\n\t\t\t\t\t\t\tcurrentStateValueId,\n\t\t\t\t\t\t\ttargetValue,\n\t\t\t\t\t\t);\n\t\t\t\t\t} else if (this.isMulticast()) {\n\t\t\t\t\t\t// Figure out which nodes were affected by this command\n\t\t\t\t\t\tconst affectedNodes = this.endpoint.node.physicalNodes\n\t\t\t\t\t\t\t.filter((node) =>\n\t\t\t\t\t\t\t\tnode\n\t\t\t\t\t\t\t\t\t.getEndpoint(this.endpoint.index)\n\t\t\t\t\t\t\t\t\t?.supportsCC(this.ccId)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t// and optimistically update the currentValue\n\t\t\t\t\t\tfor (const node of affectedNodes) {\n\t\t\t\t\t\t\tthis.host\n\t\t\t\t\t\t\t\t.tryGetValueDB(node.id)\n\t\t\t\t\t\t\t\t?.setValue(currentStateValueId, targetValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\tverifyChanges: () => {\n\t\t\t\t\tif (this.isSinglecast()) {\n\t\t\t\t\t\t// We query currentValue instead of targetValue to make sure that unsolicited updates cancel the scheduled poll\n\t\t\t\t\t\tthis.schedulePoll(currentStateValueId, targetValue);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// For multicasts, do not schedule a refresh - this could cause a LOT of traffic\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t};\n\t\t} else if (BarrierOperatorCCValues.signalingState.is(valueId)) {\n\t\t\tconst subsystemType = propertyKey as SubsystemType;\n\t\t\tconst signalingStateValueId = BarrierOperatorCCValues\n\t\t\t\t.signalingState(subsystemType).endpoint(\n\t\t\t\t\tthis.endpoint.index,\n\t\t\t\t);\n\n\t\t\treturn {\n\t\t\t\tverifyChanges: () => {\n\t\t\t\t\tif (this.isSinglecast()) {\n\t\t\t\t\t\tthis.schedulePoll(signalingStateValueId, value, {\n\t\t\t\t\t\t\t// Signaling state changes are fast\n\t\t\t\t\t\t\ttransition: \"fast\",\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t};\n\n\tprotected get [POLL_VALUE](): PollValueImplementation {\n\t\treturn async function(\n\t\t\tthis: BarrierOperatorCCAPI,\n\t\t\t{ property, propertyKey },\n\t\t) {\n\t\t\tswitch (property) {\n\t\t\t\tcase \"currentState\":\n\t\t\t\tcase \"position\":\n\t\t\t\t\treturn (await this.get())?.[property];\n\t\t\t\tcase \"signalingState\":\n\t\t\t\t\tif (propertyKey == undefined) {\n\t\t\t\t\t\tthrowMissingPropertyKey(this.ccId, property);\n\t\t\t\t\t} else if (typeof propertyKey !== \"number\") {\n\t\t\t\t\t\tthrowUnsupportedPropertyKey(\n\t\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\t\tproperty,\n\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\treturn this.getEventSignaling(propertyKey);\n\t\t\t\tdefault:\n\t\t\t\t\tthrowUnsupportedProperty(this.ccId, property);\n\t\t\t}\n\t\t};\n\t}\n}\n\n@commandClass(CommandClasses[\"Barrier Operator\"])\n@implementedVersion(1)\n@ccValues(BarrierOperatorCCValues)\nexport class BarrierOperatorCC extends CommandClass {\n\tdeclare ccCommand: BarrierOperatorCommand;\n\n\tpublic async interview(\n\t\tctx: InterviewContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\t\tconst endpoint = this.getEndpoint(ctx)!;\n\t\tconst api = CCAPI.create(\n\t\t\tCommandClasses[\"Barrier Operator\"],\n\t\t\tctx,\n\t\t\tendpoint,\n\t\t).withOptions({\n\t\t\tpriority: MessagePriority.NodeQuery,\n\t\t});\n\n\t\tctx.logNode(node.id, {\n\t\t\tendpoint: this.endpointIndex,\n\t\t\tmessage: `Interviewing ${this.ccName}...`,\n\t\t\tdirection: \"none\",\n\t\t});\n\n\t\t// Create targetState value if it does not exist\n\t\tthis.ensureMetadata(ctx, BarrierOperatorCCValues.targetState);\n\n\t\tctx.logNode(node.id, {\n\t\t\tmessage: \"Querying signaling capabilities...\",\n\t\t\tdirection: \"outbound\",\n\t\t});\n\t\tconst resp = await api.getSignalingCapabilities();\n\t\tif (resp) {\n\t\t\tctx.logNode(node.id, {\n\t\t\t\tmessage: `Received supported subsystem types: ${\n\t\t\t\t\tresp\n\t\t\t\t\t\t.map((t) =>\n\t\t\t\t\t\t\t`\\n\u00B7 ${getEnumMemberName(SubsystemType, t)}`\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.join(\"\")\n\t\t\t\t}`,\n\t\t\t\tdirection: \"inbound\",\n\t\t\t});\n\n\t\t\t// Enable all supported subsystems\n\t\t\tfor (const subsystemType of resp) {\n\t\t\t\t// Some devices report invalid subsystem types, but the CC API checks\n\t\t\t\t// for valid values and throws otherwise.\n\t\t\t\tif (!isEnumMember(SubsystemType, subsystemType)) continue;\n\n\t\t\t\tctx.logNode(node.id, {\n\t\t\t\t\tmessage: `Enabling subsystem ${\n\t\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t\t)\n\t\t\t\t\t}...`,\n\t\t\t\t\tdirection: \"outbound\",\n\t\t\t\t});\n\t\t\t\tawait api.setEventSignaling(subsystemType, SubsystemState.On)\n\t\t\t\t\t.catch(noop);\n\t\t\t}\n\t\t}\n\n\t\tawait this.refreshValues(ctx);\n\n\t\t// Remember that the interview is complete\n\t\tthis.setInterviewComplete(ctx, true);\n\t}\n\n\tpublic async refreshValues(\n\t\tctx: RefreshValuesContext,\n\t): Promise<void> {\n\t\tconst node = this.getNode(ctx)!;\n\t\tconst endpoint = this.getEndpoint(ctx)!;\n\t\tconst api = CCAPI.create(\n\t\t\tCommandClasses[\"Barrier Operator\"],\n\t\t\tctx,\n\t\t\tendpoint,\n\t\t).withOptions({\n\t\t\tpriority: MessagePriority.NodeQuery,\n\t\t});\n\n\t\tconst supportedSubsystems: SubsystemType[] = this.getValue(\n\t\t\tctx,\n\t\t\tBarrierOperatorCCValues.supportedSubsystemTypes,\n\t\t) ?? [];\n\n\t\tfor (const subsystemType of supportedSubsystems) {\n\t\t\t// Some devices report invalid subsystem types, but the CC API checks\n\t\t\t// for valid values and throws otherwise.\n\t\t\tif (!isEnumMember(SubsystemType, subsystemType)) continue;\n\n\t\t\tctx.logNode(node.id, {\n\t\t\t\tmessage: `Querying event signaling state for subsystem ${\n\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t)\n\t\t\t\t}...`,\n\t\t\t\tdirection: \"outbound\",\n\t\t\t});\n\t\t\tconst state = await api.getEventSignaling(subsystemType);\n\t\t\tif (state != undefined) {\n\t\t\t\tctx.logNode(node.id, {\n\t\t\t\t\tmessage: `Subsystem ${\n\t\t\t\t\t\tgetEnumMemberName(\n\t\t\t\t\t\t\tSubsystemType,\n\t\t\t\t\t\t\tsubsystemType,\n\t\t\t\t\t\t)\n\t\t\t\t\t} has state ${getEnumMemberName(SubsystemState, state)}`,\n\t\t\t\t\tdirection: \"inbound\",\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tctx.logNode(node.id, {\n\t\t\tmessage: \"querying current barrier state...\",\n\t\t\tdirection: \"outbound\",\n\t\t});\n\t\tawait api.get();\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCSetOptions {\n\ttargetState: BarrierState.Open | BarrierState.Closed;\n}\n\n@CCCommand(BarrierOperatorCommand.Set)\n@useSupervision()\nexport class BarrierOperatorCCSet extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.targetState = options.targetState;\n\t}\n\n\tpublic static from(\n\t\t_raw: CCRaw,\n\t\t_ctx: CCParsingContext,\n\t): BarrierOperatorCCSet {\n\t\tthrow new ZWaveError(\n\t\t\t`${this.name}: deserialization not implemented`,\n\t\t\tZWaveErrorCodes.Deserialization_NotImplemented,\n\t\t);\n\n\t\t// return new BarrierOperatorCCSet({\n\t\t// \tnodeId: ctx.sourceNodeId,\n\t\t// });\n\t}\n\n\tpublic targetState: BarrierState.Open | BarrierState.Closed;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([this.targetState]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: { \"target state\": this.targetState },\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCReportOptions {\n\tposition: MaybeUnknown<number>;\n\tcurrentState: MaybeUnknown<BarrierState>;\n}\n\n@CCCommand(BarrierOperatorCommand.Report)\n@ccValueProperty(\"currentState\", BarrierOperatorCCValues.currentState)\n@ccValueProperty(\"position\", BarrierOperatorCCValues.position)\nexport class BarrierOperatorCCReport extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCReportOptions>,\n\t) {\n\t\tsuper(options);\n\n\t\t// TODO: Check implementation:\n\t\tthis.position = options.position;\n\t\tthis.currentState = options.currentState;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): BarrierOperatorCCReport {\n\t\tvalidatePayload(raw.payload.length >= 1);\n\t\t// The payload byte encodes information about the state and position in a single value\n\t\tconst payloadValue = raw.payload[0];\n\t\tlet position: MaybeUnknown<number>;\n\t\tif (payloadValue <= 99) {\n\t\t\t// known position\n\t\t\tposition = payloadValue;\n\t\t} else if (payloadValue === 255) {\n\t\t\t// known position, fully opened\n\t\t\tposition = 100;\n\t\t} else {\n\t\t\t// unknown position\n\t\t\tposition = UNKNOWN_STATE;\n\t\t}\n\n\t\tlet currentState: MaybeUnknown<BarrierState>;\n\t\tif (\n\t\t\tpayloadValue === BarrierState.Closed\n\t\t\t|| payloadValue >= BarrierState.Closing\n\t\t) {\n\t\t\t// predefined states\n\t\t\tcurrentState = payloadValue;\n\t\t} else if (payloadValue > 0 && payloadValue <= 99) {\n\t\t\t// stopped at exact position\n\t\t\tcurrentState = BarrierState.Stopped;\n\t\t} else {\n\t\t\t// invalid value, assume unknown\n\t\t\tcurrentState = UNKNOWN_STATE;\n\t\t}\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tposition,\n\t\t\tcurrentState,\n\t\t});\n\t}\n\n\tpublic readonly currentState: MaybeUnknown<BarrierState>;\n\n\tpublic readonly position: MaybeUnknown<number>;\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"barrier position\": maybeUnknownToString(this.position),\n\t\t\t\t\"barrier state\": this.currentState != undefined\n\t\t\t\t\t? getEnumMemberName(BarrierState, this.currentState)\n\t\t\t\t\t: \"unknown\",\n\t\t\t},\n\t\t};\n\t}\n}\n\n@CCCommand(BarrierOperatorCommand.Get)\n@expectedCCResponse(BarrierOperatorCCReport)\nexport class BarrierOperatorCCGet extends BarrierOperatorCC {}\n\n// @publicAPI\nexport interface BarrierOperatorCCSignalingCapabilitiesReportOptions {\n\tsupportedSubsystemTypes: SubsystemType[];\n}\n\n@CCCommand(BarrierOperatorCommand.SignalingCapabilitiesReport)\n@ccValueProperty(\n\t\"supportedSubsystemTypes\",\n\tBarrierOperatorCCValues.supportedSubsystemTypes,\n)\nexport class BarrierOperatorCCSignalingCapabilitiesReport\n\textends BarrierOperatorCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<\n\t\t\tBarrierOperatorCCSignalingCapabilitiesReportOptions\n\t\t>,\n\t) {\n\t\tsuper(options);\n\n\t\t// TODO: Check implementation:\n\t\tthis.supportedSubsystemTypes = options.supportedSubsystemTypes;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): BarrierOperatorCCSignalingCapabilitiesReport {\n\t\tconst supportedSubsystemTypes: SubsystemType[] = parseBitMask(\n\t\t\traw.payload,\n\t\t\tSubsystemType.Audible,\n\t\t);\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tsupportedSubsystemTypes,\n\t\t});\n\t}\n\n\tpublic readonly supportedSubsystemTypes: readonly SubsystemType[];\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"supported types\": this.supportedSubsystemTypes\n\t\t\t\t\t.map((t) => `\\n\u00B7 ${getEnumMemberName(SubsystemType, t)}`)\n\t\t\t\t\t.join(\"\"),\n\t\t\t},\n\t\t};\n\t}\n}\n\n@CCCommand(BarrierOperatorCommand.SignalingCapabilitiesGet)\n@expectedCCResponse(BarrierOperatorCCSignalingCapabilitiesReport)\nexport class BarrierOperatorCCSignalingCapabilitiesGet\n\textends BarrierOperatorCC\n{}\n\n// @publicAPI\nexport interface BarrierOperatorCCEventSignalingSetOptions {\n\tsubsystemType: SubsystemType;\n\tsubsystemState: SubsystemState;\n}\n\n@CCCommand(BarrierOperatorCommand.EventSignalingSet)\n@useSupervision()\nexport class BarrierOperatorCCEventSignalingSet extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCEventSignalingSetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.subsystemType = options.subsystemType;\n\t\tthis.subsystemState = options.subsystemState;\n\t}\n\n\tpublic static from(\n\t\t_raw: CCRaw,\n\t\t_ctx: CCParsingContext,\n\t): BarrierOperatorCCEventSignalingSet {\n\t\t// TODO: Deserialize payload\n\t\tthrow new ZWaveError(\n\t\t\t`${this.name}: deserialization not implemented`,\n\t\t\tZWaveErrorCodes.Deserialization_NotImplemented,\n\t\t);\n\n\t\t// return new BarrierOperatorCCEventSignalingSet({\n\t\t// \tnodeId: ctx.sourceNodeId,\n\t\t// });\n\t}\n\n\tpublic subsystemType: SubsystemType;\n\tpublic subsystemState: SubsystemState;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([this.subsystemType, this.subsystemState]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"subsystem type\": getEnumMemberName(\n\t\t\t\t\tSubsystemType,\n\t\t\t\t\tthis.subsystemType,\n\t\t\t\t),\n\t\t\t\t\"subsystem state\": getEnumMemberName(\n\t\t\t\t\tSubsystemState,\n\t\t\t\t\tthis.subsystemState,\n\t\t\t\t),\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCEventSignalingReportOptions {\n\tsubsystemType: SubsystemType;\n\tsubsystemState: SubsystemState;\n}\n\n@CCCommand(BarrierOperatorCommand.EventSignalingReport)\nexport class BarrierOperatorCCEventSignalingReport extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCEventSignalingReportOptions>,\n\t) {\n\t\tsuper(options);\n\n\t\t// TODO: Check implementation:\n\t\tthis.subsystemType = options.subsystemType;\n\t\tthis.subsystemState = options.subsystemState;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): BarrierOperatorCCEventSignalingReport {\n\t\tvalidatePayload(raw.payload.length >= 2);\n\t\tconst subsystemType: SubsystemType = raw.payload[0];\n\t\tconst subsystemState: SubsystemState = raw.payload[1];\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tsubsystemType,\n\t\t\tsubsystemState,\n\t\t});\n\t}\n\n\tpublic persistValues(ctx: PersistValuesContext): boolean {\n\t\tif (!super.persistValues(ctx)) return false;\n\n\t\tconst signalingStateValue = BarrierOperatorCCValues.signalingState(\n\t\t\tthis.subsystemType,\n\t\t);\n\n\t\tthis.ensureMetadata(ctx, signalingStateValue);\n\t\tthis.setValue(ctx, signalingStateValue, this.subsystemState);\n\n\t\treturn true;\n\t}\n\n\tpublic readonly subsystemType: SubsystemType;\n\tpublic readonly subsystemState: SubsystemState;\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"subsystem type\": getEnumMemberName(\n\t\t\t\t\tSubsystemType,\n\t\t\t\t\tthis.subsystemType,\n\t\t\t\t),\n\t\t\t\t\"subsystem state\": getEnumMemberName(\n\t\t\t\t\tSubsystemState,\n\t\t\t\t\tthis.subsystemState,\n\t\t\t\t),\n\t\t\t},\n\t\t};\n\t}\n}\n\n// @publicAPI\nexport interface BarrierOperatorCCEventSignalingGetOptions {\n\tsubsystemType: SubsystemType;\n}\n\n@CCCommand(BarrierOperatorCommand.EventSignalingGet)\n@expectedCCResponse(BarrierOperatorCCEventSignalingReport)\nexport class BarrierOperatorCCEventSignalingGet extends BarrierOperatorCC {\n\tpublic constructor(\n\t\toptions: WithAddress<BarrierOperatorCCEventSignalingGetOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.subsystemType = options.subsystemType;\n\t}\n\n\tpublic static from(\n\t\t_raw: CCRaw,\n\t\t_ctx: CCParsingContext,\n\t): BarrierOperatorCCEventSignalingGet {\n\t\t// TODO: Deserialize payload\n\t\tthrow new ZWaveError(\n\t\t\t`${this.name}: deserialization not implemented`,\n\t\t\tZWaveErrorCodes.Deserialization_NotImplemented,\n\t\t);\n\n\t\t// return new BarrierOperatorCCEventSignalingGet({\n\t\t// \tnodeId: ctx.sourceNodeId,\n\t\t// });\n\t}\n\n\tpublic subsystemType: SubsystemType;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([this.subsystemType]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\t\"subsystem type\": getEnumMemberName(\n\t\t\t\t\tSubsystemType,\n\t\t\t\t\tthis.subsystemType,\n\t\t\t\t),\n\t\t\t},\n\t\t};\n\t}\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kBAiBO;AACP,IAAAA,eAAsB;AACtB,IAAAA,eAKO;AAEP,iBAYO;AACP,0BAMO;AACP,oCASO;AACP,oBAAkB;AAClB,mBAKO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8DM,wBAAoB,MAAA;8BADhC,mCAAI,2BAAe,kBAAkB,CAAC,CAAC;;;;oBACE;;;;;;4CAAA,YAAK;WAAA;;;;;;;;AAsC9C,mBAAA,MAAA,MAAA,iBAAA,EAAA,MAAA,UAAA,MAAA,OAAA,QAAA,OAAA,SAAA,OAAA,QAAA,EAAA,KAAA,gCAAA,SAAA,KAAA,QAAA,KAAA,gCAAA,IAAa,KAAb,OAAgB,GAAA,UAAA,UAAA,GAAA,MAAA,0BAAA;AAiBhB,mBAAA,MAAA,MAAA,sCAAA,EAAA,MAAA,UAAA,MAAA,4BAAA,QAAA,OAAA,SAAA,O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