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
Which app are you using and does that app support your ledstrip and that functions?
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.
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?
It sounds a bit like “I asked ChatGPT to write the code for me and it doesn’t work” ![]()
Can you share the code?
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.
Please reformat your last post. Use the Preformatted text option for the code section to keep it human readable.
Just show the code that sets the capability.
Which card do you use?