diff --git a/main.js b/main.js index 908e298..72b3a4a 100644 --- a/main.js +++ b/main.js @@ -346,8 +346,8 @@ sendDevicestate(deviceid,devicestate) { '.'+ JSON.stringify(key_sub5); otherstates = otherstates.replace(/["]/g, ""); - - this.Dataset(otherstates, obj_sub5.replace(/["]/g, "")); + this.Dataset(otherstates, obj_sub5.value); + //this.Dataset(otherstates, obj_sub5.replace(/["]/g, "")); } @@ -390,4 +390,4 @@ if (module.parent) { } else { // otherwise start the instance directly new Bjfreeathome(); -} \ No newline at end of file +}