Template Select should allow run-time options #3216
Replies: 2 comments
-
Here is an example with a modification to the template sensor that shows what I'm looking for. ![]()
Working code here: esphome/esphome@dev...spuder:esphome:template_select_options consWhile this works, it currently requires a browser refresh to populate the values in the drop down box. |
Beta Was this translation helpful? Give feedback.
-
The problem with this is that the options are only sent to HA once per connection. They cannot be updated |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Component name
Select
Link to component documentation on our website
https://esphome.io/components/select/template.html
Describe the enhancement
Currently all options in the template select must be defined at compile time.
The component should allow updating values at run time (without needing a 3rd party api like home assistant).
Use cases
esp32 fetches a list of printers from a rest api using http_request.get.
I want to select the correct mqtt topic to subscribe to based on the result of the select box
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions