Closed adb76 closed 7 years ago
I don't believe there's any code here for REST. This probably belongs in ESH.
Ok - sorry for opening the issues at the wrong place. So should we close it here and reopen it directly at ESH?
Regards.
I would recommend searching first to see if it's already been raised. But, yes, I think closing this and raising it elsewhere is the right way to go.
I frequently guess wrong when choosing which repository a bug needs to go to, so caveat emptor.
Closed and reopened at Eclipse Smarthome: https://github.com/eclipse/smarthome/issues/2788
I'm currently using openHAB 2 build #692 with the following items / map Definition (as also described here: https://community.openhab.org/t/mapping-of-item-values-not-correctly-shown-in-habpanel/19518)
de.map:
When I make a REST-Api call
http://homenuc:8080/rest/items/Wohnzimmer_Fenster1_OpenClosed/state
it returns always CLOSED respectively OPEN
When you call the item with
http://homenuc:8080/rest/items/Wohnzimmer_Fenster1_OpenClosed
returns the mapped value "zu" and "offen" beside the key "state":
The same also when calling it via a "sitemaps" call like:
http://homenuc:8080/rest/sitemaps/zuHause?jsoncallback=callback
On the "Event channel" it is also always "unmapped". This leads for example in HABpanel to the problem that the values are "jumping" between their mapped and unmapped representation dependent of the way the last call was made.
I would have had expected, that the values are always send in der mapped representations via the REST Api.
Kind regards,
André