Problem with Map, deconz and Mi door sensors

  • Platform information:
    • Hardware: Raspi 3+, raspbee
    • OS: Raspbian lite
    • Java Runtime Environment: openjdk 1.8.0_152
    • openHAB version: 2.5.0~S1502-1

Hi,
I was pretty successful in the last weeks getting the deconz binding to work with XiaoMi and Philips sensors. Right now, everything works fine, so its time for finetuning.

I am trying to transform the status of the Mi window sensor from OPEN/CLOSED to something like “offen/zu” as I am German…

The sensor itself is working just fine, the status is shown in Paper UI and a rule based on it changes the light in the storage cabinet.

From deconz thing
openclosesensor office-door1 “Tür Abstellkammer” @ “Abstellkammer” [ id=“7” ]

From deconz.item
Contact Door1 “Tür ist [MAP(tuer.map):%s]” {channel=“deconz:openclosesensor:homeserver:office-door1:open”}

From tuer.map
CLOSED =zu
OPEN =offen
NULL=undefiniert

The status is shown just fine, but its “Tür ist CLOSED” or “Tür ist OPEN”- so obviously the mapping is not working yet.

Any idea what is wrong? Same syntax seems to work on the Astro binding ?!?

Thanks,
Christian

In which UI?
PaperUI is a debug, setup and maintenance interface.

Is you set-up a sitemap or HABpanel, you will you item to display correctly.

Hi Vincent,

Sorry for missing that detail - it is indeed PaperUI that I am using so far, valid point.

So I just installed Habmin and added this sitemap:

sitemap deconz label=“Deconz Items” {
Frame label=“Abstellkammer” {
Text item=Door1 label=“Die Tür ist sowas von [MAP(tuer.map):%s]”
}
}

:frowning: The Door ist still CLOSED, but not zu…

Any further ideas what to check?

Thanks,
Christian

No spaces

Hi rossko57,

I was already facepalming, but removing the spaces (+restart) did not fix it…

Any other suggestion?

Thx,
Christian

I’d check the tuer.map file character encoding to be the same as working example, and location /conf/transforms, and lowercase of filename.

You shouldn’t need to specify both Item label and sitemap label, though that shouldn’t be a problem. Sitemap “wins”.

I guess you looked in openhab.log for clues when you display the sitemap in UI.