diff --git a/README.md b/README.md index 6214e22..82640e2 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,23 @@ This ioBroker adapter receives data from a Nibe heat pump from Nibe Uplink. If you (later) get a "400 bad request" error in the log, you must get a new Auth Code - so do numbers 13 until 15 and 18. +## Manage/Write Support + +It seems you can only change the parameters listet on the following web page: + +https://api.nibeuplink.com/docs/v1/Parameters (Settings section) + +The parameter "hot_water_boost" is parameter ID 48132. + +You can read other values but I think you can't write other values. Other values are here listed: + +https://github.com/sebilm/ioBroker.nibeuplink/blob/master/nibe-fetcher.js#L41 + ## Changelog +### 1.0.1 - 2021-12-31 +* Fix write support #6 + ### 1.0.0 - 2021-12-30 * Support to manage Nibe heat pump (write support #6) - You need to run the new version 30 minutes and then get a new AuthCode in the settings to use it! diff --git a/io-package.json b/io-package.json index dcff18c..5b61efc 100644 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,11 @@ { "common": { "name": "nibeuplink", - "version": "1.0.0", + "version": "1.0.1", "news": { + "1.0.1": { + "en": "Fix write support #6" + }, "1.0.0": { "en": "Support to manage Nibe heat pump (write support #6)" }, diff --git a/main.js b/main.js index a11c1cb..0af1f3c 100644 --- a/main.js +++ b/main.js @@ -414,9 +414,8 @@ class NibeUplink extends utils.Adapter { this.log.debug(`state ${id} changed: ${state.val} (ack = ${state.ack})`); let obj = await this.getObjectAsync(id); if (obj && obj.native && obj.native.parameterId && obj.native.deviceUnit) { - const val = obj.native.divideBy ? state.val * obj.native.divideBy : state.val; let params = {}; - params[obj.native.parameterId] = val.toString(); + params[obj.native.parameterId] = state.val.toString(); try { await this.fetcher.setParams(obj.native.deviceUnit, params); } diff --git a/package.json b/package.json index 9fe27af..1c27ad2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.nibeuplink", - "version": "1.0.0", + "version": "1.0.1", "description": "nibeuplink", "author": { "name": "Sebastian Haesselbarth",