How to control a segment of a long LED Stripe with WLED

I have setup a long LED stripe around my house. i would like to control the whole led stripe as one stripe, but i also want to use only for example 150 leds in the middle of the stripe.
what is the possible way to do it?

  • setup segments in WLED and switch between them
  • control WLED with json-API like this:
rest_command:
  set_wled_segment:
    url: "http://<WLED_IP>/json/state"
    method: POST
    headers:
      Content-Type: application/json
    payload: >
      {
        "seg": [{
          "start": 200,
          "stop": 300,
          "col": [[0,0,255]],
          "bri": 250
        }]
      }

i want to use it maximal flexible

This can be done by creating segments in WLED for the segments that you want. Use the WLED integration, and when Home-assistant picks up the strip you will see Main, which is the whole strip and you will also see the individual Segments. Now you can control the Main or the Aegments as separate lights.