Template Light Help

I’m trying to make a light entity out of a couple RF controlled spots, I’m putting a ticket into the smart ir custom competent but in the mean time this is what I need to do, but I keep getting the error:

Invalid config for [light.template]: some but not all values in the same group of inclusion ‘effect’ @ data[‘lights’][‘out_spot_light’][]. Got None. (See ?, line ?).

code:

light:
  - platform: template
    lights:
      out_spot_light:
        friendly_name: "Outside Spot Light"
        level_template: >-
          {% if is_state('input_select.outside_spot_dimmer', 'high') %}
            100
          {% else %}
            50
          {% endif %}
        effect_list_template: ->
          {{ state_attr('input_select.outside_spot_effect', 'options') }}
        turn_on:
          service: remote.send_command
          target:
            entity_id: remote.rm_pro_remote
          data:
            device: out_spot
            command: 'on'
            delay_secs: 0.4
            num_repeats: 3
        turn_off:
          service: remote.send_command
          target:
            entity_id: remote.rm_pro_remote
          data:
            device: out_spot
            command: 'off'
            delay_secs: 0.4
            num_repeats: 3

when I put the double quotes around the effect template I get a string returned (it wants a list) and the same error.

  1. it should be >- or >
  2. You need include set_effect, and effect_template in order to use effect_list_template. all 3 fields are required.

Thanks, ok so now I have a new problem, new error:
Invalid config for [light.template]: expected a dictionary for dictionary value @ data[‘lights’][‘out_spot_light’][‘set_effect’][0][‘target’]. Got ‘input_select.outside_spot_effect’
template value should be a string for dictionary value @ data[‘lights’][‘out_spot_light’][‘set_effect’][0][‘data_template’]. Got [OrderedDict([(‘option’, ‘{{ effect }}’)])]. (See ?, line ?).

here is the complete code right now:

light:
  - platform: template
    lights:
      out_spot_lights:
        friendly_name: "Outside Spot Lights"
        level_template: >-
          {% if is_state('input_select.outside_spot_dimmer', 'high') %}
            100
          {% else %}
            50
          {% endif %}
        effect_list_template: "{{ state_attr('input_select.outside_spot_effect', 'options') }}"
        effect_template: "{{ states('input_select.outside_spot_effect') }}"
        turn_on:
          service: remote.send_command
          target:
            entity_id: remote.rm_pro_remote
          data:
            device: out_spot
            command: 'on'
            delay_secs: 0.4
            num_repeats: 3
        turn_off:
          service: remote.send_command
          target:
            entity_id: remote.rm_pro_remote
          data:
            device: out_spot
            command: 'off'
            delay_secs: 0.4
            num_repeats: 3
        set_effect:
          - service: input_select.select_option
            target: input_select.outside_spot_effect
            data_template:
              - option: "{{ effect }}"
          - service: remote.send_command
            target:
              entity_id: remote.rm_pro_remote
            data_template:
              - device: out_spot
                command: >-
                  {% if is_state('input_select.outside_spot_effect', 'Solid Red') %}
                    'red'
                  {% endif %}
                  {% if is_state('input_select.outside_spot_effect', 'Solid Green') %}
                    'grn'
                  {% endif %}
                  {% if is_state('input_select.outside_spot_effect', 'Solid Blue') %}
                    'blu'
                  {% endif %}
                  {% if is_state('input_select.outside_spot_effect', 'Solid White') %}
                    'wht'
                  {% endif %}
                  {% if is_state('input_select.outside_spot_effect', 'Solid Yellow') %}
                    'ylw'
                  {% endif %}
                  {% if is_state('input_select.outside_spot_effect', 'Solid Purple') %}
                    'purp'
                  {% endif %}
                  {% if is_state('input_select.outside_spot_effect', 'Solid Orange') %}
                    'orng'
                  {% endif %}
                  {% if is_state('input_select.outside_spot_effect', 'Colour Fade') %}
                    'shade'
                  {% endif %}
                  {% if is_state('input_select.outside_spot_effect', 'Colour Sanp') %}
                    'jump'
                  {% endif %}

You defined target incorrectly in your first service call on set_effect. You’re missing the entity_id field