When I choose a 'View in Widget 8' set some View's in the Attribute section (from [1] to [4]) no View is shown in the widget.
I have a DP that switches back and forth between the views controlled by a 'script'. The value of the DP also changes depending on the value form a Switch/Button.
No existing issues.
Describe the bug
When I choose a 'View in Widget 8' set some View's in the Attribute section (from [1] to [4]) no View is shown in the widget. I have a DP that switches back and forth between the views controlled by a 'script'. The value of the DP also changes depending on the value form a Switch/Button.
See also Post in Forum: https://forum.iobroker.net/topic/71786/vis2-ab-morgen-im-stable/229?_=1713765952271
Edit: And here Post from 2024-04-29
This behavior was confirmed in Post : https://forum.iobroker.net/topic/71786/vis2-ab-morgen-im-stable/234?_=1713765952271
I think the Problem is that in Vis-2 the Value-List starts with view number [1] but programm expects [0]
This is the only differenc between Vis-2 and Vis-1 (where it starts with number [0]) see attached ScreenShots
To Reproduce
see above
Edit: I reproduced the behavior by exporting the widget
[ { "tpl": "tplStatefulContainerView8", "data": { "bindings": [], "oid": "0_userdata.0.vis.viewnumber.nrVis2", "count": 5, "g_common": true, "contains_view_1": "Startseite", "g_views": true, "contains_view_2": "Kueche" }, "style": { "bindings": [], "left": "170", "top": "230", "width": "1250", "height": "720" }, "widgetSet": "basic", "_id": "i000001" } ]
addded the following line in the widget --> "contains_view_0": "Startseite",
[ { "tpl": "tplStatefulContainerView8", "data": { "bindings": [], "oid": "0_userdata.0.vis.viewnumber.nrVis2", "count": 5, "g_common": true, "contains_view_0": "Startseite", "contains_view_1": "Startseite", "g_views": true, "contains_view_2": "Kueche" }, "style": { "bindings": [], "left": "170", "top": "230", "width": "1250", "height": "720" }, "widgetSet": "basic", "_id": "i000001" } ]
import the widget and the View Startseite is shown
Expected behavior
Show View in Widget
Screenshots & Logfiles
Screenshot from Widget VIS-2 :
and Screenshot from Widget VIS-1:
Page or affected widget
No response
Adapter version
2.9.50
js-controller version
5.0.19
Node version
v18.19.0
Operating system
Synology Docker latest Version
Additional context
No response