@zwave-js/cc 15.17.0 → 15.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/build/cjs/cc/ConfigurationCC.js +7 -0
  2. package/build/cjs/cc/ConfigurationCC.js.map +2 -2
  3. package/build/cjs/cc/EntryControlCC.js +0 -3
  4. package/build/cjs/cc/EntryControlCC.js.map +2 -2
  5. package/build/cjs/cc/SoundSwitchCC._validateArgs.js +1 -1
  6. package/build/cjs/cc/SoundSwitchCC._validateArgs.js.map +1 -1
  7. package/build/cjs/cc/SoundSwitchCC.d.ts +7 -3
  8. package/build/cjs/cc/SoundSwitchCC.js +4 -4
  9. package/build/cjs/cc/SoundSwitchCC.js.map +2 -2
  10. package/build/cjs/cc/UserCodeCC.d.ts +1 -1
  11. package/build/cjs/cc/UserCodeCC.js +34 -4
  12. package/build/cjs/cc/UserCodeCC.js.map +2 -2
  13. package/build/cjs/cc/index.js +546 -66
  14. package/build/cjs/cc/index.js.map +2 -2
  15. package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
  16. package/build/esm/cc/ConfigurationCC.js +9 -0
  17. package/build/esm/cc/ConfigurationCC.js.map +1 -1
  18. package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
  19. package/build/esm/cc/EntryControlCC.js +1 -3
  20. package/build/esm/cc/EntryControlCC.js.map +1 -1
  21. package/build/esm/cc/SoundSwitchCC._validateArgs.js +1 -1
  22. package/build/esm/cc/SoundSwitchCC._validateArgs.js.map +1 -1
  23. package/build/esm/cc/SoundSwitchCC.d.ts +7 -3
  24. package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
  25. package/build/esm/cc/SoundSwitchCC.js +4 -4
  26. package/build/esm/cc/SoundSwitchCC.js.map +1 -1
  27. package/build/esm/cc/UserCodeCC.d.ts +1 -1
  28. package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
  29. package/build/esm/cc/UserCodeCC.js +41 -8
  30. package/build/esm/cc/UserCodeCC.js.map +1 -1
  31. package/build/esm/cc/index.d.ts.map +1 -1
  32. package/build/esm/cc/index.js +546 -527
  33. package/build/esm/cc/index.js.map +1 -1
  34. package/package.json +7 -7
@@ -1053,6 +1053,9 @@ alters capabilities: ${!!properties.altersCapabilities}`;
1053
1053
  }
1054
1054
  this.setValue(ctx, import_CCValues_generated.ConfigurationCCValues.isParamInformationFromConfig, false);
1055
1055
  for (const [param, info] of config.entries()) {
1056
+ if (info.hidden) {
1057
+ continue;
1058
+ }
1056
1059
  const paramInfo = (0, import_core.stripUndefined)({
1057
1060
  // TODO: Make this smarter! (0...1 ==> boolean)
1058
1061
  type: "number",
@@ -1149,6 +1152,10 @@ let ConfigurationCCReport = (() => {
1149
1152
  persistValues(ctx) {
1150
1153
  if (!super.persistValues(ctx))
1151
1154
  return false;
1155
+ const paramInfo = getParamInformationFromConfigFile(ctx, this.nodeId, this.endpointIndex);
1156
+ if (paramInfo?.get({ parameter: this.parameter })?.hidden) {
1157
+ return true;
1158
+ }
1152
1159
  const ccVersion = (0, import_CommandClass.getEffectiveCCVersion)(ctx, this);
1153
1160
  const partialParams = this.getPartialParamInfos(ctx, this.parameter);
1154
1161
  let cachedValueFormat;