I am not sure to understand well your request. The state is an enumerated type, and can take only the 14 pre-defined values.
As far as I know it is not possible to add other states.
The simple way to work around this limitation would be to map your maintenance state to an existing one such as "Disable"or “Init”.
Does i answer to your request?
Yes I believe the simplest solution would be to map my states to one of the predefined TANGO states. I was simply wondering if there is a way to actually add more states if needed e.g. in case we need more than 14 states.
Perhaps there is a way to add states to the enumerated type and recompile the system. But I’m not sure.
Unfortunately, adding new states had been lengthily discussed (you are not the first one to ask) and it is difficult to add new ones without breaking the compatibility with generic clients such as atkpanel or other state interpreter.
Another solution for answering to your need, would be to create a new attribute of type Enumerated that will switch from mode “operation” to mode "test"or “Maintenance”. This mode attribute could be displayed in your GUI and show that the system is not operational. In that case I suggest to switch the state to “Disabled”