ioBroker / ioBroker.vis-2

Next generation visualisation for ioBroker platform.
Other
26 stars 3 forks source link

Basic Bar Widget - Bindings do not update in VIS runtime #153

Closed MK-66 closed 6 months ago

MK-66 commented 6 months ago

Describe the bug
With the Basic Bar widget, the bindings in the widget do not update when the page is loaded in VIS runtime resp. are not up to date.

Only when the data point of the binding is updated again in the course of time by an adapter or similar (after the page has been loaded), the binding then is also up-to-date in the runtime.

In the Binding Editor the "Calculated value: green" is displayed correctly , but not in the VIS runtime when the page is loaded.

With a normal Basic HTML Widget bindings work correctly, so far I have only noticed this error with the Basic Bar Widget, regardless of whether it is a binding in the colour field or in the min. max. field.

Expected behavior
Bindings should be analysed immediately when the page is loaded, not only when the binding data point is updated.

Screenshots

Basic Bar Widget - VIS Editor Basic Bar Widget

Basic Bar Widget - Binding Editor Basic Bar Binding4

Basic Bar Widget - VIS Runtime Basic Bar Runtime

Versions:

Additional context
This error in the bindings of the basic bar widget was also present in previous versions.

MK-66 commented 6 months ago

V2.5.0 - Basic Bar Widget - Bindings no longer work at all

In new Version VIS V2.5.0 the bindings of the Basic Bar Widget no longer work at all. In the Binding Editor "Calculated value" is displayed correctly, in the Editor or the Runtime it is unfortunately displayed incorrectly resp. is no longer evaluated at all. Even after updating the data point from the binding, this remains displayed incorrectly and does not change.

Bindings no longer work at all in the Basic Number widget either.

I'll have a look to see which widgets are also affected by the bindings that no longer work.

foxriver76 commented 6 months ago

This is still a problem with 2.6.0 I guess?

MK-66 commented 6 months ago

@foxriver76 Yes, you are right. Bindings in "normal" widgets work again with V2.6.0, but the problem with the basic bar widgets described in my first post still exists with V2.6.0.

foxriver76 commented 6 months ago

Dev note: The bindings are correctly calculated, but somehow he often does not update the widget. As this is a old widget, we should migrate it first, maybe bug is then fixed anyway.

MK-66 commented 6 months ago

@foxriver76 Ok, would be great if I could get a message when the old Basic Bar Widget is migrated so that I could test it on my VIS-2.

foxriver76 commented 6 months ago

Please try with 2.7.0

MK-66 commented 6 months ago

@foxriver76 Great work, Basic Bar Widget now works, with V.2.7.0, thank you very much!