mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
Added fix suggested by Armilar
https://forum.iobroker.net/topic/50888/sonoff-nspanel/151
This commit is contained in:
@@ -447,7 +447,7 @@ function GenerateThermoPage(page: PageThermo): Payload[] {
|
||||
let name = page.items[0].name !== undefined ? page.items[0].name : o.common.name.de
|
||||
let currentTemp = 0;
|
||||
if (existsState(id + ".ACTUAL"))
|
||||
currentTemp = parseInt(getState(id + ".ACTUAL").val) * 10;
|
||||
currentTemp = (Math.round(parseFloat(getState(id + ".ACTUAL").val) * 10)/10)*10;
|
||||
|
||||
let destTemp = 0;
|
||||
if (existsState(id + ".SET")) {
|
||||
|
||||
Reference in New Issue
Block a user