diff --git a/package-lock.json b/package-lock.json index c20362b..cca2d10 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@victronenergy/node-red-contrib-victron", - "version": "1.6.1", + "version": "1.6.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@victronenergy/node-red-contrib-victron", - "version": "1.6.1", + "version": "1.6.2", "license": "MIT", "dependencies": { "dbus-native-victron": "^0.4.2", diff --git a/package.json b/package.json index 21c934f..27474be 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@victronenergy/node-red-contrib-victron", "description": "Custom Node-RED Nodes for Victron Energy", - "version": "1.6.1", + "version": "1.6.2", "dependencies": { "dbus-native-victron": "^0.4.2", "dbus-victron-virtual": "^0.1.3", diff --git a/src/nodes/victron-virtual.js b/src/nodes/victron-virtual.js index 7f8e271..77200b9 100644 --- a/src/nodes/victron-virtual.js +++ b/src/nodes/victron-virtual.js @@ -55,7 +55,8 @@ const properties = { }, meteo: { Irradiance: { type: 'd', format: (v) => v != null ? v.toFixed(1) + 'W/m2' : '' }, - Windspeeed: { type: 'd', format: (v) => v != null ? v.toFixed(1) + 'm/s' : '' } + WindSpeed: { type: 'd', format: (v) => v != null ? v.toFixed(1) + 'm/s' : '' }, + WindDirection: { type: 'd' } }, tank: { 'Alarms/High/Active': { type: 'd' }, @@ -374,6 +375,7 @@ module.exports = function (RED) { interface: 'com.victronenergy.BusItem', destination: serviceName }) + config.instance = ActualDeviceInstance emitItemsChanged() }