Mqtt select option command template by index?

Here is a similar topic regarding template for mqtt select options

These attr options are really nice and helped me a lot: