# Profile for an item which is not linked to a channel

**URL:** <https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885>\
**Category:** Items & Sitemaps\
**Created:** [December 31, 2018, 8:26am UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885 "2018-12-31T08:26:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![smhgit](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@smhgit](https://community.openhab.org/u/smhgit)\
**Post date:** [December 31, 2018, 8:26am UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/1 "2018-12-31T08:26:24Z")

</div>

Hi,

Can I use profiles to update an item which is not linked to a channel / thing?

The profile [documentation](https://www.openhab.org/docs/configuration/items.html#profiles) shows that it can be used from channel to channel, but my target item is not linked to any channel.

Thx

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [December 31, 2018, 8:42am UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/2 "2018-12-31T08:42:22Z")

</div>

I am wondering the same things

---

<div class="post-metadata">

**Author:** ![Celaeno1](https://community.openhab.org/user_avatar/community.openhab.org/celaeno1/32/55724_2.png) [@Celaeno1](https://community.openhab.org/u/Celaeno1)\
**Post date:** [December 31, 2018, 9:59am UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/3 "2018-12-31T09:59:09Z")

</div>

@vzorglub

Me, too.

I tried out a profile with “Amazon Dash Button”. But the trigger only triggers, but without any state e.g. PRESSED. How to achive this? Here is my rule a want to **replace** :

```
rule "Dash button Sagrotan pressed"
when
    Channel 'amazondashbutton:dashbutton:50-f5-da-XX-XX-XX:press' triggered
then
    if(Hue_Light3_Toggle.state==OFF) {
		sendCommand(Hue_Light3_Toggle, ON)
	} else {
		sendCommand(Hue_Light3_Toggle, OFF)
	} 
end

```

.  
.  
But to use profile **[profile=“rawbutton-toggle-switch”]** I need a trigger = **PRESSED**!!

How can I transform “triggered” = empty to = PRESSED ? (see above rule)

see also example from [documentation](https://www.openhab.org/docs/configuration/items.html#profiles):

```auto
when
    Channel "serialbutton:button:mybutton:button" triggered PRESSED
then
    if (Light_Bedroom.getStateAs(OnOffType) != ON)
        Light_Bedroom.sendCommand(ON)
    else
        Light_Bedroom.sendCommand(OFF)
end

```

here the event in logfile:

```
12:24:04.912 [INFO] [smarthome.event.ChannelTriggeredEvent] - amazondashbutton:dashbutton:50-f5-da-xx-xx-xx:press triggered

```

.  
the event triggered an “empty” event.

I tried transformation **map** , but this is not running. I could not transform “empty” to PRESSED

---

<div class="post-metadata">

**Author:** ![cweitkamp](https://community.openhab.org/user_avatar/community.openhab.org/cweitkamp/32/56864_2.png) [@cweitkamp](https://community.openhab.org/u/cweitkamp)\
**Post date:** [December 31, 2018, 11:35am UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/4 "2018-12-31T11:35:27Z")

</div>

Currently it is not possible to define a profile for an item without being linked to a channel. By their nature, profiles are correlated to links between items and channels.

> [@Celaeno1](#):
>
> How can I transform “triggered” = empty to = PRESSED?

That it not possible. We have to change the channel type of the `press` channel in the code and adopt the implementation accordingly. I will put it onto my TO-DO list.

---

<div class="post-metadata">

**Author:** ![smhgit](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@smhgit](https://community.openhab.org/u/smhgit)\
**Post date:** [December 31, 2018, 11:44am UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/5 "2018-12-31T11:44:38Z")

</div>

> [@cweitkamp](#):
>
> Currently it is not possible to define a profile for an item without being linked to a channel. By their nature, profiles are correlated to links between items and channels.

@cweitkamp

Any plan to have it? In my case, the majority of the profiles I need are setting items from devices (as I am using a lot of “proxy” items).

---

<div class="post-metadata">

**Author:** ![Celaeno1](https://community.openhab.org/user_avatar/community.openhab.org/celaeno1/32/55724_2.png) [@Celaeno1](https://community.openhab.org/u/Celaeno1)\
**Post date:** [December 31, 2018, 11:45am UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/6 "2018-12-31T11:45:27Z")

</div>

@cweitkamp

> [@cweitkamp](#):
>
> We have to change the channel type of the `press` channel in the code

Then for me **profile** is useless at the moment. Neither dashbutton nor hue dimmer switch support the event “PRESSED”.

Better you can attach events as parameter to a profile?

e.g [profile=“rawbutton-toggle-switch”, trigger=“abcd”]

---

<div class="post-metadata">

**Author:** ![cweitkamp](https://community.openhab.org/user_avatar/community.openhab.org/cweitkamp/32/56864_2.png) [@cweitkamp](https://community.openhab.org/u/cweitkamp)\
**Post date:** [December 31, 2018, 12:23pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/7 "2018-12-31T12:23:33Z")

</div>

> [@smhgit](#):
>
> Any plan to have it?

No, I am not aware of such plans. Please open a feature request in [GitHub · Where software is built](https://github.com/eclipse/smarthome/issues) or - even better - work on it on your own 😉.

> [@smhgit](#):
>
> In my case, the majority of the profiles I need are setting items from devices (as I am using a lot of “proxy” items).

I second that. I figured several use-cases in my own environment for such a feature too.

> [@Celaeno1](#):
>
> Better you can attach events as parameter to a profile?
> 
> e.g [profile=“rawbutton-toggle-switch”, trigger=“abcd”]

Absolutely. Especially for the Hue Switches (see [Hue Binding - Dimmer Switch - #50 by cweitkamp](https://community.openhab.org/t/hue-binding-dimmer-switch/29761/50)).

---

<div class="post-metadata">

**Author:** ![Celaeno1](https://community.openhab.org/user_avatar/community.openhab.org/celaeno1/32/55724_2.png) [@Celaeno1](https://community.openhab.org/u/Celaeno1)\
**Post date:** [December 31, 2018, 12:27pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/8 "2018-12-31T12:27:12Z")

</div>

> [@cweitkamp](#):
>
> Absolutely. Especially for the Hue Switches (see [Hue Binding - Dimmer Switch](https://community.openhab.org/t/hue-binding-dimmer-switch/29761/50)).

Ahh, OK, now I understand what you mentioned in the other topic. 👍

---

<div class="post-metadata">

**Author:** ![cweitkamp](https://community.openhab.org/user_avatar/community.openhab.org/cweitkamp/32/56864_2.png) [@cweitkamp](https://community.openhab.org/u/cweitkamp)\
**Post date:** [January 2, 2019, 1:10pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/9 "2019-01-02T13:10:13Z")

</div>

> [@Celaeno1](#):
>
> Neither dashbutton nor hue dimmer switch support the event “PRESSED”.

I changed it for the Amazon Dash Button.

[https://github.com/openhab/openhab2-addons/pull/4480](https://github.com/openhab/openhab2-addons/pull/4480)

---

<div class="post-metadata">

**Author:** ![Celaeno1](https://community.openhab.org/user_avatar/community.openhab.org/celaeno1/32/55724_2.png) [@Celaeno1](https://community.openhab.org/u/Celaeno1)\
**Post date:** [January 2, 2019, 1:20pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/10 "2019-01-02T13:20:05Z")

</div>

Thanks a lot.

In case of non useing the profile (e.g. some of my rules are too complex!) , do I have to change such complex rules from:

```
Channel "amazondashbutton:dashbutton:fc-a6-67-0c-aa-c7:press" triggered

```

to

```
Channel "amazondashbutton:dashbutton:fc-a6-67-0c-aa-c7:press" triggered PRESSED

```

**??**

---

<div class="post-metadata">

**Author:** ![cweitkamp](https://community.openhab.org/user_avatar/community.openhab.org/cweitkamp/32/56864_2.png) [@cweitkamp](https://community.openhab.org/u/cweitkamp)\
**Post date:** [January 2, 2019, 1:29pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/11 "2019-01-02T13:29:46Z")

</div>

No, a rule like in your example - without “PRESSED” - will work in the same way.

---

<div class="post-metadata">

**Author:** ![Celaeno1](https://community.openhab.org/user_avatar/community.openhab.org/celaeno1/32/55724_2.png) [@Celaeno1](https://community.openhab.org/u/Celaeno1)\
**Post date:** [January 2, 2019, 1:31pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/12 "2019-01-02T13:31:06Z")

</div>

> [@cweitkamp](#):
>
> No, a rule like in your example - without “PRESSED” - will work in the same way.

OK, thanks! 🙂

---

<div class="post-metadata">

**Author:** ![Celaeno1](https://community.openhab.org/user_avatar/community.openhab.org/celaeno1/32/55724_2.png) [@Celaeno1](https://community.openhab.org/u/Celaeno1)\
**Post date:** [January 3, 2019, 7:12pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/13 "2019-01-03T19:12:25Z")

</div>

@cweitkamp

> [@cweitkamp](#):
>
> I changed it for the Amazon Dash Button.

I’ve installed **2.5.0.201901020757** AmazonDashButton Binding.

Nothing happens when I press a Dash Button.

here is my .item

```
Switch Hue_Light3_Toggle "Licht Bibliothek An/Aus"	<light>	(GF_Biblio, Lights)	["Lighting"]	{channel="hue:0100:0017xxxxxxxxxx:8:brightness", channel="amazondashbutton:dashbutton:50-f5-da-xx-xx-xx:press" [profile="rawbutton-toggle-switch"] }

```

.  
.

In PaperUI there is also **no profile** to select in pull-down-menu:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/6/f/6f4248f70b062d84bdf5f19976aaa76ce8e32b2d.png)

Could be that it was merged after 7:57 h on 02. January 2019?

---

<div class="post-metadata">

**Author:** ![cweitkamp](https://community.openhab.org/user_avatar/community.openhab.org/cweitkamp/32/56864_2.png) [@cweitkamp](https://community.openhab.org/u/cweitkamp)\
**Post date:** [January 3, 2019, 8:47pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/14 "2019-01-03T20:47:00Z")

</div>

> [@Celaeno1](#):
>
> Could be that it was merged after 7:57 h on 02. January 2019?

Yes, I am pretty sure it was later. After lunch.

---

<div class="post-metadata">

**Author:** ![Celaeno1](https://community.openhab.org/user_avatar/community.openhab.org/celaeno1/32/55724_2.png) [@Celaeno1](https://community.openhab.org/u/Celaeno1)\
**Post date:** [January 3, 2019, 8:49pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/15 "2019-01-03T20:49:40Z")

</div>

> [@cweitkamp](#):
>
> Yes, I am pretty sure it was later. After lunch.

Ok. Thanks. I’ll wait for next build. #1487

Build is running at the moment…

[https://ci.openhab.org/job/PR-openHAB2-Addons/11843/](https://ci.openhab.org/job/PR-openHAB2-Addons/11843/)

It is change No. 41

---

<div class="post-metadata">

**Author:** ![cweitkamp](https://community.openhab.org/user_avatar/community.openhab.org/cweitkamp/32/56864_2.png) [@cweitkamp](https://community.openhab.org/u/cweitkamp)\
**Post date:** [January 3, 2019, 9:15pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/16 "2019-01-03T21:15:01Z")

</div>

Haha, 😃 … then you will have the chance to test it again tonight …

---

<div class="post-metadata">

**Author:** ![Celaeno1](https://community.openhab.org/user_avatar/community.openhab.org/celaeno1/32/55724_2.png) [@Celaeno1](https://community.openhab.org/u/Celaeno1)\
**Post date:** [January 4, 2019, 6:14pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/17 "2019-01-04T18:14:41Z")

</div>

@cweitkamp

Ok, I’m on **#1487** 🙂 (=2.5.0.201901040921 │ AmazonDashButton Binding)

I could test the profile now: [(item see here)](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/13)

```
19:10:26.405 [INFO] [smarthome.event.ChannelTriggeredEvent] - amazondashbutton: dashbutton:50-f5-da-xx-xx-xx:press triggered PRESSED
19:10:26.409 [INFO] [smarthome.event.ItemCommandEvent] - Item 'Hue_Light3_ Toggle' received command ON

```

.  
.

First impression: **it is running well.** 👍

---

<div class="post-metadata">

**Author:** ![Celaeno1](https://community.openhab.org/user_avatar/community.openhab.org/celaeno1/32/55724_2.png) [@Celaeno1](https://community.openhab.org/u/Celaeno1)\
**Post date:** [January 4, 2019, 6:31pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/18 "2019-01-04T18:31:26Z")

</div>

@cweitkamp

Btw, **all** my Dashbuttons now trigger the following event:  
.

```
19:10:26.405 [INFO] [smarthome.event.ChannelTriggeredEvent] - amazondashbutton: dashbutton:xx-xx-xx-xx-xx-xx:press triggered PRESSED

```

.

**Both rules** are running (new and old):

```
rule "My Dash Button pressed"
when
Channel "amazondashbutton:dashbutton:fc-a6-67-0c-aa-c7:press" triggered PRESSED

rule "My Dash Button pressed"
when
Channel "amazondashbutton:dashbutton:fc-a6-67-0c-aa-c7:press" triggered

```

.  
.  
OK. This will reduce my lines in the .rules file! Thanks a lot! 🙂

---

<div class="post-metadata">

**Author:** ![cweitkamp](https://community.openhab.org/user_avatar/community.openhab.org/cweitkamp/32/56864_2.png) [@cweitkamp](https://community.openhab.org/u/cweitkamp)\
**Post date:** [January 4, 2019, 7:11pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/19 "2019-01-04T19:11:09Z")

</div>

Great. Nice to hear 👍. To reduce code and effort for the user is the idea behind profiles.

---

<div class="post-metadata">

**Author:** ![Celaeno1](https://community.openhab.org/user_avatar/community.openhab.org/celaeno1/32/55724_2.png) [@Celaeno1](https://community.openhab.org/u/Celaeno1)\
**Post date:** [January 20, 2019, 4:45pm UTC](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885/20 "2019-01-20T16:45:58Z")

</div>

@cweitkamp

> [@cweitkamp](#):
>
> I changed it for the Amazon Dash Button.
> 
> [github.com/openhab/openhab2-addons](https://github.com/openhab/openhab2-addons/pull/4480)
> 
> [![cweitkamp](https://avatars0.githubusercontent.com/u/5131747?v=4) ](https://github.com/cweitkamp)
> 
> #### [[amazondashbutton] Changed trigger channel type to ‘system.rawbutton’ to allow the usage of the ‘rawbutton-toggle-switch’ profile](https://github.com/openhab/openhab2-addons/pull/4480)
> 
> by [cweitkamp](https://github.com/cweitkamp) on [12:15PM - 31 Dec 18 UTC](https://github.com/openhab/openhab2-addons/pull/4480)
> 
> **1 commits** changed **4 files** with **15 additions** and **12 deletions**.

.  
.

Btw, since I use **profile** I always get a **WARNING** at OH startup:  
.

```
2019-01-20 17:17:56.167 [WARN] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:Hue_Light2_Toggle". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!
2019-01-20 17:17:56.167 [WARN] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:Hue_Light3_Toggle". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"!

```

.  
.  
here are my **.items** :

```
Switch Hue_Light2_Toggle "Licht Windfang An/Aus" <light>	(GF_Corridor, Lights)	["Lighting"]	{channel="hue:0100:0017xxxxxxxxx:2:brightness", channel="amazondashbutton:dashbutton:18-74-2e-xx-xx-xx:press" [profile="rawbutton-toggle-switch"] }	
Switch Hue_Light3_Toggle "Licht Bibliothek An/Aus"	<light>	(GF_Biblio, Lights) ["Lighting"]	{channel="hue:0100:0017xxxxxxxxx:8:brightness", channel="amazondashbutton:dashbutton:50-f5-da-xx-xx-xx:press" [profile="rawbutton-toggle-switch"] }	

```

.  
.  
It seems to appear **ONLY** with **Hue** items:

See also here:

> [@\[SOLVED\] Cannot add "Metadata" with key "xxxxxxxx" on Multichannel Items](https://community.openhab.org/t/solved-cannot-add-metadata-with-key-xxxxxxxx-on-multichannel-items/62477):
>
> Hi Folks, i have recently changed some of my item configurations to Multichannel Items. Since those changes i have error messages in my openhab.log 2019-01-03 21:51:12.907 [WARN] [ore.common.registry.AbstractRegistry] - Cannot add "Metadata" with key "channel:LED\_SZ". It exists already from provider "GenericMetadataProvider"! Failed to add a second with the same UID from provider "GenericMetadataProvider"! 2019-01-03 21:51:12.908 [WARN] [ore.common.registry.AbstractRegistry] - Cannot add "M…

> [@\[OH 2.4.0 M6\] Testing Results](https://community.openhab.org/t/oh-2-4-0-m6-testing-results/57321/27):
>
> @ptweety, do these types of definition still work with M6? Color WZWL\_COLOR "Wand" { channel="hue:0210:0017884f6873:1:color,hue:0210:0017884f6873:37:color" } Switch F2WL\_TOGGLE "Flur 2.OG Ein/Aus" {channel="hue:0100:0017884f6873:6:brightness", expire="10m,command=OFF"}

[Next page](https://community.openhab.org/t/profile-for-an-item-which-is-not-linked-to-a-channel/61885.md?page=2)
