Where can I set the decimal and the thousand separator?
Readings like 17.429 kWh are really confusing when 17,4 kWh is meant!
Where can I set the decimal and the thousand separator?
Readings like 17.429 kWh are really confusing when 17,4 kWh is meant!
I don’t think you can…
But you mean 17.429 kWh versus 17,429 kWh I assume ?
More frustrating is you háve to use a dot in decimals like 1.5 in a lot of places, but then when you save it is automaticly changed to 1,5
Big chance you use a comma when you want to edit the number !
Yes, but just to show that 3 decimals behind a dot makes the dot look like a thousands separator.
I will contact Athom.
you could use HomeScript like:
// Keep raw number, format for display only
const kwh = 17.429;
const formatted = kwh.toLocaleString('en-US', {
maximumFractionDigits: 3,
minimumFractionDigits: 3
}); // "17.429"
await log(formatted + ' kWh');
or use
function toDotDecimal(input) {
if (typeof input === 'number') return input;
// Handle both NL ("17,429") and US ("17.429") + thousands
return parseFloat(
String(input)
.replace(/\./g, '') // Remove all dots (thousands separators)
.replace(',', '.') // Convert comma to dot (decimal)
);
}
It is all over the place, also in standard tiles.
.. very annoying indeed and it shouldn’t be like this, but for the time being maybe a script that you can call would be a plaster on the wound?