You can use a proxy item and base your logic from that proxy item.
You can also use persistence. On a rule, check if updated value is an accepted value. If not, restore previous state.
You can use a proxy item and base your logic from that proxy item.
You can also use persistence. On a rule, check if updated value is an accepted value. If not, restore previous state.