@zwave-js/cc 15.0.0-beta.0 → 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 +79 -161
- package/build/cjs/cc/AlarmSensorCC.js +12 -50
- package/build/cjs/cc/AlarmSensorCC.js.map +2 -2
- package/build/cjs/cc/AssociationCC.d.ts +63 -199
- package/build/cjs/cc/AssociationCC.js +9 -22
- package/build/cjs/cc/AssociationCC.js.map +2 -2
- package/build/cjs/cc/AssociationGroupInfoCC.d.ts +66 -166
- package/build/cjs/cc/AssociationGroupInfoCC.js +11 -22
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +2 -2
- package/build/cjs/cc/BarrierOperatorCC.d.ts +86 -294
- package/build/cjs/cc/BarrierOperatorCC.js +12 -44
- package/build/cjs/cc/BarrierOperatorCC.js.map +2 -2
- package/build/cjs/cc/BasicCC.d.ts +85 -331
- package/build/cjs/cc/BasicCC.js +15 -46
- package/build/cjs/cc/BasicCC.js.map +2 -2
- package/build/cjs/cc/BatteryCC.d.ts +237 -835
- package/build/cjs/cc/BatteryCC.js +7 -84
- package/build/cjs/cc/BatteryCC.js.map +2 -2
- package/build/cjs/cc/BinarySensorCC.d.ts +34 -99
- package/build/cjs/cc/BinarySensorCC.js +9 -29
- package/build/cjs/cc/BinarySensorCC.js.map +2 -2
- package/build/cjs/cc/BinarySwitchCC.d.ts +45 -197
- package/build/cjs/cc/BinarySwitchCC.js +6 -22
- package/build/cjs/cc/BinarySwitchCC.js.map +2 -2
- package/build/cjs/cc/CentralSceneCC.d.ts +77 -296
- package/build/cjs/cc/CentralSceneCC.js +7 -30
- package/build/cjs/cc/CentralSceneCC.js.map +2 -2
- package/build/cjs/cc/ClimateControlScheduleCC.d.ts +45 -160
- package/build/cjs/cc/ClimateControlScheduleCC.js +5 -24
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +2 -2
- package/build/cjs/cc/ColorSwitchCC.d.ts +130 -457
- package/build/cjs/cc/ColorSwitchCC.js +23 -75
- package/build/cjs/cc/ColorSwitchCC.js.map +2 -2
- package/build/cjs/cc/ConfigurationCC.d.ts +32 -100
- package/build/cjs/cc/ConfigurationCC.js +11 -31
- package/build/cjs/cc/ConfigurationCC.js.map +2 -2
- package/build/cjs/cc/DoorLockCC.d.ts +512 -1823
- package/build/cjs/cc/DoorLockCC.js +51 -156
- package/build/cjs/cc/DoorLockCC.js.map +2 -2
- package/build/cjs/cc/DoorLockLoggingCC.d.ts +11 -63
- package/build/cjs/cc/DoorLockLoggingCC.js +4 -8
- package/build/cjs/cc/DoorLockLoggingCC.js.map +2 -2
- package/build/cjs/cc/EnergyProductionCC.d.ts +14 -29
- package/build/cjs/cc/EnergyProductionCC.js +5 -17
- package/build/cjs/cc/EnergyProductionCC.js.map +2 -2
- package/build/cjs/cc/EntryControlCC.d.ts +73 -324
- package/build/cjs/cc/EntryControlCC.js +9 -36
- package/build/cjs/cc/EntryControlCC.js.map +2 -2
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +78 -390
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +5 -26
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlModeCC.d.ts +31 -131
- package/build/cjs/cc/HumidityControlModeCC.js +6 -15
- package/build/cjs/cc/HumidityControlModeCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +17 -65
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +4 -12
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlSetpointCC.d.ts +51 -128
- package/build/cjs/cc/HumidityControlSetpointCC.js +10 -28
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +2 -2
- package/build/cjs/cc/IndicatorCC.d.ts +123 -365
- package/build/cjs/cc/IndicatorCC.js +15 -61
- package/build/cjs/cc/IndicatorCC.js.map +2 -2
- package/build/cjs/cc/IrrigationCC.d.ts +826 -2317
- package/build/cjs/cc/IrrigationCC.js +29 -233
- package/build/cjs/cc/IrrigationCC.js.map +2 -2
- package/build/cjs/cc/LanguageCC.d.ts +31 -133
- package/build/cjs/cc/LanguageCC.js +4 -15
- package/build/cjs/cc/LanguageCC.js.map +2 -2
- package/build/cjs/cc/LockCC.d.ts +14 -64
- package/build/cjs/cc/LockCC.js +4 -12
- package/build/cjs/cc/LockCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerSpecificCC.d.ts +77 -239
- package/build/cjs/cc/ManufacturerSpecificCC.js +5 -26
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +2 -2
- package/build/cjs/cc/MeterCC.d.ts +119 -393
- package/build/cjs/cc/MeterCC.js +25 -69
- package/build/cjs/cc/MeterCC.js.map +2 -2
- package/build/cjs/cc/MultiChannelAssociationCC.d.ts +66 -166
- package/build/cjs/cc/MultiChannelAssociationCC.js +10 -23
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +2 -2
- package/build/cjs/cc/MultiChannelCC.d.ts +119 -499
- package/build/cjs/cc/MultiChannelCC.js +18 -46
- package/build/cjs/cc/MultiChannelCC.js.map +2 -2
- package/build/cjs/cc/MultilevelSensorCC.d.ts +46 -130
- package/build/cjs/cc/MultilevelSensorCC.js +12 -33
- package/build/cjs/cc/MultilevelSensorCC.js.map +2 -2
- package/build/cjs/cc/MultilevelSwitchCC.d.ts +160 -525
- package/build/cjs/cc/MultilevelSwitchCC.js +13 -107
- package/build/cjs/cc/MultilevelSwitchCC.js.map +2 -2
- package/build/cjs/cc/NodeNamingCC.d.ts +33 -135
- package/build/cjs/cc/NodeNamingCC.js +5 -16
- package/build/cjs/cc/NodeNamingCC.js.map +2 -2
- package/build/cjs/cc/NotificationCC.d.ts +262 -702
- package/build/cjs/cc/NotificationCC.js +29 -112
- package/build/cjs/cc/NotificationCC.js.map +2 -2
- package/build/cjs/cc/ProtectionCC.d.ts +118 -524
- package/build/cjs/cc/ProtectionCC.js +15 -50
- package/build/cjs/cc/ProtectionCC.js.map +2 -2
- package/build/cjs/cc/SceneActivationCC.d.ts +33 -132
- package/build/cjs/cc/SceneActivationCC.js +4 -17
- package/build/cjs/cc/SceneActivationCC.js.map +2 -2
- package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +34 -61
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +9 -21
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +2 -2
- package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +34 -61
- package/build/cjs/cc/SceneControllerConfigurationCC.js +10 -22
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +2 -2
- package/build/cjs/cc/ScheduleEntryLockCC.d.ts +95 -299
- package/build/cjs/cc/ScheduleEntryLockCC.js +13 -30
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +2 -2
- package/build/cjs/cc/SoundSwitchCC.d.ts +72 -261
- package/build/cjs/cc/SoundSwitchCC.js +11 -43
- package/build/cjs/cc/SoundSwitchCC.js.map +2 -2
- package/build/cjs/cc/SupervisionCC.d.ts +17 -33
- package/build/cjs/cc/SupervisionCC.js +4 -9
- package/build/cjs/cc/SupervisionCC.js.map +2 -2
- package/build/cjs/cc/ThermostatFanModeCC.d.ts +44 -195
- package/build/cjs/cc/ThermostatFanModeCC.js +8 -21
- package/build/cjs/cc/ThermostatFanModeCC.js.map +2 -2
- package/build/cjs/cc/ThermostatFanStateCC.d.ts +17 -65
- package/build/cjs/cc/ThermostatFanStateCC.js +4 -12
- package/build/cjs/cc/ThermostatFanStateCC.js.map +2 -2
- package/build/cjs/cc/ThermostatModeCC.d.ts +44 -195
- package/build/cjs/cc/ThermostatModeCC.js +8 -21
- package/build/cjs/cc/ThermostatModeCC.js.map +2 -2
- package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +17 -65
- package/build/cjs/cc/ThermostatOperatingStateCC.js +4 -12
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +2 -2
- package/build/cjs/cc/ThermostatSetpointCC.d.ts +49 -129
- package/build/cjs/cc/ThermostatSetpointCC.js +10 -25
- package/build/cjs/cc/ThermostatSetpointCC.js.map +2 -2
- package/build/cjs/cc/TimeParametersCC.d.ts +12 -63
- package/build/cjs/cc/TimeParametersCC.js +4 -11
- package/build/cjs/cc/TimeParametersCC.js.map +2 -2
- package/build/cjs/cc/UserCodeCC.d.ts +311 -1066
- package/build/cjs/cc/UserCodeCC.js +33 -98
- package/build/cjs/cc/UserCodeCC.js.map +2 -2
- package/build/cjs/cc/VersionCC.d.ts +289 -1003
- package/build/cjs/cc/VersionCC.js +7 -98
- package/build/cjs/cc/VersionCC.js.map +2 -2
- package/build/cjs/cc/WakeUpCC.d.ts +49 -201
- package/build/cjs/cc/WakeUpCC.js +6 -26
- package/build/cjs/cc/WakeUpCC.js.map +2 -2
- package/build/cjs/cc/WindowCoveringCC.d.ts +126 -220
- package/build/cjs/cc/WindowCoveringCC.js +16 -128
- package/build/cjs/cc/WindowCoveringCC.js.map +2 -2
- package/build/cjs/cc/ZWavePlusCC.d.ts +69 -329
- package/build/cjs/cc/ZWavePlusCC.js +4 -25
- package/build/cjs/cc/ZWavePlusCC.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/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/Values.d.ts +6 -105
- package/build/cjs/lib/Values.js +13 -107
- package/build/cjs/lib/Values.js.map +3 -3
- package/build/esm/cc/AlarmSensorCC.d.ts +79 -161
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
- package/build/esm/cc/AlarmSensorCC.js +2 -39
- package/build/esm/cc/AlarmSensorCC.js.map +1 -1
- package/build/esm/cc/AssociationCC.d.ts +63 -199
- package/build/esm/cc/AssociationCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationCC.js +2 -14
- package/build/esm/cc/AssociationCC.js.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.d.ts +66 -166
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.js +2 -13
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.d.ts +86 -294
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.js +2 -34
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
- package/build/esm/cc/BasicCC.d.ts +85 -331
- package/build/esm/cc/BasicCC.d.ts.map +1 -1
- package/build/esm/cc/BasicCC.js +2 -32
- package/build/esm/cc/BasicCC.js.map +1 -1
- package/build/esm/cc/BatteryCC.d.ts +237 -835
- package/build/esm/cc/BatteryCC.d.ts.map +1 -1
- package/build/esm/cc/BatteryCC.js +2 -78
- package/build/esm/cc/BatteryCC.js.map +1 -1
- package/build/esm/cc/BinarySensorCC.d.ts +34 -99
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySensorCC.js +2 -16
- package/build/esm/cc/BinarySensorCC.js.map +1 -1
- package/build/esm/cc/BinarySwitchCC.d.ts +45 -197
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySwitchCC.js +2 -17
- package/build/esm/cc/BinarySwitchCC.js.map +1 -1
- package/build/esm/cc/CentralSceneCC.d.ts +77 -296
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
- package/build/esm/cc/CentralSceneCC.js +2 -26
- package/build/esm/cc/CentralSceneCC.js.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.d.ts +45 -160
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.js +2 -23
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/esm/cc/ColorSwitchCC.d.ts +130 -457
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/ColorSwitchCC.js +2 -52
- package/build/esm/cc/ColorSwitchCC.js.map +1 -1
- package/build/esm/cc/ConfigurationCC.d.ts +32 -100
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/ConfigurationCC.js +2 -15
- package/build/esm/cc/ConfigurationCC.js.map +1 -1
- package/build/esm/cc/DoorLockCC.d.ts +512 -1823
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockCC.js +9 -127
- package/build/esm/cc/DoorLockCC.js.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.d.ts +11 -63
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.js +2 -5
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/esm/cc/EnergyProductionCC.d.ts +14 -29
- package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/esm/cc/EnergyProductionCC.js +2 -13
- package/build/esm/cc/EnergyProductionCC.js.map +1 -1
- package/build/esm/cc/EntryControlCC.d.ts +73 -324
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
- package/build/esm/cc/EntryControlCC.js +2 -28
- package/build/esm/cc/EntryControlCC.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +78 -390
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +2 -23
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.d.ts +31 -131
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.js +2 -10
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +17 -65
- 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 +51 -128
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.js +2 -19
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/esm/cc/IndicatorCC.d.ts +123 -365
- package/build/esm/cc/IndicatorCC.d.ts.map +1 -1
- package/build/esm/cc/IndicatorCC.js +2 -43
- package/build/esm/cc/IndicatorCC.js.map +1 -1
- package/build/esm/cc/IrrigationCC.d.ts +826 -2317
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
- package/build/esm/cc/IrrigationCC.js +3 -222
- package/build/esm/cc/IrrigationCC.js.map +1 -1
- package/build/esm/cc/LanguageCC.d.ts +31 -133
- package/build/esm/cc/LanguageCC.d.ts.map +1 -1
- package/build/esm/cc/LanguageCC.js +2 -12
- package/build/esm/cc/LanguageCC.js.map +1 -1
- package/build/esm/cc/LockCC.d.ts +14 -64
- package/build/esm/cc/LockCC.d.ts.map +1 -1
- package/build/esm/cc/LockCC.js +2 -9
- package/build/esm/cc/LockCC.js.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.js +0 -1
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.d.ts +77 -239
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.js +2 -24
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/esm/cc/MeterCC.d.ts +119 -393
- package/build/esm/cc/MeterCC.d.ts.map +1 -1
- package/build/esm/cc/MeterCC.js +3 -49
- package/build/esm/cc/MeterCC.js.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.d.ts +66 -166
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.js +2 -14
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/esm/cc/MultiChannelCC.d.ts +119 -499
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelCC.js +2 -30
- package/build/esm/cc/MultiChannelCC.js.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.d.ts +46 -130
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.js +2 -22
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.d.ts +160 -525
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.js +5 -101
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/esm/cc/NodeNamingCC.d.ts +33 -135
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/esm/cc/NodeNamingCC.js +2 -12
- package/build/esm/cc/NodeNamingCC.js.map +1 -1
- package/build/esm/cc/NotificationCC.d.ts +262 -702
- package/build/esm/cc/NotificationCC.d.ts.map +1 -1
- package/build/esm/cc/NotificationCC.js +3 -85
- package/build/esm/cc/NotificationCC.js.map +1 -1
- package/build/esm/cc/ProtectionCC.d.ts +118 -524
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
- package/build/esm/cc/ProtectionCC.js +2 -36
- package/build/esm/cc/ProtectionCC.js.map +1 -1
- package/build/esm/cc/SceneActivationCC.d.ts +33 -132
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActivationCC.js +2 -14
- package/build/esm/cc/SceneActivationCC.js.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +34 -61
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.js +2 -14
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts +34 -61
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.js +2 -14
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.d.ts +95 -299
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.js +2 -17
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/esm/cc/SoundSwitchCC.d.ts +72 -261
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/SoundSwitchCC.js +2 -33
- package/build/esm/cc/SoundSwitchCC.js.map +1 -1
- package/build/esm/cc/SupervisionCC.d.ts +17 -33
- package/build/esm/cc/SupervisionCC.d.ts.map +1 -1
- package/build/esm/cc/SupervisionCC.js +2 -7
- package/build/esm/cc/SupervisionCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.d.ts +44 -195
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.js +2 -14
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.d.ts +17 -65
- 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 +44 -195
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatModeCC.js +2 -14
- package/build/esm/cc/ThermostatModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts +17 -65
- 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/ThermostatSetpointCC.d.ts +49 -129
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.js +2 -16
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/esm/cc/TimeParametersCC.d.ts +12 -63
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
- package/build/esm/cc/TimeParametersCC.js +2 -8
- package/build/esm/cc/TimeParametersCC.js.map +1 -1
- package/build/esm/cc/UserCodeCC.d.ts +311 -1066
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
- package/build/esm/cc/UserCodeCC.js +2 -60
- package/build/esm/cc/UserCodeCC.js.map +1 -1
- package/build/esm/cc/VersionCC.d.ts +289 -1003
- package/build/esm/cc/VersionCC.d.ts.map +1 -1
- package/build/esm/cc/VersionCC.js +2 -92
- package/build/esm/cc/VersionCC.js.map +1 -1
- package/build/esm/cc/WakeUpCC.d.ts +49 -201
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
- package/build/esm/cc/WakeUpCC.js +2 -21
- package/build/esm/cc/WakeUpCC.js.map +1 -1
- package/build/esm/cc/WindowCoveringCC.d.ts +126 -220
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
- package/build/esm/cc/WindowCoveringCC.js +3 -103
- package/build/esm/cc/WindowCoveringCC.js.map +1 -1
- package/build/esm/cc/ZWavePlusCC.d.ts +69 -329
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
- package/build/esm/cc/ZWavePlusCC.js +2 -25
- package/build/esm/cc/ZWavePlusCC.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/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/Values.d.ts +6 -105
- 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/package.json +9 -7
|
@@ -5,390 +5,130 @@ import { PhysicalCCAPI } from "../lib/API.js";
|
|
|
5
5
|
import { type CCRaw, CommandClass, type InterviewContext } from "../lib/CommandClass.js";
|
|
6
6
|
import { ZWavePlusCommand, ZWavePlusNodeType, ZWavePlusRoleType } from "../lib/_Types.js";
|
|
7
7
|
export declare const ZWavePlusCCValues: Readonly<{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly endpoint: (endpoint?: number | undefined) => {
|
|
8
|
+
zwavePlusVersion: {
|
|
9
|
+
id: {
|
|
11
10
|
readonly commandClass: (typeof CommandClasses)["Z-Wave Plus Info"];
|
|
12
|
-
readonly
|
|
13
|
-
readonly property: "installerIcon";
|
|
11
|
+
readonly property: "zwavePlusVersion";
|
|
14
12
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
readonly readable: true;
|
|
23
|
-
readonly writeable: true;
|
|
24
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/core/safe").ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
25
|
-
readonly type: "any";
|
|
26
|
-
readonly readable: true;
|
|
27
|
-
readonly writeable: true;
|
|
28
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
29
|
-
readonly type: "any";
|
|
30
|
-
readonly readable: true;
|
|
31
|
-
readonly writeable: true;
|
|
32
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>)[K]] ? never : K]: (import("@zwave-js/core/safe").ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
33
|
-
readonly type: "any";
|
|
34
|
-
readonly readable: true;
|
|
35
|
-
readonly writeable: true;
|
|
36
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
13
|
+
endpoint: (_endpoint?: number) => {
|
|
14
|
+
readonly commandClass: (typeof CommandClasses)["Z-Wave Plus Info"];
|
|
15
|
+
readonly endpoint: 0;
|
|
16
|
+
readonly property: "zwavePlusVersion";
|
|
17
|
+
};
|
|
18
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
19
|
+
readonly meta: Readonly<{
|
|
37
20
|
readonly type: "any";
|
|
38
21
|
readonly readable: true;
|
|
39
22
|
readonly writeable: true;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
readonly internal:
|
|
23
|
+
}>;
|
|
24
|
+
options: {
|
|
25
|
+
readonly internal: true;
|
|
43
26
|
readonly minVersion: 1;
|
|
44
27
|
readonly secret: false;
|
|
45
28
|
readonly stateful: true;
|
|
46
|
-
readonly supportsEndpoints:
|
|
29
|
+
readonly supportsEndpoints: false;
|
|
47
30
|
readonly autoCreate: true;
|
|
48
|
-
}
|
|
49
|
-
readonly internal: false;
|
|
50
|
-
readonly minVersion: 1;
|
|
51
|
-
readonly secret: false;
|
|
52
|
-
readonly stateful: true;
|
|
53
|
-
readonly supportsEndpoints: true;
|
|
54
|
-
readonly autoCreate: true;
|
|
55
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
56
|
-
readonly internal: false;
|
|
57
|
-
readonly minVersion: 1;
|
|
58
|
-
readonly secret: false;
|
|
59
|
-
readonly stateful: true;
|
|
60
|
-
readonly supportsEndpoints: true;
|
|
61
|
-
readonly autoCreate: true;
|
|
62
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
63
|
-
readonly internal: false;
|
|
64
|
-
readonly minVersion: 1;
|
|
65
|
-
readonly secret: false;
|
|
66
|
-
readonly stateful: true;
|
|
67
|
-
readonly supportsEndpoints: true;
|
|
68
|
-
readonly autoCreate: true;
|
|
69
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]] ? never : K]: (import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
70
|
-
readonly internal: false;
|
|
71
|
-
readonly minVersion: 1;
|
|
72
|
-
readonly secret: false;
|
|
73
|
-
readonly stateful: true;
|
|
74
|
-
readonly supportsEndpoints: true;
|
|
75
|
-
readonly autoCreate: true;
|
|
76
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
77
|
-
readonly internal: false;
|
|
78
|
-
readonly minVersion: 1;
|
|
79
|
-
readonly secret: false;
|
|
80
|
-
readonly stateful: true;
|
|
81
|
-
readonly supportsEndpoints: true;
|
|
82
|
-
readonly autoCreate: true;
|
|
83
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]; } : never>;
|
|
31
|
+
};
|
|
84
32
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
readonly endpoint: (endpoint?: number | undefined) => {
|
|
33
|
+
nodeType: {
|
|
34
|
+
id: {
|
|
88
35
|
readonly commandClass: (typeof CommandClasses)["Z-Wave Plus Info"];
|
|
89
|
-
readonly
|
|
90
|
-
readonly property: "userIcon";
|
|
36
|
+
readonly property: "nodeType";
|
|
91
37
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
readonly readable: true;
|
|
100
|
-
readonly writeable: true;
|
|
101
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/core/safe").ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
102
|
-
readonly type: "any";
|
|
103
|
-
readonly readable: true;
|
|
104
|
-
readonly writeable: true;
|
|
105
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
106
|
-
readonly type: "any";
|
|
107
|
-
readonly readable: true;
|
|
108
|
-
readonly writeable: true;
|
|
109
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>)[K]] ? never : K]: (import("@zwave-js/core/safe").ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
110
|
-
readonly type: "any";
|
|
111
|
-
readonly readable: true;
|
|
112
|
-
readonly writeable: true;
|
|
113
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
38
|
+
endpoint: (_endpoint?: number) => {
|
|
39
|
+
readonly commandClass: (typeof CommandClasses)["Z-Wave Plus Info"];
|
|
40
|
+
readonly endpoint: 0;
|
|
41
|
+
readonly property: "nodeType";
|
|
42
|
+
};
|
|
43
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
44
|
+
readonly meta: Readonly<{
|
|
114
45
|
readonly type: "any";
|
|
115
46
|
readonly readable: true;
|
|
116
47
|
readonly writeable: true;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
readonly internal:
|
|
120
|
-
readonly minVersion: 1;
|
|
121
|
-
readonly secret: false;
|
|
122
|
-
readonly stateful: true;
|
|
123
|
-
readonly supportsEndpoints: true;
|
|
124
|
-
readonly autoCreate: true;
|
|
125
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
126
|
-
readonly internal: false;
|
|
127
|
-
readonly minVersion: 1;
|
|
128
|
-
readonly secret: false;
|
|
129
|
-
readonly stateful: true;
|
|
130
|
-
readonly supportsEndpoints: true;
|
|
131
|
-
readonly autoCreate: true;
|
|
132
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
133
|
-
readonly internal: false;
|
|
134
|
-
readonly minVersion: 1;
|
|
135
|
-
readonly secret: false;
|
|
136
|
-
readonly stateful: true;
|
|
137
|
-
readonly supportsEndpoints: true;
|
|
138
|
-
readonly autoCreate: true;
|
|
139
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
140
|
-
readonly internal: false;
|
|
141
|
-
readonly minVersion: 1;
|
|
142
|
-
readonly secret: false;
|
|
143
|
-
readonly stateful: true;
|
|
144
|
-
readonly supportsEndpoints: true;
|
|
145
|
-
readonly autoCreate: true;
|
|
146
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]] ? never : K]: (import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
147
|
-
readonly internal: false;
|
|
148
|
-
readonly minVersion: 1;
|
|
149
|
-
readonly secret: false;
|
|
150
|
-
readonly stateful: true;
|
|
151
|
-
readonly supportsEndpoints: true;
|
|
152
|
-
readonly autoCreate: true;
|
|
153
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
154
|
-
readonly internal: false;
|
|
48
|
+
}>;
|
|
49
|
+
options: {
|
|
50
|
+
readonly internal: true;
|
|
155
51
|
readonly minVersion: 1;
|
|
156
52
|
readonly secret: false;
|
|
157
53
|
readonly stateful: true;
|
|
158
|
-
readonly supportsEndpoints:
|
|
54
|
+
readonly supportsEndpoints: false;
|
|
159
55
|
readonly autoCreate: true;
|
|
160
|
-
}
|
|
56
|
+
};
|
|
161
57
|
};
|
|
162
58
|
roleType: {
|
|
163
|
-
|
|
164
|
-
readonly endpoint: (endpoint?: number | undefined) => {
|
|
59
|
+
id: {
|
|
165
60
|
readonly commandClass: (typeof CommandClasses)["Z-Wave Plus Info"];
|
|
166
|
-
readonly endpoint: number;
|
|
167
61
|
readonly property: "roleType";
|
|
168
62
|
};
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
readonly
|
|
172
|
-
readonly
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
readonly readable: true;
|
|
177
|
-
readonly writeable: true;
|
|
178
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/core/safe").ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
179
|
-
readonly type: "any";
|
|
180
|
-
readonly readable: true;
|
|
181
|
-
readonly writeable: true;
|
|
182
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
183
|
-
readonly type: "any";
|
|
184
|
-
readonly readable: true;
|
|
185
|
-
readonly writeable: true;
|
|
186
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>)[K]] ? never : K]: (import("@zwave-js/core/safe").ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
187
|
-
readonly type: "any";
|
|
188
|
-
readonly readable: true;
|
|
189
|
-
readonly writeable: true;
|
|
190
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
63
|
+
endpoint: (_endpoint?: number) => {
|
|
64
|
+
readonly commandClass: (typeof CommandClasses)["Z-Wave Plus Info"];
|
|
65
|
+
readonly endpoint: 0;
|
|
66
|
+
readonly property: "roleType";
|
|
67
|
+
};
|
|
68
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
69
|
+
readonly meta: Readonly<{
|
|
191
70
|
readonly type: "any";
|
|
192
71
|
readonly readable: true;
|
|
193
72
|
readonly writeable: true;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
readonly internal:
|
|
197
|
-
readonly minVersion: 1;
|
|
198
|
-
readonly secret: false;
|
|
199
|
-
readonly stateful: true;
|
|
200
|
-
readonly supportsEndpoints: true;
|
|
201
|
-
readonly autoCreate: true;
|
|
202
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
203
|
-
readonly internal: false;
|
|
204
|
-
readonly minVersion: 1;
|
|
205
|
-
readonly secret: false;
|
|
206
|
-
readonly stateful: true;
|
|
207
|
-
readonly supportsEndpoints: true;
|
|
208
|
-
readonly autoCreate: true;
|
|
209
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
210
|
-
readonly internal: false;
|
|
73
|
+
}>;
|
|
74
|
+
options: {
|
|
75
|
+
readonly internal: true;
|
|
211
76
|
readonly minVersion: 1;
|
|
212
77
|
readonly secret: false;
|
|
213
78
|
readonly stateful: true;
|
|
214
|
-
readonly supportsEndpoints:
|
|
215
|
-
readonly autoCreate: true;
|
|
216
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
217
|
-
readonly internal: false;
|
|
218
|
-
readonly minVersion: 1;
|
|
219
|
-
readonly secret: false;
|
|
220
|
-
readonly stateful: true;
|
|
221
|
-
readonly supportsEndpoints: true;
|
|
79
|
+
readonly supportsEndpoints: false;
|
|
222
80
|
readonly autoCreate: true;
|
|
223
|
-
}
|
|
224
|
-
readonly internal: false;
|
|
225
|
-
readonly minVersion: 1;
|
|
226
|
-
readonly secret: false;
|
|
227
|
-
readonly stateful: true;
|
|
228
|
-
readonly supportsEndpoints: true;
|
|
229
|
-
readonly autoCreate: true;
|
|
230
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
231
|
-
readonly internal: false;
|
|
232
|
-
readonly minVersion: 1;
|
|
233
|
-
readonly secret: false;
|
|
234
|
-
readonly stateful: true;
|
|
235
|
-
readonly supportsEndpoints: true;
|
|
236
|
-
readonly autoCreate: true;
|
|
237
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]; } : never>;
|
|
81
|
+
};
|
|
238
82
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
83
|
+
userIcon: {
|
|
84
|
+
id: {
|
|
85
|
+
readonly commandClass: (typeof CommandClasses)["Z-Wave Plus Info"];
|
|
86
|
+
readonly property: "userIcon";
|
|
87
|
+
};
|
|
88
|
+
endpoint: (endpoint?: number) => {
|
|
242
89
|
readonly commandClass: (typeof CommandClasses)["Z-Wave Plus Info"];
|
|
243
90
|
readonly endpoint: number;
|
|
244
|
-
readonly property: "
|
|
91
|
+
readonly property: "userIcon";
|
|
245
92
|
};
|
|
246
|
-
|
|
247
|
-
readonly meta: Readonly<
|
|
248
|
-
readonly type: "any";
|
|
249
|
-
readonly readable: true;
|
|
250
|
-
readonly writeable: true;
|
|
251
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
252
|
-
readonly type: "any";
|
|
253
|
-
readonly readable: true;
|
|
254
|
-
readonly writeable: true;
|
|
255
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/core/safe").ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
256
|
-
readonly type: "any";
|
|
257
|
-
readonly readable: true;
|
|
258
|
-
readonly writeable: true;
|
|
259
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
260
|
-
readonly type: "any";
|
|
261
|
-
readonly readable: true;
|
|
262
|
-
readonly writeable: true;
|
|
263
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>)[K]] ? never : K]: (import("@zwave-js/core/safe").ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
264
|
-
readonly type: "any";
|
|
265
|
-
readonly readable: true;
|
|
266
|
-
readonly writeable: true;
|
|
267
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
93
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
94
|
+
readonly meta: Readonly<{
|
|
268
95
|
readonly type: "any";
|
|
269
96
|
readonly readable: true;
|
|
270
97
|
readonly writeable: true;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
readonly internal:
|
|
274
|
-
readonly minVersion: 1;
|
|
275
|
-
readonly secret: false;
|
|
276
|
-
readonly stateful: true;
|
|
277
|
-
readonly supportsEndpoints: true;
|
|
278
|
-
readonly autoCreate: true;
|
|
279
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
280
|
-
readonly internal: false;
|
|
98
|
+
}>;
|
|
99
|
+
options: {
|
|
100
|
+
readonly internal: true;
|
|
281
101
|
readonly minVersion: 1;
|
|
282
102
|
readonly secret: false;
|
|
283
103
|
readonly stateful: true;
|
|
284
104
|
readonly supportsEndpoints: true;
|
|
285
105
|
readonly autoCreate: true;
|
|
286
|
-
}
|
|
287
|
-
readonly internal: false;
|
|
288
|
-
readonly minVersion: 1;
|
|
289
|
-
readonly secret: false;
|
|
290
|
-
readonly stateful: true;
|
|
291
|
-
readonly supportsEndpoints: true;
|
|
292
|
-
readonly autoCreate: true;
|
|
293
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
294
|
-
readonly internal: false;
|
|
295
|
-
readonly minVersion: 1;
|
|
296
|
-
readonly secret: false;
|
|
297
|
-
readonly stateful: true;
|
|
298
|
-
readonly supportsEndpoints: true;
|
|
299
|
-
readonly autoCreate: true;
|
|
300
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]] ? never : K]: (import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
301
|
-
readonly internal: false;
|
|
302
|
-
readonly minVersion: 1;
|
|
303
|
-
readonly secret: false;
|
|
304
|
-
readonly stateful: true;
|
|
305
|
-
readonly supportsEndpoints: true;
|
|
306
|
-
readonly autoCreate: true;
|
|
307
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
308
|
-
readonly internal: false;
|
|
309
|
-
readonly minVersion: 1;
|
|
310
|
-
readonly secret: false;
|
|
311
|
-
readonly stateful: true;
|
|
312
|
-
readonly supportsEndpoints: true;
|
|
313
|
-
readonly autoCreate: true;
|
|
314
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]; } : never>;
|
|
106
|
+
};
|
|
315
107
|
};
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
108
|
+
installerIcon: {
|
|
109
|
+
id: {
|
|
110
|
+
readonly commandClass: (typeof CommandClasses)["Z-Wave Plus Info"];
|
|
111
|
+
readonly property: "installerIcon";
|
|
112
|
+
};
|
|
113
|
+
endpoint: (endpoint?: number) => {
|
|
319
114
|
readonly commandClass: (typeof CommandClasses)["Z-Wave Plus Info"];
|
|
320
115
|
readonly endpoint: number;
|
|
321
|
-
readonly property: "
|
|
116
|
+
readonly property: "installerIcon";
|
|
322
117
|
};
|
|
323
|
-
|
|
324
|
-
readonly meta: Readonly<
|
|
325
|
-
readonly type: "any";
|
|
326
|
-
readonly readable: true;
|
|
327
|
-
readonly writeable: true;
|
|
328
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
329
|
-
readonly type: "any";
|
|
330
|
-
readonly readable: true;
|
|
331
|
-
readonly writeable: true;
|
|
332
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/core/safe").ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
333
|
-
readonly type: "any";
|
|
334
|
-
readonly readable: true;
|
|
335
|
-
readonly writeable: true;
|
|
336
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
337
|
-
readonly type: "any";
|
|
338
|
-
readonly readable: true;
|
|
339
|
-
readonly writeable: true;
|
|
340
|
-
}>, ("type" | "readable" | "writeable") & keyof NonNullable<TBlueprint["meta"]>> & TBlueprint["meta"]>)[K]] ? never : K]: (import("@zwave-js/core/safe").ValueMetadata extends NonNullable<TBlueprint["meta"]> ? Readonly<{
|
|
341
|
-
readonly type: "any";
|
|
342
|
-
readonly readable: true;
|
|
343
|
-
readonly writeable: true;
|
|
344
|
-
}> : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<Readonly<{
|
|
118
|
+
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
119
|
+
readonly meta: Readonly<{
|
|
345
120
|
readonly type: "any";
|
|
346
121
|
readonly readable: true;
|
|
347
122
|
readonly writeable: true;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
readonly internal:
|
|
351
|
-
readonly minVersion: 1;
|
|
352
|
-
readonly secret: false;
|
|
353
|
-
readonly stateful: true;
|
|
354
|
-
readonly supportsEndpoints: true;
|
|
355
|
-
readonly autoCreate: true;
|
|
356
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
357
|
-
readonly internal: false;
|
|
358
|
-
readonly minVersion: 1;
|
|
359
|
-
readonly secret: false;
|
|
360
|
-
readonly stateful: true;
|
|
361
|
-
readonly supportsEndpoints: true;
|
|
362
|
-
readonly autoCreate: true;
|
|
363
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>) extends infer T ? { [K in keyof T as [undefined] extends [(import("@zwave-js/cc").CCValueOptions extends NonNullable<TBlueprint["options"]> ? {
|
|
364
|
-
readonly internal: false;
|
|
365
|
-
readonly minVersion: 1;
|
|
366
|
-
readonly secret: false;
|
|
367
|
-
readonly stateful: true;
|
|
368
|
-
readonly supportsEndpoints: true;
|
|
369
|
-
readonly autoCreate: true;
|
|
370
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
371
|
-
readonly internal: false;
|
|
123
|
+
}>;
|
|
124
|
+
options: {
|
|
125
|
+
readonly internal: true;
|
|
372
126
|
readonly minVersion: 1;
|
|
373
127
|
readonly secret: false;
|
|
374
128
|
readonly stateful: true;
|
|
375
129
|
readonly supportsEndpoints: true;
|
|
376
130
|
readonly autoCreate: true;
|
|
377
|
-
}
|
|
378
|
-
readonly internal: false;
|
|
379
|
-
readonly minVersion: 1;
|
|
380
|
-
readonly secret: false;
|
|
381
|
-
readonly stateful: true;
|
|
382
|
-
readonly supportsEndpoints: true;
|
|
383
|
-
readonly autoCreate: true;
|
|
384
|
-
} : import("alcalzone-shared/types").Simplify<import("alcalzone-shared/types").Omit<{
|
|
385
|
-
readonly internal: false;
|
|
386
|
-
readonly minVersion: 1;
|
|
387
|
-
readonly secret: false;
|
|
388
|
-
readonly stateful: true;
|
|
389
|
-
readonly supportsEndpoints: true;
|
|
390
|
-
readonly autoCreate: true;
|
|
391
|
-
}, ("stateful" | "secret" | "internal" | "minVersion" | "supportsEndpoints" | "autoCreate") & keyof NonNullable<TBlueprint["options"]>> & TBlueprint["options"]>)[K]; } : never>;
|
|
131
|
+
};
|
|
392
132
|
};
|
|
393
133
|
}>;
|
|
394
134
|
export declare class ZWavePlusCCAPI extends PhysicalCCAPI {
|
|
@@ -33,7 +33,7 @@ __export(ZWavePlusCC_exports, {
|
|
|
33
33
|
ZWavePlusCCAPI: () => ZWavePlusCCAPI,
|
|
34
34
|
ZWavePlusCCGet: () => ZWavePlusCCGet,
|
|
35
35
|
ZWavePlusCCReport: () => ZWavePlusCCReport,
|
|
36
|
-
ZWavePlusCCValues: () => ZWavePlusCCValues
|
|
36
|
+
ZWavePlusCCValues: () => import_CCValues_generated.ZWavePlusCCValues
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(ZWavePlusCC_exports);
|
|
39
39
|
var __validateArgs = __toESM(require("./ZWavePlusCC._validateArgs.js"), 1);
|
|
@@ -45,6 +45,7 @@ var import_CommandClass = require("../lib/CommandClass.js");
|
|
|
45
45
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
46
46
|
var import_Values = require("../lib/Values.js");
|
|
47
47
|
var import_Types = require("../lib/_Types.js");
|
|
48
|
+
var import_CCValues_generated = require("./_CCValues.generated.js");
|
|
48
49
|
var __runInitializers = function(thisArg, initializers, value) {
|
|
49
50
|
var useValue = arguments.length > 2;
|
|
50
51
|
for (var i = 0; i < initializers.length; i++) {
|
|
@@ -86,28 +87,6 @@ var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializ
|
|
|
86
87
|
done = true;
|
|
87
88
|
};
|
|
88
89
|
const { validateArgs_ZWavePlusCCAPI_sendReport } = __validateArgs;
|
|
89
|
-
const ZWavePlusCCValues = Object.freeze({
|
|
90
|
-
...import_Values.V.defineStaticCCValues(import_safe.CommandClasses["Z-Wave Plus Info"], {
|
|
91
|
-
...import_Values.V.staticProperty("zwavePlusVersion", void 0, {
|
|
92
|
-
supportsEndpoints: false,
|
|
93
|
-
internal: true
|
|
94
|
-
}),
|
|
95
|
-
...import_Values.V.staticProperty("nodeType", void 0, {
|
|
96
|
-
supportsEndpoints: false,
|
|
97
|
-
internal: true
|
|
98
|
-
}),
|
|
99
|
-
...import_Values.V.staticProperty("roleType", void 0, {
|
|
100
|
-
supportsEndpoints: false,
|
|
101
|
-
internal: true
|
|
102
|
-
}),
|
|
103
|
-
...import_Values.V.staticProperty("userIcon", void 0, {
|
|
104
|
-
internal: true
|
|
105
|
-
}),
|
|
106
|
-
...import_Values.V.staticProperty("installerIcon", void 0, {
|
|
107
|
-
internal: true
|
|
108
|
-
})
|
|
109
|
-
})
|
|
110
|
-
});
|
|
111
90
|
let ZWavePlusCCAPI = (() => {
|
|
112
91
|
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses["Z-Wave Plus Info"])];
|
|
113
92
|
let _classDescriptor;
|
|
@@ -175,7 +154,7 @@ let ZWavePlusCCAPI = (() => {
|
|
|
175
154
|
return ZWavePlusCCAPI2 = _classThis;
|
|
176
155
|
})();
|
|
177
156
|
let ZWavePlusCC = (() => {
|
|
178
|
-
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Z-Wave Plus Info"]), (0, import_CommandClassDecorators.implementedVersion)(2), (0, import_CommandClassDecorators.ccValues)(ZWavePlusCCValues)];
|
|
157
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Z-Wave Plus Info"]), (0, import_CommandClassDecorators.implementedVersion)(2), (0, import_CommandClassDecorators.ccValues)(import_CCValues_generated.ZWavePlusCCValues)];
|
|
179
158
|
let _classDescriptor;
|
|
180
159
|
let _classExtraInitializers = [];
|
|
181
160
|
let _classThis;
|
|
@@ -230,7 +209,7 @@ user icon: ${(0, import_safe3.num2hex)(zwavePlusResponse.userIcon)}`;
|
|
|
230
209
|
return ZWavePlusCC2 = _classThis;
|
|
231
210
|
})();
|
|
232
211
|
let ZWavePlusCCReport = (() => {
|
|
233
|
-
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWavePlusCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("zwavePlusVersion", ZWavePlusCCValues.zwavePlusVersion), (0, import_CommandClassDecorators.ccValueProperty)("nodeType", ZWavePlusCCValues.nodeType), (0, import_CommandClassDecorators.ccValueProperty)("roleType", ZWavePlusCCValues.roleType), (0, import_CommandClassDecorators.ccValueProperty)("installerIcon", ZWavePlusCCValues.installerIcon), (0, import_CommandClassDecorators.ccValueProperty)("userIcon", ZWavePlusCCValues.userIcon)];
|
|
212
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWavePlusCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("zwavePlusVersion", import_CCValues_generated.ZWavePlusCCValues.zwavePlusVersion), (0, import_CommandClassDecorators.ccValueProperty)("nodeType", import_CCValues_generated.ZWavePlusCCValues.nodeType), (0, import_CommandClassDecorators.ccValueProperty)("roleType", import_CCValues_generated.ZWavePlusCCValues.roleType), (0, import_CommandClassDecorators.ccValueProperty)("installerIcon", import_CCValues_generated.ZWavePlusCCValues.installerIcon), (0, import_CommandClassDecorators.ccValueProperty)("userIcon", import_CCValues_generated.ZWavePlusCCValues.userIcon)];
|
|
234
213
|
let _classDescriptor;
|
|
235
214
|
let _classExtraInitializers = [];
|
|
236
215
|
let _classThis;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/cc/ZWavePlusCC.ts"],
|
|
4
|
-
"sourcesContent": ["import { type CCEncodingContext, type CCParsingContext } from \"@zwave-js/cc\";\nimport {\n\tCommandClasses,\n\ttype GetValueDB,\n\ttype MaybeNotKnown,\n\ttype MessageOrCCLogEntry,\n\tMessagePriority,\n\ttype WithAddress,\n\tvalidatePayload,\n} from \"@zwave-js/core/safe\";\nimport { Bytes } from \"@zwave-js/shared/safe\";\nimport { getEnumMemberName, num2hex, pick } from \"@zwave-js/shared/safe\";\nimport { validateArgs } from \"@zwave-js/transformers\";\nimport { CCAPI, PhysicalCCAPI } from \"../lib/API.js\";\nimport {\n\ttype CCRaw,\n\tCommandClass,\n\ttype InterviewContext,\n} from \"../lib/CommandClass.js\";\nimport {\n\tAPI,\n\tCCCommand,\n\tccValueProperty,\n\tccValues,\n\tcommandClass,\n\texpectedCCResponse,\n\timplementedVersion,\n} from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport {\n\tZWavePlusCommand,\n\tZWavePlusNodeType,\n\tZWavePlusRoleType,\n} from \"../lib/_Types.js\";\n\n// SDS13782 The advertised Z-Wave Plus Version, Role Type and Node Type information values\n// MUST be identical for the Root Device and all Multi Channel End Points\n// --> We only access endpoint 0\n\nexport const ZWavePlusCCValues =
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kBAQO;AACP,IAAAA,eAAsB;AACtB,IAAAA,eAAiD;AAEjD,iBAAqC;AACrC,0BAIO;AACP,oCAQO;AACP,oBAAkB;AAClB,mBAIO
|
|
4
|
+
"sourcesContent": ["import { type CCEncodingContext, type CCParsingContext } from \"@zwave-js/cc\";\nimport {\n\tCommandClasses,\n\ttype GetValueDB,\n\ttype MaybeNotKnown,\n\ttype MessageOrCCLogEntry,\n\tMessagePriority,\n\ttype WithAddress,\n\tvalidatePayload,\n} from \"@zwave-js/core/safe\";\nimport { Bytes } from \"@zwave-js/shared/safe\";\nimport { getEnumMemberName, num2hex, pick } from \"@zwave-js/shared/safe\";\nimport { validateArgs } from \"@zwave-js/transformers\";\nimport { CCAPI, PhysicalCCAPI } from \"../lib/API.js\";\nimport {\n\ttype CCRaw,\n\tCommandClass,\n\ttype InterviewContext,\n} from \"../lib/CommandClass.js\";\nimport {\n\tAPI,\n\tCCCommand,\n\tccValueProperty,\n\tccValues,\n\tcommandClass,\n\texpectedCCResponse,\n\timplementedVersion,\n} from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport {\n\tZWavePlusCommand,\n\tZWavePlusNodeType,\n\tZWavePlusRoleType,\n} from \"../lib/_Types.js\";\n\n// SDS13782 The advertised Z-Wave Plus Version, Role Type and Node Type information values\n// MUST be identical for the Root Device and all Multi Channel End Points\n// --> We only access endpoint 0\n\nexport const ZWavePlusCCValues = V.defineCCValues(\n\tCommandClasses[\"Z-Wave Plus Info\"],\n\t{\n\t\t...V.staticProperty(\"zwavePlusVersion\", undefined, {\n\t\t\tsupportsEndpoints: false,\n\t\t\tinternal: true,\n\t\t}),\n\t\t...V.staticProperty(\"nodeType\", undefined, {\n\t\t\tsupportsEndpoints: false,\n\t\t\tinternal: true,\n\t\t}),\n\t\t...V.staticProperty(\"roleType\", undefined, {\n\t\t\tsupportsEndpoints: false,\n\t\t\tinternal: true,\n\t\t}),\n\t\t...V.staticProperty(\"userIcon\", undefined, {\n\t\t\tinternal: true,\n\t\t}),\n\t\t...V.staticProperty(\"installerIcon\", undefined, {\n\t\t\tinternal: true,\n\t\t}),\n\t},\n);\n\n// @noSetValueAPI This CC is read-only\n\n@API(CommandClasses[\"Z-Wave Plus Info\"])\nexport class ZWavePlusCCAPI extends PhysicalCCAPI {\n\tpublic supportsCommand(cmd: ZWavePlusCommand): MaybeNotKnown<boolean> {\n\t\tswitch (cmd) {\n\t\t\tcase ZWavePlusCommand.Get:\n\t\t\tcase ZWavePlusCommand.Report:\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(ZWavePlusCommand, ZWavePlusCommand.Get);\n\n\t\tconst cc = new ZWavePlusCCGet({\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<ZWavePlusCCReport>(\n\t\t\tcc,\n\t\t\tthis.commandOptions,\n\t\t);\n\t\tif (response) {\n\t\t\treturn pick(response, [\n\t\t\t\t\"zwavePlusVersion\",\n\t\t\t\t\"nodeType\",\n\t\t\t\t\"roleType\",\n\t\t\t\t\"installerIcon\",\n\t\t\t\t\"userIcon\",\n\t\t\t]);\n\t\t}\n\t}\n\n\t@validateArgs()\n\tpublic async sendReport(options: ZWavePlusCCReportOptions): Promise<void> {\n\t\tthis.assertSupportsCommand(ZWavePlusCommand, ZWavePlusCommand.Report);\n\n\t\tconst cc = new ZWavePlusCCReport({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\t...options,\n\t\t});\n\t\tawait this.host.sendCommand(cc, this.commandOptions);\n\t}\n}\n\n@commandClass(CommandClasses[\"Z-Wave Plus Info\"])\n@implementedVersion(2)\n@ccValues(ZWavePlusCCValues)\nexport class ZWavePlusCC extends CommandClass {\n\tdeclare ccCommand: ZWavePlusCommand;\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[\"Z-Wave Plus Info\"],\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\tctx.logNode(node.id, {\n\t\t\tendpoint: this.endpointIndex,\n\t\t\tmessage: \"querying Z-Wave+ information...\",\n\t\t\tdirection: \"outbound\",\n\t\t});\n\n\t\tconst zwavePlusResponse = await api.get();\n\t\tif (zwavePlusResponse) {\n\t\t\tconst logMessage = `received response for Z-Wave+ information:\nZ-Wave+ version: ${zwavePlusResponse.zwavePlusVersion}\nrole type: ${ZWavePlusRoleType[zwavePlusResponse.roleType]}\nnode type: ${ZWavePlusNodeType[zwavePlusResponse.nodeType]}\ninstaller icon: ${num2hex(zwavePlusResponse.installerIcon)}\nuser icon: ${num2hex(zwavePlusResponse.userIcon)}`;\n\t\t\tctx.logNode(node.id, {\n\t\t\t\tendpoint: this.endpointIndex,\n\t\t\t\tmessage: logMessage,\n\t\t\t\tdirection: \"inbound\",\n\t\t\t});\n\t\t}\n\n\t\t// Remember that the interview is complete\n\t\tthis.setInterviewComplete(ctx, true);\n\t}\n}\n\n// @publicAPI\nexport interface ZWavePlusCCReportOptions {\n\tzwavePlusVersion: number;\n\tnodeType: ZWavePlusNodeType;\n\troleType: ZWavePlusRoleType;\n\tinstallerIcon: number;\n\tuserIcon: number;\n}\n\n@CCCommand(ZWavePlusCommand.Report)\n@ccValueProperty(\"zwavePlusVersion\", ZWavePlusCCValues.zwavePlusVersion)\n@ccValueProperty(\"nodeType\", ZWavePlusCCValues.nodeType)\n@ccValueProperty(\"roleType\", ZWavePlusCCValues.roleType)\n@ccValueProperty(\"installerIcon\", ZWavePlusCCValues.installerIcon)\n@ccValueProperty(\"userIcon\", ZWavePlusCCValues.userIcon)\nexport class ZWavePlusCCReport extends ZWavePlusCC {\n\tpublic constructor(\n\t\toptions: WithAddress<ZWavePlusCCReportOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.zwavePlusVersion = options.zwavePlusVersion;\n\t\tthis.roleType = options.roleType;\n\t\tthis.nodeType = options.nodeType;\n\t\tthis.installerIcon = options.installerIcon;\n\t\tthis.userIcon = options.userIcon;\n\t}\n\n\tpublic static from(raw: CCRaw, ctx: CCParsingContext): ZWavePlusCCReport {\n\t\tvalidatePayload(raw.payload.length >= 7);\n\t\tconst zwavePlusVersion = raw.payload[0];\n\t\tconst roleType: ZWavePlusRoleType = raw.payload[1];\n\t\tconst nodeType: ZWavePlusNodeType = raw.payload[2];\n\t\tconst installerIcon = raw.payload.readUInt16BE(3);\n\t\tconst userIcon = raw.payload.readUInt16BE(5);\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tzwavePlusVersion,\n\t\t\troleType,\n\t\t\tnodeType,\n\t\t\tinstallerIcon,\n\t\t\tuserIcon,\n\t\t});\n\t}\n\n\tpublic zwavePlusVersion: number;\n\n\tpublic nodeType: ZWavePlusNodeType;\n\n\tpublic roleType: ZWavePlusRoleType;\n\n\tpublic installerIcon: number;\n\n\tpublic userIcon: number;\n\n\tpublic serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.zwavePlusVersion,\n\t\t\tthis.roleType,\n\t\t\tthis.nodeType,\n\t\t\t// placeholder for icons\n\t\t\t0,\n\t\t\t0,\n\t\t\t0,\n\t\t\t0,\n\t\t]);\n\t\tthis.payload.writeUInt16BE(this.installerIcon, 3);\n\t\tthis.payload.writeUInt16BE(this.userIcon, 5);\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\tversion: this.zwavePlusVersion,\n\t\t\t\t\"node type\": getEnumMemberName(\n\t\t\t\t\tZWavePlusNodeType,\n\t\t\t\t\tthis.nodeType,\n\t\t\t\t),\n\t\t\t\t\"role type\": getEnumMemberName(\n\t\t\t\t\tZWavePlusRoleType,\n\t\t\t\t\tthis.roleType,\n\t\t\t\t),\n\t\t\t\t\"icon (mgmt.)\": num2hex(this.installerIcon),\n\t\t\t\t\"icon (user)\": num2hex(this.userIcon),\n\t\t\t},\n\t\t};\n\t}\n}\n\n@CCCommand(ZWavePlusCommand.Get)\n@expectedCCResponse(ZWavePlusCCReport)\nexport class ZWavePlusCCGet extends ZWavePlusCC {}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": ["import_safe"]
|
|
7
7
|
}
|