#Filter the visible Options in a Select Entity

1 messages ยท Page 1 of 1 (latest)

spiral marlin
#

Hello everyone, i am trying to limit/hide the available options in an entity (select.dishwasher_program) since there are like 10 options and i would only need like 3 of the available options.
I feel like there should be a simple way to filter the available options but after 2 hours of googling i am coming up empty. is there a property (or card mod?) way to archive this?

current (relevant) Yaml :

  • type: entities
    entities:
  • entity: select

Thanks in advanced for any pointers

quiet folio
#

A tile card with a select feature lets you customize the options

#

don't think that's available on an entities card

languid fossil
#

You could make a template select helper with just the subset you care about as options - and then use that as your entity in the card

spiral marlin
#

mh then i probably need to modify the whole card i copied from somebody far more capable then me in yaml. thanks alot for the info, i thought - ah thank you hilburn i figured that if i am not able to do it via the frontend a helper should probably be able to do the trick, i will look into that

spiral marlin
#

i know this is technicly not frondend anymore, but am i correct that i cannot use the select template helper to directly set the original Select entity? if that is the case i probably need to use an automation to "sync" the selects

quiet folio
#

I think you can

#

use a select.select_option action instead of a device action

#

as the selected option I think you can use {{ option }}

spiral marlin
#

at least im not able to make it work, if i try to save it it changes to "[object Object]": null

quiet folio
#

add quotes

#

data: "{{ option}}"

#

otherwise the {} is interpreted as a json object

spiral marlin
#

i always stumble over the quotes, i lack a fundamental understanding of yaml sadly, i only really know powershell as a programming language ๐Ÿ˜… that seems to work, now i only need to get the options to work currently im getting Failed to perform the action select/select_option. Error rendering data template: Result is not a Dictionary but im still tinkering / trying around

quiet folio
#
data:
  option: "{{ option }}"

Sorry try this

spiral marlin
#

that works thanks! last question : is there a way to set a "friendly name" for the options? the original select does have them for some options, but i was unable to find any attribute in the developer options for it

quiet folio
#

No I don't believe so, I didn't think selects supported that

spiral marlin
#

at least the original Select does get friendly names for the options from somewhere - minor issue i was just wondering how the hell it works ๐Ÿ™‚

#

Thank you very munch for the help - the card is usable now and the Wife acceptence factor is increased ๐Ÿ˜

quiet folio
#

maybe it has translations

#

if it does it's not something you can reproduce