dirkjanfaber / node-red-contrib-victron-modbus Goto Github PK
View Code? Open in Web Editor NEWConnect to Victron Energy equipment via modbus
License: BSD 3-Clause "New" or "Revised" License
Connect to Victron Energy equipment via modbus
License: BSD 3-Clause "New" or "Revised" License
Is this meant to be run on VenusOS locally or can you copy the attributes.csv over to a location on an external Node-Red installation?
If it is only meant for running locally then a nice feature request would be to be able to upload the attributes.csv file on an external Node-Red installation.
Is it possible to use the msg. object (e.g., via payload or topic) to hand over the Unit ID and Attribute?
Working on a Node-RED project with differents products (BBB, Venus, Cerbo and and Ekrano) trying to retrieve some register's value, I notice if the value is Uint32, the node do not report me it as it should.
Example : Register 3005 : com.victronenergy.tank_Remaining_d_m3_3005_uint32_10000_R
send me back :
: msg : Object
object
topic: "0df7a248e3493652"
messageId: "65d9c4e3ff4604ad95b6ebbf"
payload: 0
type: "uint32"
scalefactor: "10000"
enum: undefined
queueLengthByUnitId: object
unitId: 20
queueLength: 0
queueUnitId: 20
unitId: 20
modbusRequest: object
value: undefined
unitid: 20
fc: 3
address: 3005
quantity: 1
emptyMsgOnFail: undefined
keepMsgProperties: undefined
messageId: "65d9c4e3ff4604ad95b6ebbf"
responseBuffer: objec.....
But I still have 23liters or (0.023m3) in the tank !
Using standing modbus reader :
Fuel : msg : Object
object
topic: "Fuel"
payload: array[2]
0: 0
1: 232
responseBuffer: object
data: array[2]
buffer: buffer[4]
input: object
topic: "Fuel"
from: "Carburant"
payload: object
unitid: "20"
fc: 3
address: "3005"
quantity: "2"
messageId: "65d9c536ff4604ad95b6ec2f"
queueLengthByUnitId: object
queueUnitId: 20....
So It looks like the node has some register reading trouble.
I have the same troible with Date and Time register (830) reading and the Tank capacity (3001).
I mixed up the csv file that I scp'd into my node-red directory. As soon as I would drop the node onto the palette, Node Red would crash with this error:
26 Nov 20:14:46 - [red] Uncaught Exception:
26 Nov 20:14:46 - [error] Error: Invalid Opening Quote: a quote is found on field 0 at line 1, value is "{"
at Object.parse (/usr/src/node-red/node_modules/csv-parse/dist/cjs/index.cjs:791:21)
at Parser._transform (/usr/src/node-red/node_modules/csv-parse/dist/cjs/index.cjs:1331:26)
at Parser.Transform._read (internal/streams/transform.js:205:10)
at Parser.Transform._write (internal/streams/transform.js:193:12)
at writeOrBuffer (internal/streams/writable.js:358:12)
at Parser.Writable.write (internal/streams/writable.js:303:10)
at ReadStream.ondata (internal/streams/readable.js:731:22)
at ReadStream.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9)
I am just bringing it to your attention in case some error handling could be built in here rather than crashing Node Red. I will not make the same mistake!
Is it possible to run this node in Node-Red as HomeAssistant addon? I already tried everythink I could imagine.
The userDir for the addon is in my case /addon_configs/a0d7b954_nodered/
This is the directory mapped as /config in Node-Red. Even with the attributes.csv file present, the Dropdown does not show any data.
If I ssh into the Addon (docker container) I can see the attributes.csv in the userDir folder.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.