I defined Pimatic-filter devices for some measured weather conditions and display these variables in a VariablesDevice as shown:
{
"id": "anzeige_wetter",
"name": "Messwerte Wetter",
"class": "VariablesDevice",
"variables": [
{
"name": "Temperatur",
"expression": "$filter-wetter-t.temperature",
"type": "number",
"unit": "°C",
"label": "Temperatur",
"acronym": "T"
},
{
"name": "Feuchtigkeit",
"expression": "$filter-wetter-h.humidity",
"type": "number",
"label": "Luftfeuchtigkeit",
"acronym": "H",
"unit": "%"
},
{
"name": "Helligkeit",
"expression": "$helligkeit-aussen.helligkeitAussen",
"type": "number",
"unit": "%",
"label": "Helligkeit",
"acronym": "Li"
},
{
"name": "Luftdruck",
"expression": "$filter-wetter-p.pressure",
"unit": "mbar",
"type": "number",
"label": "Luftdruck"
},
{
"name": "Vorhersage",
"expression": "$td25MS.forecast",
"type": "string",
"label": "Vorhersage",
"acronym": " "
}
],
"xAttributeOptions": [
{
"name": "Temperatur",
"displaySparkline": false
},
{
"name": "Feuchtigkeit",
"displaySparkline": false
},
{
"name": "Helligkeit",
"displaySparkline": false
},
{
"name": "Luftdruck",
"displaySparkline": false
}
]
},
Humidity and air pressure are displayed with decimals. This is unusal and not necessary.
Is it possible to display these values as rounded integer values?