diff --git a/src/nodes/victron-virtual.js b/src/nodes/victron-virtual.js index 87c6762..29828c2 100644 --- a/src/nodes/victron-virtual.js +++ b/src/nodes/victron-virtual.js @@ -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' : '' },