Not sure I am understanding this template correctly but I’d essentially take the input from ‘sensor.inverter_state’ and output it to ‘sensor.inverter_state_text’ after the mapping takes place.
My issue is I don’t see sensor ‘sensor.inverter_state_text’
Maybe I am completely misunderstanding how to do this.
All I want to do is take those values → convert to a string and use that value on my dashboard to display something easier to understand instead of integers.
The other post’s Solution suggests changing the Template Sensor’s configuration from legacy format to modern format (which employs different option names among other things). Is that what you did? (It wasn’t necessary)
Or did you change your template to use a long chain of if-elif-elif statements like shown in the linked thread? (It’s less efficient than using a dictionary lookup)
Or did you do both? (Unnecessary and inefficient)
Or did you use Didgeridrew’s suggestion posted in that thread (which isn’t marked as the Solution but does use a dictionary lookup)? If you did then it’s effectively what I suggested above.
For future reference, it’s customary to assign the Solution tag to the first post that identifies the cause of the original problem and explains how to correct it. It’s meant to be a learning guide for other users who may have a similar question.
In this case, you took the example I suggested, made it slightly longer, then marked your own post as the Solution.