i have some dummy-widgets on my panel and have checked the “use server provided format if available”.
If the panel is loaded for the first time, the values gets transformed correctly. But after a few seconds, the values change to the native-item-values.
E.g.:
Number Heizung_Programm "Heizung Programm: [MAP(Heizung.map):%s]" (Heizung) {ebus="id:auto_stroker.status_heater_program"}
Heizung.map:
0=Aus
85=Heizung
187=Brauchwasser
OFF=Aus
ON=An
If the panel is initially loaded, the dummy-widget shows “Heizung”. A few seconds later (backgound-refresh) it shows “85”.
It seems the items API (called initially) returns the state after performing the transformation but the SSE event (for real-time updates) sends the raw state.
Most likely an ESH bug, you should check at http://github.com/eclipse/smarthome if there’s any issue related to this and open one if necessary.
As you see, that ticket was closed with code merged in. As it was fixed and you still seem to be having the problem, what version of openHAB are you running? You might need to upgrade to receive the fix.
im running Snapshot #603. So the fix should be included, but the problem still exists.
It makes no difference if i use JS or Map-Transformation.
I checked the values in the chrome-debugger. On initial loading the item.state includes the transformed value.
Then the registerEventSource()-Function is called and the payload.value includes the non-transformed value. The item.state is then set to item.payload.