I actually meant the same thing as @snell: "bool" (or any variation thereof) is not currently a valid type for attributes. The docs did not accurately reflect this at one point, if I recall correctly (or maybe still don't). Internally, you are free to use any valid types for your own variables. It is also a valid type for an input (device--or app--setting).