Profile for an item which is not linked to a channel

Hi Alex,

It is already known and definitely not related to the Hue binding. I seeing it in my environment for any item using a profile and others too.

@cweitkamp

That is not true for my environment. I have e.g. http1 binding. 7 items with http channel. There I use profile with Amazon Dash Buttons. No warnings.

I believe this issue is related to be using the additional channel definition in the same item…
I have this issue each time I start openhab 2.5M1 build #1575

2019-03-19 18:52:50.458 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:stort_badDimmerLys". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.471 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:sove_lampeudtaglys". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.479 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:stue_sov_OEV". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.484 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:stue_sov_OEH". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.511 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:kontor". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.520 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:bryggers_DimmerLys". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.525 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:bryggers_Skablys". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.535 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:lille_bad_OEV". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.546 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:casperDimmerLys". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.555 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:amanda_OEH". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.559 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:amanda_OEV". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.568 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:marc_OEH". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.572 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:marc_OEV". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.584 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:aktivitetLysKonstant". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.588 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:aktivitetBeboet". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.593 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:aktivitetUBeboet". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.607 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:garage_ydoer". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.614 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:garage_bryggers_NV". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.622 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:lys_indgangspotKonstant". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-03-19 18:52:50.628 [WARN ] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:lys_haven". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!

This error (warning) goes for all items I have, which has additional channel definition:

Switch stort_badDimmerLys     "Halogenlys i StortBad [%s]"                     <cu_spot>     (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:stortbad_dimmer_fb", channel="ihc:controller:elko:stortbad_dimmer_state", autoupdate="false" }
Switch sove_lampeudtaglys     "Lampeudtag i soveværelset [%s]" 	               <light>       (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:sove_80mm_fb", channel="ihc:controller:elko:sove_80mm_state", autoupdate="false" }
Switch stue_sov_OEV           "Stue M1 [%s]"                                   <light>       (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:stuen_m1", channel="ihc:controller:elko:stuen_m1_state", autoupdate="false" }
Switch stue_sov_OEH           "Stue M2 [%s]"                                   <light>       (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:stuen_m2", channel="ihc:controller:elko:stuen_m2_state", autoupdate="false" }
Switch kontor                 "Loftlys i kontoret [%s]"                        <light>       (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:kontor_80mm", channel="ihc:controller:elko:kontor_80mm_state", autoupdate="false" }
Switch bryggers_DimmerLys     "Bryggers Halogenlys [%s]"                       <cu_spot>     (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:bryggers_dimmer_fb", channel="ihc:controller:elko:bryggers_dimmer_state", autoupdate="false" }
Switch bryggers_Skablys       "Bryggers Skablys [%s]"                          <light>       (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:bryggers_skabslys_fb", channel="ihc:controller:elko:bryggers_skabslys_state", autoupdate="false" }
Switch lille_bad_OEV          "Lille Bad Lys [%s]"                             <cu_spot>     (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:lillebad_dimmer_fb", channel="ihc:controller:elko:lillebad_dimmer_state", autoupdate="false" }
Switch casperDimmerLys        "Loftlys i Caspers værelse [%s]" 	               <light>       (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:casper_dimmer_fb", channel="ihc:controller:elko:casper_dimmer_state", autoupdate="false" }
Switch amanda_OEH             "Spotlys i Amandas værelse [%s]" 	               <cu_spot>     (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:amanda_dimmer_fb", channel="ihc:controller:elko:amanda_dimmer_state", autoupdate="false" }
Switch amanda_OEV             "Lampeudtag i Amandas værelse [%s]"              <light>       (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:amanda_80mm_fb", channel="ihc:controller:elko:amanda_80mm_state", autoupdate="false" }
Switch marc_OEH               "Spotlys i Marcs værelse [%s]"                   <cu_spot>     (vLys)	    [ "Lighting" ]     { channel="ihc:controller:elko:marc_dimmer_fb", channel="ihc:controller:elko:marc_dimmer_state", autoupdate="false" }
Switch marc_OEV               "Lampeudtag i Marcs værelse [%s]"                <light>       (vLys)	    [ "Lighting" ]     { channel="ihc:controller:elko:marc_80mm_fb", channel="ihc:controller:elko:marc_80mm_state", autoupdate="false" }
Switch aktivitetLysKonstant   "Konstantlys i aktivitetrum [%s]"                <light>                  [ "Lighting" ]     { channel="ihc:controller:elko:aktivitet_dimmer_konst", channel="ihc:controller:elko:aktivitet_konst_state", autoupdate="false" }
Switch aktivitetBeboet        "Beboet tilstand [MAP(nilan_on_off.map):%s]"     <cu_switch>              [ "Lighting" ]     { channel="ihc:controller:elko:aktivitet_beboet", channel="ihc:controller:elko:aktivitet_beboet_state", autoupdate="false" }
Switch aktivitetUBeboet       "Ubeboet tilstand [MAP(nilan_on_off.map):%s]"    <cu_switch>              [ "Lighting" ]     { channel="ihc:controller:elko:aktivitet_ubeboet", channel="ihc:controller:elko:aktivitet_ubeboet_state", autoupdate="false" }
Switch garage_ydoer           "Garage lys konstant [%s]"                       <light>                  [ "Lighting" ]     { channel="ihc:controller:elko:garagelys_konst", channel="ihc:controller:elko:garagelys_konst_state", autoupdate="false" }
Switch garage_bryggers_NV     "Garageporten [%s]"                              <light>                  [ "Switchable" ]   { channel="ihc:controller:elko:garageport", channel="ihc:controller:elko:garageport_state", autoupdate="false" }
Switch lys_indgangspotKonstant "Udvendiglys Indgangsparti på konstant [%s]"    <light> 	                                   { channel="ihc:controller:elko:indgangsparti_konst", channel="ihc:controller:elko:indgangsparti_konst_state", autoupdate="false" }
Switch lys_haven               "Lyset i haven [%s]"                            <light>       (vLys)     [ "Lighting" ]     { channel="ihc:controller:elko:have_dimmer_fb", channel="ihc:controller:elko:have_dimmer_state", autoupdate="false" }

It has also been noted with an fix (I guess) in this message:

So if one remove the additional channel definition, the warning should be gone. I havn´t tried the suggestion, as I believe this is an issue in openhab, which needs to be fixed. Or is it suppose to be like the suggested fix??

Comment - there is a section about multiple bindings in the docs.
If dealing with multiple channels, and the correct/preferred method is
channel = "xx" , "yy"
perhaps this needs adding to docs

Sounds like this isn’t quite right with profile as well though?

At the bottom of the link there is an example which used mutiple channels (Multi-channel Linking)… :

Color Bedroom_Light { channel="hue:0210:1:bulb1:color", channel="serialbutton:button:mybutton:button" [profile="rawbutton-toggle-switch"] }

But this will result in a warning when used. And I believe it´s been there for quite some time now (since 2.4M1).

So there is, completely missed that at first reading :smiley:

I know the feeling :slight_smile:
So I guess this calls for an issue then.

The issue already exists. But I think we can push it by moving it to the new openHAB Core / or posting a reminder in the existing issue.

Looking at the comments on github, it doest seem like this issue is really suppose to be fixed, but rather reducing the log level. It´s probably better to move it to the new opeHab core then. Unfortunatly I have no idea how to rise an issue on github.

You are right. Thanks for the hint. Instead of moving the issue I submitted a PR to reduce the logging level.