Openhab2 /milight /Cannot delegate command 'off' for the item

hi,
i have a problem with my config:

[WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update 'OFF' for item 'licht' to handler for channel 'milight:rgbLed:tammo_zimmer:6:ledbrightness', because no thing with the UID 'milight:rgbLed:tammo_zimmer:6' could be found.

My CFG:

Things:

Bridge milight:bridge:tammo_zimmer [ ADDR=“192.168.30.85”, PORT=8899 ]
{
Thing rgbLed 6
}

Items:

Switch licht {channel=“milight:rgbLed:tammo_zimmer:6:ledbrightness”}

sitemap:

sitemap tammozimmer label=“Zuhause”
{
Frame label=“Tammo Zimmer” {
Switch item=licht
}
}

What is the state of the bridge in paper ui. Is the bridge listed as a thing and is online?

Yes, it is online in the Paper UI

What about the Inbox. Does it contain some milight things?

Btw. you defined ledbrightness channel as a switch in your items file. I am not quite sure if this will work, because ledbrightness is of type Dimmer and the Sitemap can address it as a switch. But maybe I am wrong.

I´ve attached my config. This is working with oh2 snapshot and current milight 2 binding.

milight.things

Bridge milight:bridge:ACCF23284AA1  "Milight Bridge"@"Wohnzimmer"   [ ADDR="192.168.178.23", PORT=8899, REFRESH=2, ID="ACCF23284AA1" ] 
{

    Thing   whiteLed    0   "White LED ALL"
    Thing   whiteLed    1   "White LED 1"
    Thing   whiteLed    2   "White LED 2"
    Thing   whiteLed    3   "White LED 3"
    Thing   whiteLed    4   "White LED 4"

    Thing   rgbLed      5

    Thing   rgbLed      6   "Color LED ALL"
    Thing   rgbLed      7   "Color LED 1"
    Thing   rgbLed      8   "Color LED 2"
    Thing   rgbLed      9   "Color LED 3"
    Thing   rgbLed      10  "Color LED 4"

}

milight.items

/**
 * Milight Items
 */

Switch  lR_Standlampe_Nightmode     "Standlampe Nachtmodus"     (lR)                    { channel="milight:rgbLed:ACCF23284AA1:10:lednightmode" }
Dimmer  lR_Standlampe_Brightness    "Standlampe Helligkeit"     (lR)                    { channel="milight:rgbLed:ACCF23284AA1:10:ledbrightness" }
Color   lR_Standlampe_Color         "Standlampe Farbe"          (lR)    ["Lighting"]    { channel="milight:rgbLed:ACCF23284AA1:10:ledcolor" }
Switch  lR_Standlampe_Discospeed    "Standlampe Discospeed"     (lR)                    { channel="milight:rgbLed:ACCF23284AA1:10:discospeed" }
Switch  lR_Standlampe_Discomode     "Standlampe Discomode"      (lR)                    { channel="milight:rgbLed:ACCF23284AA1:10:discomode" }

Switch  lR_Media_Nightmode          "Media Nachtmodus"          (lR)                    { channel="milight:rgbLed:ACCF23284AA1:8:lednightmode" }
Dimmer  lR_Media_Brightness         "Media Helligkeit"          (lR)                    { channel="milight:rgbLed:ACCF23284AA1:8:ledbrightness" }
Color   lR_Media_Color              "Media Farbe"               (lR)    ["Lighting"]    { channel="milight:rgbLed:ACCF23284AA1:8:ledcolor" }
Switch  lR_Media_Discospeed         "Media Discospeed"          (lR)                    { channel="milight:rgbLed:ACCF23284AA1:8:discospeed" }
Switch  lR_Media_Discomode          "Media Discomode"           (lR)                    { channel="milight:rgbLed:ACCF23284AA1:8:discomode" }

Switch  lR_Sideboard_Nightmode      "Sideboard Nachtmodus"      (lR)                    { channel="milight:rgbLed:ACCF23284AA1:9:lednightmode" }
Dimmer  lR_Sideboard_Brightness     "Sideboard Helligkeit"      (lR)                    { channel="milight:rgbLed:ACCF23284AA1:9:ledbrightness" }
Color   lR_Sideboard_Color          "Sideboard Farbe"           (lR)    ["Lighting"]    { channel="milight:rgbLed:ACCF23284AA1:9:ledcolor" }
Switch  lR_Sideboard_Discospeed     "Sideboard Discospeed"      (lR)                    { channel="milight:rgbLed:ACCF23284AA1:9:discospeed" }
Switch  lR_Sideboard_Discomode      "Sideboard Discomode"       (lR)                    { channel="milight:rgbLed:ACCF23284AA1:9:discomode" }

Switch  bD_Bett_Nightmode           "Bett Nachtmodus"           (bD)                    { channel="milight:rgbLed:ACCF23284AA1:7:lednightmode" }
Dimmer  bD_Bett_Brightness          "Bett Helligkeit"           (bD)                    { channel="milight:rgbLed:ACCF23284AA1:7:ledbrightness" }
Color   bD_Bett_Color               "Bett Farbe"                (bD)    ["Lighting"]    { channel="milight:rgbLed:ACCF23284AA1:7:ledcolor" }
Switch  bD_Bett_Discospeed          "Bett Discospeed"           (bD)                    { channel="milight:rgbLed:ACCF23284AA1:7:discospeed" }
Switch  bD_Bett_Discomode           "Bett Discomode"            (bD)                    { channel="milight:rgbLed:ACCF23284AA1:7:discomode" }

sitemap

            Switch item=lR_Standlampe_Color     label="Standlampe"  icon="light"
            Switch item=lR_Media_Color          label="Media"       icon="light"
            Switch item=lR_Sideboard_Color      label="Sideboard"   icon="light"
            Switch item=bD_Bett_Color           label="Bett"        icon="light"

Compare it with the following settings

Your Bridge is definde as an “older” Version, you need to Provide an ID.

Ah ok… I thought it would list the bridge as offline if there was a problem with the bridge configuration…

Yes and No, the ID is used to identify the Bridge version. Please take a look at the Binding readme.

Do you talk about this documentation. Can’t find any hint on Id there. I’ve actually used in my config because I have read the bridge definition in esh xml.

Indeed, we need to add the following to the docs:

@hmerk I’ve added a port configuration option and made the bridgeID optional. Please leave that empty for a V1/V2 bridge (and change the port to 50000). Your bridge thing should be immediately marked as “online”.

If you navigate to the details page on PaperUI->Configurations->Things->BridgeName you should see the status “Online - V2 compatibility mode”. In this mode no confirmation/detection messages are expected and the bridge as well as the lights will always stay “online”.

This was a comment from the original PR

Hello

I have the same error as the original poster, and these suggestions dont seem to resolve it. In the logs:
2017-03-11 18:45:31.736 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate command ‘ON’ for item ‘HSE_MBR_NightStandBSwitch’ to handler for channel ‘milight:rgbLed:ACCF2391469A:7’, because no thing with the UID ‘milight:rgbLed:ACCF2391469A’ could be found.

My Item:
Switch HSE_MBR_NightStandBSwitch “Night Stand Sw-B” {channel=“milight:rgbLed:ACCF2391469A:7”}

Sitemap item:
Switch item=HSE_MBR_NightStandBSwitch

And in PaperUI it’s defined as:

I understand well the channel numbers and to append functions to the end for dimmers, etc, but I cant even get it to turn off and on. The smartphone app works, I can access the webpage of the bridge at the IP that the autodetect finds it at. I set a reserved IP for this, 192.168.2.35 in my router so it wont move. Of course as your can see, I’m working with 1 RGBW Series bulb, and I believe my hub is a V3 with the black label - pictures of it and setup:

I also followed some instuctions and added this to my things folder:
milight.things

Bridge milight:bridge:ACCF2391469A “Milight Bridge”@“Home” [ ADDR=“192.168.2.35”, PORT=8899, REFRESH=2, ID=“ACCF2391469A” ]
{

Thing   whiteLed    0   "White LED ALL"
Thing   whiteLed    1   "White LED 1"
Thing   whiteLed    2   "White LED 2"
Thing   whiteLed    3   "White LED 3"
Thing   whiteLed    4   "White LED 4"

Thing   rgbLed      5

Thing   rgbLed      6   "Color LED ALL"
Thing   rgbLed      7   "Color LED 1"
Thing   rgbLed      8   "Color LED 2"
Thing   rgbLed      9   "Color LED 3"
Thing   rgbLed      10  "Color LED 4"

}
But, again, according to all the documentation I find, I should need it because everything autodetected. It made no difference, so I removed it.

Am I just referencing the item incorrectly in my items file? According to all the documentation and Wiki, I think it should be working, but I must overlook something. If it matters, it’s running on Openhab2 on Debian Jesse on a piece of junk Pine64. 64bit JavaVM is at 1.8.0.111-b14.

Thanks for your ideas in advance. Hope I was clear enough.
Best regards,
Jim