#Dynamic Scene Selector Driving me Insane

1 messages · Page 1 of 1 (latest)

high hill
#

Hey guys, im going insane.

Im trying to create a Dynamic Scene Selector for my office, the Input_Select update part is working, but when trying to activate the selected scene, im getting this error:

Message malformed: Unable to determine action @ data['actions'][0]['choose'][0]['sequence'][0]

This is the automation as of now:

alias: Andres Office Update Scene Selector Options
description: ""
triggers:
  - event: start
    trigger: homeassistant
    id: HA
  - trigger: state
    entity_id:
      - input_select.andres_office_scene_selector
    from: null
    id: Scene
actions:
  - choose:
    - conditions:
        - condition: trigger
          id:
            - HA
      sequence:
        - target:
            entity_id: input_select.andres_office_scene_selector
          data:
            options: >
              {{ states.scene | selectattr('entity_id', 'search','scene.andres_office_') | map(attribute='name') | list }}
        - action: input_select.set_options
          alias: Update Scenes
    - conditions:
        - condition: trigger
          id:
            - Update Scene
      sequence:
        - action:
            - service: scene.turn_on
              data:
                entity_id: "{{ 'scene.' + states('input_select.andres_office_scene_selector').lower().replace(' ', '_') }}"
          alias: Activate Scene