I have an ESP32 board with a Clamp to detect a device working on different states. I know the ranges in Amps between which each possible state is active.
Is there a way to let ESPHome declare this text sensor just has this possible values
so that in Home Assistant I can also use them without using magic strings in automations or scripts?
Thanks!