# Profile with MQTT2

**URL:** <https://community.openhab.org/t/profile-with-mqtt2/64723>\
**Category:** Items & Sitemaps\
**Created:** [January 18, 2019, 8:40pm UTC](https://community.openhab.org/t/profile-with-mqtt2/64723 "2019-01-18T20:40:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![furax54](https://community.openhab.org/user_avatar/community.openhab.org/furax54/32/70835_2.png) [@furax54](https://community.openhab.org/u/furax54)\
**Post date:** [January 18, 2019, 8:40pm UTC](https://community.openhab.org/t/profile-with-mqtt2/64723/1 "2019-01-18T20:40:08Z")

</div>

Actually I have rules for light but I want to try profile feature but actually I can’t get it work.  
This is my 2 items :

```csv
Dimmer MilightBureau_Level "Niveau plafonnier Bureau" (gBureau) {channel="espmilighthub:rgbw:001:0xb58d2:level", channel="mqtt:topic:mosquitto:objets:Bureau_Interrupteur" [profile="follow"]}
Switch Bureau_Interrupteur "Interrupteur du Bureau" (gInterrupteurs, gBureau) {channel="mqtt:topic:mosquitto:objets:Bureau_Interrupteur" }

```

But when I toggle button I can only see Bureau\_Interrupteur changes in log.

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [January 19, 2019, 4:32am UTC](https://community.openhab.org/t/profile-with-mqtt2/64723/2 "2019-01-19T04:32:20Z")

</div>

According to the docs the follow Profile causes one Item to follow the state of another **Item** , not another channel link.

I think you need to provide the other Item as an argument. unfortunately I don’t know the name of the argument. I’d guess it’s be named “item”.

```
[profile="follow", item="ItemToFollow"]

```

This means the other channel will have to be linked to a different Item.

---

<div class="post-metadata">

**Author:** ![furax54](https://community.openhab.org/user_avatar/community.openhab.org/furax54/32/70835_2.png) [@furax54](https://community.openhab.org/u/furax54)\
**Post date:** [January 19, 2019, 4:03pm UTC](https://community.openhab.org/t/profile-with-mqtt2/64723/3 "2019-01-19T16:03:02Z")

</div>

It doesn’t work !  
But are you sure we have to add a item to follow. According to smarthome doc, my first syntax seems to be correct : [Archived Projects | The Eclipse Foundation](https://www.eclipse.org/smarthome/documentation/development/bindings/profiles.html#followprofile)

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [January 19, 2019, 4:14pm UTC](https://community.openhab.org/t/profile-with-mqtt2/64723/4 "2019-01-19T16:14:53Z")

</div>

I think I miss read the docs on the openHAB side.

I’ve not used follow yet so I don’t have any ideas eject to check events.log to see the events.

---

<div class="post-metadata">

**Author:** ![metin](https://community.openhab.org/user_avatar/community.openhab.org/metin/32/17912_2.png) [@metin](https://community.openhab.org/u/metin)\
**Post date:** [January 31, 2019, 6:42pm UTC](https://community.openhab.org/t/profile-with-mqtt2/64723/5 "2019-01-31T18:42:27Z")

</div>

Have you been successful? It looks like I’ve run into the same or at least very similar question ([see here](https://community.openhab.org/t/connecting-items-over-mqtt2-how-is-it-intended-to-work/66207)). The follow profile does not work or works different from what I understand from the docs (the latter being more probable, I guess).

---

<div class="post-metadata">

**Author:** ![furax54](https://community.openhab.org/user_avatar/community.openhab.org/furax54/32/70835_2.png) [@furax54](https://community.openhab.org/u/furax54)\
**Post date:** [January 31, 2019, 9:50pm UTC](https://community.openhab.org/t/profile-with-mqtt2/64723/6 "2019-01-31T21:50:32Z")

</div>

No it doesn’t work as excepted… Perhaps @David_Graeff can help us ? or @Kai ?

---

<div class="post-metadata">

**Author:** ![metin](https://community.openhab.org/user_avatar/community.openhab.org/metin/32/17912_2.png) [@metin](https://community.openhab.org/u/metin)\
**Post date:** [February 1, 2019, 11:17am UTC](https://community.openhab.org/t/profile-with-mqtt2/64723/7 "2019-02-01T11:17:33Z")

</div>

Have you tried it with profile _default_? I found that this works best, yet unfortunately not in all cases.
