ich habe ein Problem in einen Widget. Aber ich komme nicht drauf was da los ist.
Ich möchte eine F7 Gauge. Script hab ich mir hier genommen. https://github.com/BangerTech/openHAB3W ... t-Big.yaml
Leider zeigt es mir immer quasi 0% an. der Semicircle ist immer grau markiert. Egal welcher Wert im Number Item steht.
Code: Alles auswählen
- component: f7-gauge
config:
border-color: lime
style:
position: absolute
width: 100px
type: semicircle
min: 0
max: 100
value: '=props.progressitem ? (items[props.progressitem].state == "NULL" ? 0 : Math.floor(items[props.progressitem].state / 100)) : 0'
value-text: '=props.progressitem ? (items[props.progressitem].state == "NULL" ? "0 %" : items[props.progressitem].state + " %") : "0"'
value-text-color: red
[attachment=0]Screenshot 2024-03-03 194612.png[/attachment
Code: Alles auswählen
value: '=props.progressitem ? (items[props.progressitem].state == "NULL" ? 0 : Math.floor(items[props.progressitem].state)) : 0'
Danke
Gruß Lenschi