There’s a feature request open for Color State Mapping for Custom Attributes that you might want to cast a vote on as I think it would directly cover what you’re looking for.
In the meantime, an alternative approach would be to use a custom driver like the one noted in the following thread:
Then in your rule, you could set the text attribute to reflect the state and then flip the switch on/off to indicate whether it should be active or not.
Edit: Note that the driver implements the Notify capability, so you can use that to set the text in Rule Machine without having to define a custom command for setText().