Network UPS Tools (nut) setup issues

/etc/openhab2/transform/duration_from_seconds.js:

// computes nicely formatted duration from given seconds
(function(i){

        var date = new Date(null);
        date.setSeconds(parseInt(i)); // specify value for SECONDS here
        return date.toISOString().substr(11, 8);

})(input)

:laughing:

2 Likes