I am trying to show the text of a select type id on an ESp32 screen.
Text and floats (numbers) are working fine, but when I try to show the value of a select (dropdown box) I get nom.
This is the relevant code (for the ESP device in esphome):
On install it initially only says this in the logs:
[14:15:44][D][homeassistant.text_sensor:017]: ‘select.sessy_dk5u_power_strategy’: Got state ‘nom’
[14:15:44][D][text_sensor:064]: ‘sessy_power_strategy’: Sending state ‘nom’
Ok - I found a Zigbee button that creates a select entity and it works with or without quotes. I suspect the issue is on the HA side.
Find the entity in States under Developer Tools. Check the name - the current state and the valid states - they will be listed as options: followed by a comma separated list.
So I am feeling like an idiot right now for not noticing this before, but nom is one of the options of the select. Not one of the displayed options though. So the select looks like this:
Is there a way to get the Human readable state names (like the screenshot I posted before) and use them? Or should I do a remap with if’s in the esp code?