How can you set a Preset using Select.Select_Option to a Group. entities

so i made a script to record WLED current state and then apply a preset and then restore the current state… now that works well and in node red if you specify the light.xxxx_preset now i can record Scenes using group… but i cant seem to select.select_option to a group… so what i have is

sequence:
  - action: scene.create
    metadata: {}
    data:
      snapshot_entities:
        - group.wled_devices_save_restore_settings
      scene_id: incoming_call_current_leds_state
  - action: select.select_option
    metadata: {}
    data:
      option: Incoming Call
    target:
      entity_id:
        - group.wled_devices_incoming_call_presets
  - delay:
      hours: 0
      minutes: 0
      seconds: 20
      milliseconds: 0
  - action: scene.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: scene.incoming_call_current_leds_state
alias: LED - "INCOMING CALL" - CURRENT STATE/RESTORE
description: ""

### Save/Restore WLED states ###
wled_devices_save_restore_settings:
  name: wled devices save restore settings
  entities:
    ### Bedroom Monitor Table
    - light.wled_monitor_table_bedroom
    - number.wled_monitor_table_bedroom_intensity
    - number.wled_monitor_table_bedroom_speed
    - select.wled_monitor_table_bedroom_color_palette
    - select.wled_monitor_table_bedroom_preset
      ### Happy Halloween Sign ###
    - light.happy_halloween
    - number.happy_halloween_intensity
    - number.happy_halloween_speed
    - select.happy_halloween_color_palette
    - select.happy_halloween_preset
      ### Pumpkin Head #1 ###
    - light.pumpkin_head_1
    - number.pumpkin_head_1_intensity
    - number.pumpkin_head_1_speed
    - select.pumpkin_head_1_color_palette
    - select.pumpkin_head_1_preset
      ### Snack Bar Above Sink Shelf ###
    - light.wled_snack_bar_above_sink_shelf
    - light.wled_snack_bar_above_sink_shelf_main
    - number.wled_snack_bar_above_sink_shelf_intensity
    - number.wled_snack_bar_above_sink_shelf_segment_1_intensity
    - number.wled_snack_bar_above_sink_shelf_segment_2_intensity
    - number.wled_snack_bar_above_sink_shelf_segment_3_intensity
    - number.wled_snack_bar_above_sink_shelf_segment_4_intensity
    - number.wled_snack_bar_above_sink_shelf_speed
    - number.wled_snack_bar_above_sink_shelf_segment_1_speed
    - number.wled_snack_bar_above_sink_shelf_segment_2_speed
    - number.wled_snack_bar_above_sink_shelf_segment_3_speed
    - number.wled_snack_bar_above_sink_shelf_segment_4_speed
    - select.wled_snack_bar_above_sink_shelf_color_palette
    - select.wled_snack_bar_above_sink_shelf_segment_1_color_palette
    - select.wled_snack_bar_above_sink_shelf_segment_2_color_palette
    - select.wled_snack_bar_above_sink_shelf_segment_3_color_palette
    - select.wled_snack_bar_above_sink_shelf_segment_4_color_palette
    - select.wled_snack_bar_above_sink_shelf_preset
      ### Server Rack (Stage) ###
    - light.server_rack
    - number.server_rack_intensity
    - number.server_rack_speed
    - select.server_rack_color_palette
    - select.server_rack_preset

### Set Wled to "Incoming Calls" ###
wled_devices_incoming_call_presets:
  name: Wled Devices Incoming Call Presets
  icon: mdi:devices
  entities:
    - select.pumpkin_head_1_preset
    - select.happy_halloween_preset
    - select.wled_monitor_table_bedroom_preset
    - select.wled_snack_bar_above_sink_shelf_preset
    - select.server_rack_preset

so what i trying to do is not edit the automation/script/node red everytime i add an wled… just edit the groups.yaml and just edit the 2 locations…

i know you cant use group as nod red doesnt allow it nore did the scripts… but im sure there is a way to state the groups preset to the “incoming call” or others i have …

The action select.select_option only works on entities in the select domain. It will not work on group entities. What I think you are trying to do is use the group entity’s ID to get the entity IDs of all the group members. If that’s what you are trying to do, then you need to use a template that retrieves the entity_id attribute:

  - action: select.select_option
    metadata: {}
    data:
      option: Incoming Call
    target:
      entity_id: |
        {{ state_attr('group.wled_devices_incoming_call_presets', 'entity_id') }}

@Didgeridrew sorry delay i wasnt getting update notifications till i logged in
so ya
i made a group entity to save entity states so the create.scene would work but its flaky for wled settings its hit and miss on that one

but ya then i made a group template

wled_devices_incoming_call_presets:
  name: Wled Devices Incoming Call Presets
  icon: mdi:devices
  entities:
    - select.pumpkin_head_1_preset
    - select.happy_halloween_preset
    - select.wled_monitor_table_bedroom_preset
    - select.wled_snack_bar_above_sink_shelf_preset
    - select.server_rack_preset

so then when an incoming call comes in the automation sets “Incoming Call” to group wled_devices_incoming_call_presets
it sometimes works sometimes doesnt.

but ill try that template
i know the create scene. and trying to save all those presets above i have doesnt always correctly save as when it supposed to return back to the previous state it will leave settings on… i think its cuz if your wled is powered off of have a preset set for power off… HA reads it as a blank, unavaliable so sometimes that buggers up things so its a hit and miss for wled i found

but ill try your template to see if it works better… sorry for the delay didnt get any notifications

@Didgeridrew

so i finally got to play with it your code seems to work… but i having problems with the create and restore scene…

i have a preset “Power Off” that just turns the wleds off but i finding still it cant create scene right…

so when it restores it doesn restore “Power Off” as the preset it will restore it blank preset and sometimes the leds dont restore back to the previous state it seems to do that with other presets too… it records or supposedly… but when i do the restore. it restores the preset as " " blank and lot of times wont stop… so the “incoming call” led preset keeps going

is there something special you do to create and restore for the wled