Is there a way to read the text expresion of a enum capability?
I have an enum capability to show the device state in the sensor view.
I would like to add an invisible capability for export via MQTT which should contain the text.
As I’ve seen the capability only offers the value (the enum value).
Can I read the value using the I18N functionality? I only found the __ method for default I18N text from the /locales/de.json, but not from the capability definition.
Is there a way to get the capability text or is it necessary to define a corresponding text in /locales/?