extended domotictz.js for trial