[SOLVED] MQTT - Change Contact value in Classic UI

  • Platform information:

    • Hardware: x64/16GB RAM
    • OS: Windows 8.1
    • Java Runtime Environment: 1.8.0_181
    • openHAB version:2.4.0
  • Issue of the topic:
    Hi, I’m using MQTT to show on sitemap the status of my home power contact (OPEN/CLOSED). I’ve also add custom icon (for OPEN and CLOSED state).

I need to change the description that appear in Classic UI:

  • aperta instead of OPEN

  • chiusa intesad of CLOSED

    • Items configuration related to the issue
      Contact Corrente “Corrente” (FamilyRoom, gStatus) {channel=“mqtt:topic:plc:mydev:corrente”}

    • Sitemap configuration related to the issue
      sitemap fadhouse label=“FadHouse” {
      Frame {
      Group item=FamilyRoom

    • Things configuration related to the issue
      Bridge mqtt:broker:plc [ host=“”, secure=false ]
      Thing topic mydev {
      Type contact: corrente “Corrente” [stateTopic=“corrente/enabled”]

How can I do?
I try to add MAP to items configuration but it doesn’t work.


I’ve solve using MAP in sitemap

Text item=Corrente label=“Corrente [MAP(corrente.map):%s]”