Zefau / ioBroker.jarvis

jarvis - just another remarkable vis
https://forum.iobroker.net/topic/49776
Other
147 stars 38 forks source link

Datenpunkt Formatierung z.B. via properties.value : "val=>val.toFixed(2)" klappt nicht mit "actionElement": "InputAction" #2656

Open Coalado opened 3 weeks ago

Coalado commented 3 weeks ago

Ich habe folgenden Datenpunkt in einer Statelist:

  "requestedLiter": {
        "_updated": 1717926081246,
        "_created": 1717926081246,
        "stateKey": "requestedLiter",
        "label": "Wasser anfordern",
        "showState": false,
        "state": "mqtt.1.waterbox3.relais.hecke.requestedLiter",
        "unit": "L",
        "icon": "water",
        "properties": {
          "value": "val=>val.toFixed(2)"
        },
        "actionElement": "InputAction"
      },

Durch "actionElement": "InputAction" habe ich in der Statelist ein Eingabefeld (und im Popup).

Die Formatierung "value": "val=>val.toFixed(2)" funktioniert allerdings nicht im Eingabefeld.