From 0263843583329d1af44397a2fbf39d6aa9d6b8a5 Mon Sep 17 00:00:00 2001 From: Dirk-Jan Faber Date: Wed, 11 Dec 2024 16:15:57 +0100 Subject: [PATCH] Add /Connected to virtual battery --- src/nodes/victron-virtual.js | 1 + 1 file changed, 1 insertion(+) 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' : '' },