diff --git a/src/zspec/zcl/utils.ts b/src/zspec/zcl/utils.ts index 51e9bd810b..2aa4db663e 100644 --- a/src/zspec/zcl/utils.ts +++ b/src/zspec/zcl/utils.ts @@ -238,6 +238,10 @@ function isMinOrMax(entry: Attribute | Parameter, value: T): boolean { } function processRestrictions(entry: Attribute | Parameter, value: T): void { + if (entry.special?.some(([, specialValue]) => Number(value) === Number.parseInt(specialValue, 16))) { + return; + } + if (entry.min !== undefined && (value as number) < entry.min) { throw new ZclStatusError(Status.INVALID_VALUE, `${entry.name} requires min of ${entry.min}`); }