I moved to openhab 3.1.0 M2 and the issue is gone. I will test it for couple hours and then I can report the result. I am currently not sure if this issue caused by the widget, opnehab or knx binding.
issue still exist - please find the item Change below:
Item 'ActualTemp_Buero' changed from 19.2 °C to 19.400000000000002 °C
Item 'ActualTemp_Flur' changed from 18.900000000000002 °C to 19.0 °C
Item 'ActualTemp_Kueche' changed from 19.8 °C to 19.900000000000002 °C
I wondering why the temperature change to the huge number of digits, in the Item definition it is limited to one digit - %.1f. Is this an issue which caused by the KNX binding?
thank you very much for this great work. Did you ever considered using some kind of mapping for the heatingModeItem/exampleModeItem?
My heating e.g. only accepts numbers as input/output. I use standard widgets combined with command options and state description in order to map this to strings (0=Auto,1=Manuel). With the exampleModeItem it is the same (1=Standard,2=Vacation,3=Third option)
I am happy with my solution, but yours is definitely (very much) superior and if you find a possibility for the mapping, your solution would be universal.
your widget is too complex for me to do it directly, but here is an example how it could work:
uid: TestPK
tags: []
props:
parameters:
- description: The Name of the Test
label: Name
name: nameTest
required: false
type: TEXT
groupName: heatingMode
parameterGroups:
- name: heatingMode
context: action
label: Heating Mode Action
timestamp: Mar 16, 2021, 8:34:03 PM
component: f7-card
slots:
content:
- component: oh-label-card
config:
title: ="The current State is " + items[props.heatingMode_actionItem].state
actionPropsParameterGroup: heatingMode
item: =(props.heatingMode_actionItem)
footer: ="For the choice of the Icons you could use, that the first actionOption is " + props.heatingMode_actionOptions.split(',')[0].split('=')[0] + "; the second is " + props.heatingMode_actionOptions.split(',')[1].split('=')[0] + "... and so on"
I see that your widget is using an attribute called “stylesheet” but I guess this is not supported yet? I’m looking for a way to add custom css for certain classes but did not find a way yet…
I have the same problem with the display of the widget as Lyann.
It also doesn’t matter which web browser I use (Firefox, Chromium and Edge - all up to date).
I also run Openhab 3.0.2 …