Skip to content

Commit

Permalink
Add /Connected to virtual battery
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkjanfaber committed Dec 11, 2024
1 parent 5e4d337 commit 0263843
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nodes/victron-virtual.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const debug = require('debug')('victron-virtual')
const properties = {
battery: {
Capacity: { type: 'd', format: (v) => v != null ? v.toFixed(0) + 'Ah' : '' },
Connected: { type: 'd', format: (v) => v != null ? v : '', value: 1 },
'Dc/0/Current': { type: 'd', format: (v) => v != null ? v.toFixed(2) + 'A' : '' },
'Dc/0/Power': { type: 'd', format: (v) => v != null ? v.toFixed(2) + 'W' : '' },
'Dc/0/Voltage': { type: 'd', format: (v) => v != null ? v.toFixed(2) + 'V' : '' },
Expand Down

0 comments on commit 0263843

Please sign in to comment.