WLED Automation

I currently have an automation that uses MQTT for my WLED lights, with a certain pattern (Lights come on and off at the correct times but they come on as a solid color not the pattern I chose as the payload).
What I want to do is not use MQTT and have the lights come on to a certain pattern.
This is what I have.

####################################################
#       KITCHEN WLED LIGHTS OFF 2021Mar03          #
#################################################### 
- id: '1606496433324'
  alias: 'Lights - Kitchen WLED Lights OFF'
  description: Kitchen WLED Lights OFF
  trigger:
  - at: '21:00:00'
    platform: time
  action:
  - service: mqtt.publish
    data_template:
      topic: wled/all/api
      payload: T=0
####################################################
#       KITCHEN WLED LIGHTS ON 2021Mar03           #
####################################################   
- id: '1606496844178'
  alias: 'Lights - Kitchen WLED Lights ON'
  description: Kitchen WLED Lights ON
  trigger:
  - at: '06:00:00'
    platform: time
  action:
  - service: mqtt.publish
    data_template:
      topic: wled/all/api
      payload: T=1
  - service: mqtt.publish
    data_template:
      topic: wled/all/api
      payload: FX=87
####################################################
#            END OF CONFIGURATION FILE             #
#################################################### 

Can anyone help me convert it or send my a link to what I am looking for.

here is mine

wled_random_setup:
  alias: Randomise WLED
  sequence:
    - choose:
        - conditions:
            - condition: state
              entity_id: input_boolean.wled_fx
              state: 'on'
          sequence:
            - service: input_number.set_value
              data_template:
                entity_id: input_number.wled_fx
                value: '{{ (range(0, 117)|random) }}'
            - service: input_text.set_value
              data_template:
                entity_id: input_text.wled_gif_fx
                value: 'FX_{{ states.input_number.wled_fx.state | int }}.gif'

        - conditions:
            - condition: state
              entity_id: input_boolean.wled_fp
              state: 'on'
          sequence:
            - service: input_number.set_value
              data_template:
                entity_id: input_number.wled_fp
                value: '{{ (range(0, 55)|random) }}'
            - service: input_text.set_value
              data_template:
                entity_id: input_text.wled_gif_fp
                value: 'PAL_{{ states.input_number.wled_fp.state | int }}.gif'

                
        - conditions:
            - condition: state
              entity_id: input_boolean.wled_sx
              state: 'on'
          sequence:
            - service: input_number.set_value
              data_template:
                entity_id: input_number.wled_sx
                value: '{{ (range(0, 255)|random) }}'
    - service: script.turn_on
      data:
        entity_id: script.wled_random_wled

then I have

wled_random_wled:
  alias: Randomise WLED
  sequence:
    - service: mqtt.publish
      data_template:
        topic: wled/{{ states("input_select.wled_board") }}/api
        payload: FX={{ states.input_number.wled_fx.state | int }}
    - service: mqtt.publish
      data_template:
        topic: wled/{{ states("input_select.wled_board") }}/api
        payload: FP={{ states.input_number.wled_fp.state | int }}
    - service: mqtt.publish
      data_template:
        topic: wled/{{ states("input_select.wled_board") }}/api
        payload: SX={{ states.input_number.wled_sx.state | int }}

then Is is the Start of it

ramdom_xtree_lights:
  alias: Ramdom WLED lights Start
  sequence:
    - service: light.turn_on
      data_template:
        entity_id: light.wled_{{ states("input_select.wled_board") }}
    - service: script.turn_on
      data_template:
        entity_id: script.wled_random_setup
    - delay: 00:{{ states.input_select.xled_time.state }}:00
    - service: script.turn_off
      data:
        entity_id: script.wled_random_setup
    - service: script.turn_on
      data:
        entity_id: script.flash_loop_xtree

which runs every

input_select.xled_time

which is 10min

Thank you. This is a beginning for me.

I don’t use MQTT with WLED. I created some presets and just call them in my automation with the wled.preset service call

Would you mind showing me an example.
Thanks

Sure. In the WLED phone app I went into favorites tab and created a preset for the lighting colour I wanted (make a note of the preset number, you will need it in HA)

In HA, I have this automation it turns the WLED controlled strip to orange when the Plex app is running on the TV (I have red for Netflix, blue for Prime etc)

alias: Notify - Orange lights when Plex on TV
description: ''
trigger:
  - platform: state
    entity_id: media_player.lounge_tv_2
    attribute: source
    to: Plex
condition: []
action:
  - service: wled.preset
    data:
      preset: 3 # preset 3 is the orange colour setting in WLED app.
    entity_id: light.wled_2
mode: single

Thanks, will see if I can get it to work.