# How to target segments for my light strip in homeyscript

**URL:** https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524
**Category:** Questions & Help
**Created:** [February 3, 2026, 8:34am UTC](https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524 "2026-02-03T08:34:50Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Austin\_Skillings](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/austin_skillings/32/113688_2.png) [@Austin\_Skillings](https://community.homey.app/u/Austin_Skillings)
#### Post date: [February 3, 2026, 8:34am UTC](https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524/1 "2026-02-03T08:34:50Z")

</div>

I have a govee neon lightstrip that says it has 13 segments or so. Says there is a lot of capabilities in the device info but I can’t seem to figure out how to correctly run a color to each segments individually through a homeyscript. Anyone have a clue? I keep getting errors

---

<div class="post-metadata">

### Author: ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)
#### Post date: [February 3, 2026, 8:53am UTC](https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524/2 "2026-02-03T08:53:53Z")

</div>

Which app are you using and does that app support your ledstrip and that functions?

---

<div class="post-metadata">

### Author: ![Austin\_Skillings](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/austin_skillings/32/113688_2.png) [@Austin\_Skillings](https://community.homey.app/u/Austin_Skillings)
#### Post date: [February 9, 2026, 5:03pm UTC](https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524/3 "2026-02-09T17:03:06Z")

</div>

I’m not using any app. Except maybe the govee app that integrates the light. But then I’m using homeyscript to program the govee light to display different colors to each segment. But for some reason no matter how I program it, it runs errors. Maybe I will send some of the code to see if anyone can see the issue.

---

<div class="post-metadata">

### Author: ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)
#### Post date: [February 10, 2026, 1:55pm UTC](https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524/4 "2026-02-10T13:55:51Z")

</div>

In that case, how do you pair your device with Homey?

And are the capabilities you want shown in the developers tool (under devices)? If not, how are you going to address them. If you cannot address them using flow cards, how would you use them writing code? Write your own app?

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [February 10, 2026, 2:04pm UTC](https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524/5 "2026-02-10T14:04:27Z")

</div>

It sounds a bit like “I asked ChatGPT to write the code for me and it doesn’t work” 😬

---

<div class="post-metadata">

### Author: ![smarthomesven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/smarthomesven/32/79712_2.png) [@smarthomesven](https://community.homey.app/u/smarthomesven)
#### Post date: [February 10, 2026, 11:27pm UTC](https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524/6 "2026-02-10T23:27:47Z")

</div>

Can you share the code?

---

<div class="post-metadata">

### Author: ![Austin\_Skillings](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/austin_skillings/32/113688_2.png) [@Austin\_Skillings](https://community.homey.app/u/Austin_Skillings)
#### Post date: [March 22, 2026, 2:02am UTC](https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524/7 "2026-03-22T02:02:02Z")

</div>

I’m using claude with a skill that is for homescript and it’s usually awesome. I have it help with things, but for some reason I can never target the device capability that it shows. The device capabilities are [{“type”:“devices.capabilities.on\_off”,“instance”:“powerSwitch”,“parameters”:{“dataType”:“ENUM”,“options”:[{“name”:“on”,“value”:1},{“name”:“off”,“value”:0}]}},{“type”:“devices.capabilities.toggle”,“instance”:“gradientToggle”,“parameters”:{“dataType”:“ENUM”,“options”:[{“name”:“on”,“value”:1},{“name”:“off”,“value”:0}]}},{“type”:“devices.capabilities.range”,“instance”:“brightness”,“parameters”:{“unit”:“unit.percent”,“dataType”:“INTEGER”,“range”:{“min”:1,“max”:100,“precision”:1}}},{“type”:“devices.capabilities.segment\_color\_setting”,“instance”:“segmentedBrightness”,“parameters”:{“dataType”:“STRUCT”,“fields”:[{“fieldName”:“segment”,“size”:{“min”:1,“max”:15},“dataType”:“Array”,“elementRange”:{“min”:0,“max”:14},“elementType”:“INTEGER”,“required”:true},{“fieldName”:“brightness”,“dataType”:“INTEGER”,“range”:{“min”:0,“max”:100,“precision”:1},“required”:true}]}},{“type”:“devices.capabilities.segment\_color\_setting”,“instance”:“segmentedColorRgb”,“parameters”:{“dataType”:“STRUCT”,“fields”:[{“fieldName”:“segment”,“size”:{“min”:1,“max”:15},“dataType”:“Array”,“elementRange”:{“min”:0,“max”:14},“required”:true},{“fieldName”:“rgb”,“dataType”:“INTEGER”,“range”:{“min”:0,“max”:16777215,“precision”:1},“required”:true}]}},{“type”:“devices.capabilities.color\_setting”,“instance”:“colorRgb”,“parameters”:{“dataType”:“INTEGER”,“range”:{“min”:0,“max”:16777215,“precision”:1}}},{“type”:“devices.capabilities.color\_setting”,“instance”:“colorTemperatureK”,“parameters”:{“dataType”:“INTEGER”,“range”:{“min”:2000,“max”:9000,“precision”:1}}},{“type”:“devices.capabilities.dynamic\_scene”,“instance”:“lightScene”,“parameters”:{“dataType”:“ENUM”,“options”:[]}},{“type”:“devices.capabilities.music\_setting”,“instance”:“musicMode”,“parameters”:{“dataType”:“STRUCT”,“fields”:[{“fieldName”:“musicMode”,“dataType”:“ENUM”,“options”:[{“name”:“Energic”,“value”:1},{“name”:“Rhythm”,“value”:2},{“name”:“Spectrum”,“value”:3},{“name”:“Rolling”,“value”:4},{“name”:“Separation”,“value”:5},{“name”:“Hopping”,“value”:6},{“name”:“PianoKeys”,“value”:7},{“name”:“Fountain”,“value”:8},{“name”:“DayandNight”,“value”:9},{“name”:“Sprouting”,“value”:10},{“name”:“Shiny”,“value”:11}],“required”:true},{“unit”:“unit.percent”,“fieldName”:“sensitivity”,“dataType”:“INTEGER”,“range”:{“min”:0,“max”:100,“precision”:1},“required”:true},{“fieldName”:“autoColor”,“dataType”:“ENUM”,“options”:[{“name”:“on”,“value”:1},{“name”:“off”,“value”:0}],“required”:false},{“fieldName”:“rgb”,“dataType”:“INTEGER”,“range”:{“min”:0,“max”:16777215,“precision”:1},“required”:false}]}},{“type”:“devices.capabilities.dynamic\_scene”,“instance”:“diyScene”,“parameters”:{“dataType”:“ENUM”,“options”:[]}},{“type”:“devices.capabilities.dynamic\_scene”,“instance”:“snapshot”,“parameters”:{“dataType”:“ENUM”,“options”:[]}}]

You can see there is a segment color option but i can never get it to target that to create a color on that segment. It only works in a flow obviously using the govee api app. But I can’t target that in homeyscript I feel.

---

<div class="post-metadata">

### Author: ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)
#### Post date: [March 22, 2026, 5:59am UTC](https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524/8 "2026-03-22T05:59:19Z")

</div>

Please reformat your last post. Use the Preformatted text option for the code section to keep it human readable.

---

<div class="post-metadata">

### Author: ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)
#### Post date: [March 22, 2026, 8:30am UTC](https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524/9 "2026-03-22T08:30:17Z")

</div>

Just show the code that sets the capability.

---

<div class="post-metadata">

### Author: ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)
#### Post date: [March 22, 2026, 8:35am UTC](https://community.homey.app/t/how-to-target-segments-for-my-light-strip-in-homeyscript/150524/10 "2026-03-22T08:35:27Z")

</div>

> [@Austin\_Skillings](#):
>
> It only works in a flow obviously using the govee api app

Which card do you use?
