-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write raw timetables #38
Comments
just to start and stop zip --> switch timertable ZIP active //ID_Einst_SuZIPWo_zeit_0_0 Time on //ID_Einst_SuZIPWo_zeit_0_1 Time off 'hotWaterCircPumpOnTime'': { ZIP off //ID_Einst_SuZIPWo_zeit_0_0 Time on //ID_Einst_SuZIPWo_zeit_0_1 Time off |
@TbsJah The mentioned example was only a idea how a "perfect user abstraction" could look like. So, did you finally resolve the issue? I am personally using the following RAW parameter to control the circulation pump:
|
Would it be possible to give me an example how to use the possibility with the "raw parameters"? I do not understand how to integrate this code in the example.js. The following code does not function: pump.write( { I'm sure this is false. Could you give me a hint? |
Thank you for the explanation. I installed node red and I could reproduce what you did. I thought that the example refers to the version that works with node.js (there is another version for the use with node red: https://github.com/coolchip/node-red-contrib-luxtronik2). Is it right that you can write these raw values only with the node red version of this code? When I want to change the times of my zirculation pump then I have to use node red, right? I am trying to set up a smart home with openHAB and it would have been fine to use the node.js version to manipulate the times of the ZIP (unfortunately, the binding luxtronik2 of openHAB does not support to change times of the ZIP). There was a plugin for node red for an older version of openHAB (version 3), in the version 4 this is no longer available. |
@Dagobert57 The Node-RED module is "just" a wrapper around the node.js package. So it should be possible to use the
The Node-RED wrapper is calling the exact same API and passes |
Many thanks for your reply. Unfortunately, in the last two months I was not able to make more tests due to other obligations. I would be happy if you could look at it again. When I modify the example.js that comes with the package as follows: const luxtronik = require('./luxtronik');
const pump = luxtronik.createConnection('192.168.178.37', 8889);
pump.prototype.writeRaw = function (507, 32400, function (err, data) {
if (!err) {
console.log(data);
}
}) I get this error message:
The same error occurs when I change to '507'. what am I doing wrong here? |
You don't call a function, you need to define / provide the function.
The anonymous function is then called with the listed parameters and can then do the writing. |
@Dagobert57 const luxtronik = require('./luxtronik');
const pump = luxtronik.createConnection('192.168.178.37', 8889);
pump.prototype.writeRaw(507, 32400, function (err, data) {
if (!err) {
console.log(data);
}
}); |
I tested your example, but I get this error message:
In the meantime I found another solution that works. In Openhab I write the value for the ZIP, e.g. 32400 in the MQTT Broker. Via node-red I read this value and write it in the luxtronik. A bit fiddly, but it works. |
How to use "Support RAW write operations #20"
How can i change the timer tables for circpump?
Example has no effect
const circPumpTimerTable = [ {on: "07:30", off: "11:00"}, {on: "14:00", off: "22:00"} ];
pump.write("hotWaterCircPumpTimerTableWeek", circPumpTimerTable);
The text was updated successfully, but these errors were encountered: