Chroma
(Chroma)
February 18, 2019, 10:08pm
1
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
vzorglub
(Vincent Regaud)
February 19, 2019, 8:28am
2
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.
Chroma
(Chroma)
February 19, 2019, 8:59pm
3
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]”
}
}
The Door ist still CLOSED, but not zu…
Any further ideas what to check?
Thanks,
Christian
Chroma
(Chroma)
February 23, 2019, 10:02am
5
Hi rossko57,
I was already facepalming, but removing the spaces (+restart) did not fix it…
Any other suggestion?
Thx,
Christian
rossko57
(Rossko57)
February 23, 2019, 10:52am
6
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.