I do have the following setup. I have FHEM running which is getting details from my pool. These settings are getting published to HA via MQTT.
One parameter is the mode of operations (manual, auto, heating) - it is a nummeric value (0,1,2).
Now my idea is to create some drop down in HA and based on the selection FHEM will be triggered to set the selected mode.
The automation part is clear so far but I am struggling a bit with the drop down.
The command to trigger the mode change will look like that:
As long as I would just go with the nummeric value everything should be easy.
But I would like to have a dropdown which is showing the description (Auto, Manual, Heating) and internally is using the ID of it. In the dropdown helper I can just enter one value either the nummeric or the description.
Is there any best practice to solve that or any example?
Still looking for an answer. Overall everything so far is working. Only the right drop down element should be displayed as selected based on the entity value on page opening/refresh. Right now it it is always blank.