You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a widget (see in video "Angeschaltene Lampen") that shows lamps that are switched on. And it is also possible to switch off the lamps.
Whenever a lamp is switched of via this UI / widget, the item is no longer shown in the widget (thats correkt)
But now openhab tries to show the switch state as off - but applies this state for the wrong item. You can see it in the video - after switching off a lamp the next lamp gets the wrong state (but it still is switched on as you can see after reloading the ui view ion the browser)
The problem
There seems to be a bug in UI / widgets.
I have a widget (see in video "Angeschaltene Lampen") that shows lamps that are switched on. And it is also possible to switch off the lamps.
Whenever a lamp is switched of via this UI / widget, the item is no longer shown in the widget (thats correkt)
But now openhab tries to show the switch state as off - but applies this state for the wrong item. You can see it in the video - after switching off a lamp the next lamp gets the wrong state (but it still is switched on as you can see after reloading the ui view ion the browser)
I recorded a video to show the problem: http://ifs-net.asuscomm.com/temp/oh-widget.mp4
My widget code:
`uid: lights_on_switches_dimmer
tags:
props:
parameters:
label: Text as title
name: prop1
required: false
type: TEXT
description: Group to show for Switches
label: Group Item
name: groupToShowSwitches
required: false
type: TEXT
description: Group to show for Dimmer
label: Group Item
name: groupToShowDimmer
required: false
type: TEXT
label: Text as footer
name: propFooter
required: false
type: TEXT
parameterGroups: []
timestamp: Apr 7, 2023, 4:56:51 PM
component: f7-card
config:
footer: =props.propFooter
style:
border-radius: var(--f7-card-expandable-border-radius)
box-shadow: var(--f7-card-expandable-box-shadow)
title: =props.prop1
slots:
default:
slots:
default:
- component: oh-repeater
config:
filter: items[loop.switchitem.name].state == "ON"
for: switchitem
fragment: true
groupItem: =props.groupToShowSwitches
sourceType: itemsInGroup
slots:
default:
- component: oh-toggle-item
config:
color: '=(items[loop.switchitem.name].state == "ON") ? "green" : "red"'
icon: oh:light
iconColor: '=(items[loop.switchitem.name].state == "ON") ? "green" : "red"'
item: =loop.switchitem.name
title: =loop.switchitem.label
- component: oh-repeater
config:
filter: items[loop.dimmeritem.name].state > 0
for: dimmeritem
fragment: true
groupItem: =props.groupToShowDimmer
sourceType: itemsInGroup
slots:
default:
- component: oh-slider-item
config:
color: '=(items[loop.dimmeritem.name].state > 0) ? "green" : "red"'
icon: oh:light
iconColor: '=(items[loop.dimmeritem.name].state > 0) ? "green" : "red"'
item: =loop.dimmeritem.name
title: =loop.dimmeritem.label
`
Widget inclusion at overview page:
component: widget:lights_on_switches_dimmer config: groupToShowDimmer: gruppeLichtAlleDimmer groupToShowSwitches: gruppeLichtAlleSwitch prop1: Angeschaltene Lampen
Expected behavior
The state of items is shown correctly
Steps to reproduce
See code snipets
Your environment
runtimeInfo:
version: 4.1.1
buildString: Release Build
locale: de-DE
systemInfo:
configFolder: /openhab/conf
userdataFolder: /openhab/userdata
logFolder: /openhab/userdata/logs
javaVersion: 17.0.9
javaVendor: Debian
osName: Linux
osVersion: 4.4.302+
osArchitecture: amd64
availableProcessors: 4
freeMemory: 240741336
totalMemory: 1098907648
uptime: 2125674
startLevel: 70
addons:
clientInfo:
device:
ios: false
android: false
androidChrome: false
desktop: true
iphone: false
ipod: false
ipad: false
edge: false
ie: false
firefox: false
macos: false
windows: true
cordova: false
phonegap: false
electron: false
nwjs: false
webView: false
webview: false
standalone: false
os: windows
pixelRatio: 1
prefersColorScheme: light
isSecureContext: false
locationbarVisible: true
menubarVisible: true
navigator:
cookieEnabled: true
deviceMemory: N/A
hardwareConcurrency: 16
language: de-DE
languages:
onLine: true
platform: Win32
screen:
width: 1920
height: 1200
colorDepth: 24
support:
touch: false
pointerEvents: true
observer: true
passiveListener: true
gestures: false
intersectionObserver: true
themeOptions:
dark: light
filled: true
pageTransitionAnimation: default
bars: filled
homeNavbar: default
homeBackground: default
expandableCardAnimation: default
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/123.0.0.0 Safari/537.36
timestamp: 2024-04-12T07:00:22.948Z
The text was updated successfully, but these errors were encountered: