Hello,
I have a question regarding the representation of mapped values in HABpanel:
In my items file I have defined the following items:
Contact Wohnzimmer_Fenster1_OpenClosed "Wohnzimmerfenster 1 [MAP(de.map):%s]" (Wohnzimmer, Wohnung_Fenster) { channel="max:shuttercontact:NEQ0897054:LEQ0791036:contact_state" }
Contact Wohnzimmer_Fenster2_OpenClosed "Wohnzimmerfenster 2 [MAP(de.map):%s]" (Wohnzimmer, Wohnung_Fenster) { channel="max:shuttercontact:NEQ0897054:LEQ0790888:contact_state" }
To map the results to german I have defined in de.map the following translation, which works fine in BasicUI:
CLOSED=zu
OPEN=offen
In a HABPanel template I defined (the both items above are in the group âWohnung_Fensterâ):
<div class="row" ng-repeat="item in itemsInGroup('Wohnung_Fenster')">
<div class="col-xs-8 text-right">{{item.label}}</div>
<div class="col-xs-4 text-left" ng-style="{ color: itemValue(item.name)=='offen' ? 'red':'green' }">
{{itemValue(item.name)}}
</div>
</div>
When I start now HABpanel I get the following result - what seems to be ok:
Now I open a window which leads to:
this is strange because after a page refresh I get:
When looking into the debug log in the browser after opening the window I see indeed, that the state changes form âzuâ to OPEN (and than again from OPEN to OPEN ?) but not to the expected translated value âoffenâ:
Is this âworks as designedâ or did I made a mistake?
Many thanks in advance for your support.