Comments (9)
Thanks for bug report! Will check it in few days.
Ср, 15 июня 2016 г. в 12:33, Gert-Jan Niewenhuijse <[email protected]
:
I like to write a knx address to the bus so i add a injector with the
following json payload:
{"dstgad":"2/1/19", "value":"0", "dpt":"1"}But then i receive an error, see atteched screenshot.
[image: naamloos]
https://cloud.githubusercontent.com/assets/1484623/16074907/f259b9a2-32ec-11e6-928f-21aaa1bbc08c.pngHow to solve this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#8, or mute the
thread
https://github.com/notifications/unsubscribe/ABl5LGjIPF0aWhcYOqG91WtMsuXggBOkks5qL8bggaJpZM4I2KuM
.[image: BeeToo] http://beetoo.me/
Когда умный дом по-настоящему умный
Александр Боровский, Технический директор
Alexander Borovsky, CTO, Co-Founder
+7-926-0-945-00 <+7926094500>
+7-499-391-33-62
<+74993913362>[email protected]
http://beetoo.me
from node-red-contrib-knx.
We have tried the same flow and it works
Try to update node-red-contrib-knx:
npm install -g node-red-contrib-knx
Which version Node-red are you using?
@gjniewenhuijse
from node-red-contrib-knx.
Hello, i used v0.13.4
Started Node-RED graphical event wiring tool..
Welcome to Node-RED
17 Jun 06:01:20 - [info] Node-RED version: v0.13.4
17 Jun 06:01:20 - [info] Node.js version: v0.10.29
17 Jun 06:01:20 - [info] Linux 4.4.11+ arm LE
from node-red-contrib-knx.
Hello!
Object Buffer in Node.js version v0.10.x has no method writeIntLE.
Update Node.js to version v0.12.x
We used version v0.12.7
from node-red-contrib-knx.
thanks, i give it a try...
from node-red-contrib-knx.
@aborovsky I just ran into similar problem myself. I am new to node-red
. I was able to send message and trigger switch(light on/off) but each time it crash.
It is because of this line I think.
[info] [knx-out:TestNodeKNXOutput] sendAPDU: true
20 Jun 07:28:42 - [red] Uncaught Exception:
20 Jun 07:28:42 - TypeError: callback is not a function
at SendWrap.cb [as callback] (/usr/local/lib/node_modules/node-red-contrib-knx/node_modules/knx.js/src/KnxSenderTunneling.js:40:21)
at SendWrap.afterSend [as oncomplete] (dgram.js:407:8)
Either that or the previous call to Action: connection.Action(dstgad.toString(), value, null);
, I'm not familiar with node-red, but if null is meant to be a function, that could also be reason it break.
Also on docs:
--- dpt: datapoint type (1 for booleans, 5 for 4-bit dimming setpoints etc) - defaults to 1 for boolean on/off GA's
This does not say it is required. But you can see value is assigned here, it is using .toString()
, this throws error if you do not provide a value, see here for more info why. Use String(dpt) || '1'
instead if you want to avoid error and also provide default. Your default case for switch statement throws an error as well, perhaps you should add REQUIRED
to docs?
from node-red-contrib-knx.
@polarathene, first problem 'TypeError: callback is not a function' is fixed. Try to update library to version 0.7.1:
$ npm install [email protected]
from node-red-contrib-knx.
problem solved when i update node js.
from node-red-contrib-knx.
@aborovsky Works great thanks :)
from node-red-contrib-knx.
Related Issues (20)
- Connectiong both nodes at the same time HOT 1
- Unable to write group address HOT 13
- Can't make a DPT 5 or 5.001 work HOT 4
- Why is the DPT value of a received telegram always "no_dpt"? HOT 2
- Example "dpt":"DPT1" in function incorrect - Gira1310 HOT 1
- Can't send and recieve simultaneously HOT 5
- Group Address with main above 15 not supported HOT 6
- DPT HOT 2
- Update switch status HOT 3
- Not supported DPT 16 and DPT 10 HOT 6
- write knx out based on a knx entry? HOT 1
- node type unknown HOT 4
- Error: error calling groupAddrSend: TypeError [ERR_INVALID_ARG_TYPE] when update to nodejs 11.6.0 HOT 1
- Wrong value conversion on dpt 5.001 HOT 2
- No matching version found at install HOT 5
- ERR_SOCKET_DGRAM_NOT_RUNNING
- [Feature request] Add an option for avoid logs debug level
- Stop reconnect logic on undeploy
- Error when calling knx-out node HOT 2
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 node-red-contrib-knx.