Comments (3)
double checked my version bx controller is 00_0010_7421_10_0100_052_2_0 => 2.0.1, that menu file doesn't include idHash
from resol-vbus.
I clearly misunderstood the documentation if i use the index and not the IdHash i have a working system!
Thank you Daniel for this great library!! 5 sunny days coming up, couldn't be more pleased, i can now now 'red node script' my valve to pass the central heating through the sun boiler if warm enough, instead of using the heat pump. One for the planet!
client.on('message', (topic, payload) => {
// Received Message: vbus/set
// on { "hashId": 369, "value": 1 } handbediening R2
// off { "hashId": 369, "value": 2 } handbediening R2
logger.debug('Received Message: ' + topic + " " + payload.toString());
const req = JSON.parse(payload);
logger.debug('hashId: ' + req.hashId + " requested value: " + req.value);
//waiting for the bus offering to get the address of the master device connected to the VBus
const dgram = connection.waitForFreeBus(20000);
//logger.debug('waitForFreeBus -> ' + dgram );
dgram.then(datagram => {
logger.debug('in result -> ' + JSON.stringify(datagram));
if (datagram != null) {
const deviceAddress = datagram.sourceAddress;
// R2 --> on = 1 {"destinationAddress":32,"sourceAddress":29729,"minorVersion":0,"timestamp":"2022-03-03T15:06:09.636Z","command":256,"valueId":369,"value":1,"channel":0}
// R2 --> off = 2 ->{"destinationAddress":32,"sourceAddress":29729,"minorVersion":0,"timestamp":"2022-03-03T15:00:32.616Z","command":256,"valueId":369,"value":2,"channel":0}
/*connection.getValueIdHashById(deviceAddress, 369).then(result => {
logger.debug('in result 3!!!!-> ' + JSON.stringify(result) + ' Jos' );
connection.releaseBus(deviceAddress);
}); */
connection.setValueById(deviceAddress, req.hashId, req.value ).then(result => {
logger.debug('setting ' + JSON.stringify(result));
connection.releaseBus(deviceAddress);
});
}
});
})
from resol-vbus.
Thanks for the kind word and glad you got it working!
from resol-vbus.
Related Issues (20)
- Where to edit tthe config.js file? HOT 2
- USB Erkennung HOT 17
- Direktes Auslesen per Uart HOT 4
- errror HOT 3
- Missing Documentation for example/json-live-data-server HOT 1
- Setup adapter showing multiple subfolder; addtl. parameter from Controller DeltaMX available? HOT 1
- Error: Cannot find module 'fs/promises' HOT 4
- Integrate em-simulator into json-live-data-server HOT 4
- Error: "Unhandled promise rejection" in serial-connection.js HOT 5
- Add documentation on how parametrization works HOT 1
- Node-RED integration running in Docker HOT 4
- Extend DLxJsonConverter to forward additional information. HOT 1
- Syntax error in config.js HOT 1
- Is it possible to set relay using em-simulator ? HOT 1
- tcp-connection-endpoint.js does not correctly handle the VBus-over-TCP handshake HOT 16
- Resol MX hat zwei Device Adressen HOT 3
- Add block type packet description to VBus specification.
- Wie kann ich die deviceMajorVersion vom MX Controller bekommen ? HOT 2
- Main function returned with error: undefined HOT 5
- Support for Vitosolic 200 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resol-vbus.