Govee lan-api binding - configure via thing/item file

hi guys,

I’m trying to use the goove lan-api to control my H6046 lightbars. I want to configure the lightbars using things/items file (because I configured everything via things/items).

I tried a lot of things and currently have this:

things:

Bridge govee:govee-light:local [
      hostname="kip-govee-lightbars",
      macAddress="...",
      model="H6046" 
    ] {
    Thing system kip-govee-lightbars [] {
      Channels:
        Type switch : color []
        
    }
}

items:

Switch Govee_LightBars_Power
  "Power"
  { channel="govee:govee-light:local:kip-govee-lightbars:color" }

But this doesnt work … I get this error:

2025-02-20 19:57:33.017 [WARN ] [.govee.internal.CommunicationManager] - thing Handler for 10.0.4.68 couldn't be found.
2025-02-20 19:57:35.002 [DEBUG] [.binding.govee.internal.GoveeHandler] - trigger Refresh Status of device Govee Light
2025-02-20 19:57:35.003 [TRACE] [.govee.internal.CommunicationManager] - Sending {"msg":{"cmd":"devStatus","data":{}}} to kip-govee-lightbars
2025-02-20 19:57:35.014 [TRACE] [.govee.internal.CommunicationManager] - Response from 10.0.4.68 = {"msg":{"cmd":"devStatus","data":{"onOff":1,"brightness":100,"color":{"r":255,"g":255,"b":255},"colorTemInKelvin":4300}}}

Has anyone an idea what I’m doing wrong?

Do you mind trying via the Main UI and see if it is working there by scanning the network and adding it there directly from the UI and then see what it discovers. From there we can see how we put this into the files, I am sure.

Thanks for the suggestion! I did not get the scan to work, but the UI helped me to fix the channel of my item. If somebody has the same problem, this is working for me:

// govee.things
Bridge govee:govee-light:local [
       hostname="kip-govee-lightbars",
       macAddress="...",
       model="H6046" 
     ] {
 }
// govee.items
Switch Govee_LightBars_Power
   "Govee Test Power"
   { channel="govee:govee-light:local:color" }


I like the fact that you showed what the solution is. Thanks.

Do you think that something should be changed or added to the documentation?

Since each lamp is controlled individually, I think it should be a thing and not a bridge.