I have spend much time to find out how UoM does work in HABPANEL.
Now I know there are restrictions. No problem.
This is only as documentation for other users who search for that.
I have spend much time to find out how UoM does work in HABPANEL.
Now I know there are restrictions. No problem.
This is only as documentation for other users who search for that.
There is another point:
in rules I can get the unit with
myItem.unit
in userdefined Widgets
{{itemUnit('myItem')}}
or
... ng-repeat="item in itemsInGroup('gTemp')">
{{item.unit}}
...
don’t work. Taking the second part of the item.state respectively itemValue is not a option, because there must not be a label or unit in the label for the item.
Same thing, that’s because in rules you’re accessing a real NumberItem object instance while HABPanel works with the REST API which offers only a subset of the information (specifically EnrichedItemDTO).
Then the RestAPI get /items/{itemname} sould be extended about UoM.
@ysc can you open a issue please