Skip to main content

Ack Reasons

The AckReason byte in an A5 frame explains the AckStatus.

CodeNameStatusDescription
0OKacceptedDelivered to a handler; validation passed.
1UNKNOWNrejectedNo input, sensor, button or plain command has that name, and no catch-all handler took it.
2OUT_OF_RANGErejectedNumber outside the input's [RangeMin, RangeMax], or outside what its variable holds.
3BAD_SWITCHrejectedBool value was not 0 or 1.
4BAD_SELECTrejectedEnum value was neither a valid index nor an option name.
5TOO_LONGrejectedText value, after percent-decoding, exceeded the input's TextMaxLen.
6MISSING_VALUErejectedAn input received no value.
7TRUNCATEDrejectedFrame did not fit: more parameters than the device accepts, or longer than its receive buffer.
8DEVICE_NOT_RESPONDINGrejectedThe command's sub-device is marked missing.
9NOT_AN_INTEGERrejectedNumber with a fraction for an input bound to an integer type.
10READ_ONLYrejectedThe name is a sensor, which a host cannot set.
11NOT_A_NUMBERrejectedA number input received a value that is not a number.

Codes 2–6, 9 and 11 are produced for inputs, since validation is driven by their entries in the Entity List. BLAECK.INTERVAL_START also uses 2, 6 and 11 for its interval.

Code 7 applies to every command, plain included: it reports that what the device parsed is not what was sent, so no handler runs.

An empty parameter and an absent one are different. <NAME,> carries one empty value, which only a text input accepts (it clears the field); <NAME> carries none and yields MISSING_VALUE.