Closed NikolayKash closed 1 year ago
@ghys, could you please take a look on this?
This is the relevant code, when an item has state options the series is considered "discrete": https://github.com/openhab/openhab-webui/blob/b47ed942e6327b2e1ec30e6032a1478d2ebf1b69/bundles/org.openhab.ui/web/src/pages/analyzer/analyzer.vue#L352 The idea was that it would be represented as colored areas on the chart, one color by value, but this ended only implemented for "ON" and "OPEN" states being rendered as an area, not generic states.
@ghys, thanks! is there any plan to change it for dimmer type?
I wouldn't mind having the options ignored for now, but only while the "discrete" graphs are not implemented (would resemble something like https://echarts.apache.org/examples/en/editor.html?c=custom-profile&reset=1&edit=1 somehow merged with the usual line charts). Ultimately defining options should mean that you expect such a chart with colored rectangles, each color representing a different option.
I have a Dimmer item where I set state description metadata like
Values are stored in DynamoDB
When I try to analyze this item, Analyzer view does not show anything
like:
When I remove stateDescription metadata, it shows raw values as expected
Expected behavior
Analyzer should show values as defined in stateDescription or raw values
Steps to reproduce
Your environment
Browser console
As I see it retrives item info as well data from persistence correctly.
Browser network traffic
Additional information