Transformed strings from Openhab are not shown correctly in Value widget

release-beta11
openhab

#1

@igor

Why is HomeHabit (like rotini before) ignoring my translation in strings?

I am using openhab transformation services
My openhab sitemap shows the correct way, only homehabit is ignoring this.


Language support
#2

@Boogieman Openhab data comes from items, not sitemaps, so transformations do not apply to items.


#3

Exactly…

For example i am using items like this:

String testitem "Testitem [MAP(translation.map):%s]" {binding}

translation.map for example:

-=undefiniert
OPEN=Offen
CLOSED=Geschlossen

So the translation should be shown ?!
Or am I wrong?


#4

In this particular case, if this is used as contact sensor, then the app UI has its own text for open/closed state.
Transformed strings might be possible to use but only in certain case, like in widgets that show value as is such as Value widget, but I don’t think this is what you are looking for.


#5

That is exactly what I want. Open/Close was only an example. I know that there are sensor Widgets.
I want to use this translation in value widgets, but it doesn’t work. It stays in the original value and not in translation.


#6

Got it. Let me see what can be done about that.

(Going to move last few posts into separate thread)


#7

Is there something new about this or multilanguage support at all?


#8

@igor
Something new about this or a multilanguage Support?


#9

Not yet :confused: Multi-language support is still on a backlog.
Transformed strings have been attempted but it just didn’t fit into the way data is processed in HomeHabit at that time. It should be revisited due to some changes in data processing that are being implemented right now. Will update soon.


#10

Good news! Transformed strings processing is possible now and has been implemented for the next release.


#11

Fix is now available on a beta channel.


#12

@igor great News for me, will try it as soon as possible.

Available on a beta channel? Sorry for that stupid question, but what does that mean? Can I do a normal app update to get it?


#13

Yes, if in Play Store listing you enrolled as “beta tester”, you’d get versions sooner before official release. Those versions might be less stable.


#14

@igor Tried it, sorry to say that, nur its not working.
In dropdown menu to select the value translation is shown, but the widget shows still the original text.
Even creating the widget new didnt solve the Problem.



#15

What is the item type? Is it Text? It might be getting confused which state to take in a widget.
I believe other item types should work. Meanwhile, I will check on Text items.


#16

its a String item


#17

Now I tried a switch item, and this is fully working
@igor
Contact items are working too


#18

@igor
Did you find a solution for the Text items?


#19

Yes, it is being implemented now. Should be available soon.


#20

@igor
Map transformation still not working on latest update for text (String) items :sleepy: