esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
420 stars 26 forks source link

Add more variables types custom API Actions #2930

Open MiguelAngelLV opened 1 month ago

MiguelAngelLV commented 1 month ago

Describe the problem you have/What new integration you would like

Actually the user defined action only allow int, string, float and booleans types (and array versions) while HA has a lot of selectors with differents usages (int, floats, colors, durations, selects...)

Please describe your use case for this integration and alternatives you've tried:

ESPHome should support add context to variables definition to allow HA represent them with a better selector and get easier actions

Additional context

For more easy transaction, the types in ESPHome could be the same, but mapped from the selector. For example, a dropdown with options that map the value to int, or a color with is mapped to int array.