Files
HA-NerdFlows-Functions/kallen-timer/rounding.js

7 lines
141 B
JavaScript

const readout = msg.duration
msg.duration = +readout.toFixed(0)
node.status({fill:"green",shape:"dot",text:msg.duration + "m"})
return msg